- Home
- MCP servers
- MCP Server Using FAST MCP
MCP Server Using FAST MCP
- python
0
GitHub Stars
python
Language
7 months ago
First Indexed
3 months ago
Catalog Refreshed
Documentation & install
Readme and setup notes from the catalogue, plus a client-ready config you can copy for your MCP host.
Installation
Add the following to your MCP client configuration file.
Configuration
View docs{
"mcpServers": {
"maimoona-islam-mcp-server-using-fast-mcp": {
"command": "python",
"args": [
"simple_mcp_server.py"
]
}
}
}You have an MCP server built with FastAPI that exposes REST endpoints and a simple MCP protocol surface you can access via a local script. It provides two practical capabilities: summing two numbers and generating personalized greetings, which you can invoke from an MCP client or through the HTTP API. This combination lets you integrate fast web-based operations with Gemini CLI tooling for streamlined automation.
How to use
You can use an MCP client to access the two core capabilities: calculate a sum and greet a user. The MCP surface is designed to be straightforward to call from Gemini CLI or other MCP-compliant clients. Use the HTTP endpoints for direct API calls or the local MCP script when you prefer a local protocol-based session.
-
Calculate sum: Send a request to the sum endpoint or call the MCP tool to compute the sum of two numbers. This is useful for quick arithmetic in automation workflows.
-
Greet user: Generate a personalized greeting by supplying a name. This helps you tailor responses in chatbots, dashboards, or notification messages.
How to install
pip install -r requirements.txt
Run the FastAPI server with hot-reload for development.
uvicorn main:app --reload --port 8000
Test the MCP server locally by starting the simple MCP protocol server.
python simple_mcp_server.py
Configure the Gemini CLI by placing the MCP configuration in your Gemini config directory.
# On Windows
copy mcp_config.json %APPDATA%\gemini\mcp_config.json
# On macOS/Linux
cp mcp_config.json ~/.config/gemini/mcp_config.json
Additional notes
The setup includes a FastAPI web server for REST endpoints and a dedicated MCP protocol server that you can run locally. The MCP config file (mcp_config.json) is provided to help Gemini CLI interact with the MCP surface.
Available tools
calculate_sum
Calculate sum of two numbers via the MCP surface or HTTP endpoint.
greet_user
Generate a personalized greeting by name through the MCP surface or HTTP endpoint.