home / mcp / fastmcp demo mcp server
A minimal FastMCP server with a single greet tool for quick MCP client demos.
Configuration
View docs{
"mcpServers": {
"anjalbhattarai79-mcpremoteserver-fastmcplibrary-withoutlangchhain": {
"url": "https://demo-server.fastmcp.app/mcp"
}
}
}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.
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.
Prerequisites: You need Python installed on your system.
Install the FastMCP package using Python’s package manager.
pip install fastmcpRun the local MCP server using the provided script.
python my_server.pyIf 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.
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.
Exposed as a tool that returns a greeting string given a name.