About Basic FastMCP Server
Basic FastMCP Server is an MCP server in the Commerce category: basic implementation of MCP via FastMCP Server. Server exposes a greet(name) tool over the MCP HTTP endpoint, and then the client uses OpenAI's Responses API with an MCP tool connection (via ngrok public URL) so the model can discover the tool and call it to generate a personalized greeting.
Install
git clone https://github.com/kroller-syr/Basic_FastMCP_ServerThis server has no ConduID identity, so agent calls to it are not receipted. Pin the version you install and review the source before granting it credentials.
Ask AI
Ask AI about Basic FastMCP Server
Powered by Claude · Grounded in docs
Security checks
- ✓README presentThe repository ships documentation.
5 checks have not been run yet.
README
FastMCP + OpenAI MCP Tool Demo (Greeting Server)
A minimal example showing how to expose a tool via FastMCP and call it using OpenAI’s MCP tool integration.
The MCP server runs locally, is exposed publicly via ngrok, and the OpenAI client connects to the MCP endpoint to discover tools and invoke them (tool calling).
What This Project Does
- Starts a FastMCP server that exposes a single tool:
greet(name: str) -> str - Uses ngrok to create a public URL for the local server
- Runs an OpenAI client script that:
- connects to the MCP server URL
- retrieves the tool list
- calls the tool through OpenAI tool calling
- prints the greeting result
Requirements
- Python 3.12 recommended
- An OpenAI API key
- ngrok installed and logged in
Setup
1) Create and activate a virtual environment (Windows / PowerShell)
py -3.12 -m venv .venv
.\.venv\Scripts\Activate.ps1
python -m pip install --upgrade pip setuptools wheel
#Dependencies
python -m pip install -U fastmcp openai python-dotenv
README copy captured when this server was indexed; it may lag the repository. The original is authoritative.