McpRemoteServer FastmcpLibrary WithoutLangChhain
No description available
Ask AI about McpRemoteServer FastmcpLibrary WithoutLangChhain
Powered by Claude Β· Grounded in docs
I know everything about McpRemoteServer FastmcpLibrary WithoutLangChhain. Ask me about installation, configuration, usage, or troubleshooting.
0/500
Reviews
Documentation
π FastMCP Demo
This is a small demo project showing how to use FastMCP to create a minimal MCP server.
What it offers π οΈ
- A minimal FastMCP server named "My MCP Server".
- One exposed tool:
greet(name: str) -> strwhich returns a greeting string. - Example client showing a remote demo server URL: https://demo-server.fastmcp.app/mcp π‘
How to run locally π
- Ensure Python is installed.
- Install dependencies: pip install fastmcp
- Start the server locally: python my_server.py
Usage examples π§
-
Local server (default): curl -X POST http://localhost:8000/greet -H "Content-Type: application/json" -d '{"name":"Anjal"}'
- Example response: Hello From Fast MCP, Mr.Anjal!
-
Remote demo server: You can use the provided demo server if you don't want to run it locally: curl -X POST https://demo-server.fastmcp.app/mcp/greet -H "Content-Type: application/json" -d '{"name":"Anjal"}'
- Example response: Hello From Fast MCP, Mr.Anjal!
Client example π§
- The included client (my_client.py) is configured to call the remote demo server: client = Client("https://demo-server.fastmcp.app/mcp")
Notes β οΈ
- This repo is a demonstration only. Update and expand tools as needed for real applications.
- Adjust transport or port in
my_server.pyif required.
