- Home
- MCP servers
- FastMCP Demo
FastMCP Demo
- 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.
You will run a minimal FastMCP server that exposes a single tool named greet. It’s designed for quick MCP client demos and local testing, with an option to connect to a remote demo server for rapid experimentation.
How to use
You can interact with the server from an MCP client by pointing it to the local server or the remote demo server. The server exposes a simple greet tool that takes a name and returns a greeting. Use the client to call greet with different names to see how responses change.
How to install
Prerequisites: You need Python installed on your system.
Install the FastMCP package using Python’s package manager.
pip install fastmcp
Run the local MCP server using the provided script.
python my_server.py
If you prefer to test with the remote demonstration server, you can use its MCP URL to connect from your client. The remote server endpoint is provided for quick demos.
Additional notes
The server is named My MCP Server and includes one exposed tool: greet(name: str) -> str. You can call this tool from an MCP client to obtain a greeting like “Hello From Fast MCP, Mr.[Name]!”.
For local testing, the default port is managed by the server startup script. If you need to adjust transport or port, modify the startup configuration in your server script accordingly.
Remote testing option: you can call the remote demo endpoint to try greet against a live server without running anything locally.
Available tools
greet
Exposed as a tool that returns a greeting string given a name.