- Home
- MCP servers
- FastMCP Server
FastMCP Server
- python
0
GitHub Stars
python
Language
5 months ago
First Indexed
2 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": {
"sharmaratnesh-third_mcp_server_using_fastmcp": {
"command": "python",
"args": [
"-m",
"mcp_server.server"
]
}
}
}This MCP server provides a simple, async-enabled implementation of the Model Context Protocol built on FastMCP. It exposes practical tools you can use through an MCP client, enabling AI-assisted workflows and easy tool discovery, invocation, and responses within your applications.
How to use
You connect to this MCP server with any MCP client to discover available tools, provide structured arguments, and receive well-formed responses. Use the client’s tool discovery to see the available functions, then call a tool by supplying the required inputs. The server handles asynchronous operations, so calls are non-blocking and return results when ready.
How to install
Prerequisites: you need Python and a functioning Python package manager.
-
Ensure Python is installed on your system. You can verify with
python --version. -
Install the package in editable mode to run the MCP server locally.
pip install -e .
Additional setup and notes
Run the server using the Python module syntax shown in the code examples. This starts the MCP server so your MCP client can connect and start discovering tools.
python -m mcp_server.server
Or run the corresponding script directly if you prefer:
python mcp_server/server.py
Available tools
get_greeting
Returns a greeting message for a given name, enabling friendly user interactions.
calculate_sum
Calculates the sum of two numeric inputs, supporting basic arithmetic tasks.
get_server_info
Returns information about the MCP server for diagnostics and status checks.