loading…
Search for a command to run...
loading…
A template and demonstration project for building, testing, and deploying remote MCP servers using FastMCP and uv. It provides a foundational structure for crea
A template and demonstration project for building, testing, and deploying remote MCP servers using FastMCP and uv. It provides a foundational structure for creating MCP-compliant tools that can be hosted publicly and integrated with LLM agents.
This repository demonstrates how to create, test, and deploy a simple remote MCP server using FastMCP, uv, and GitHub.
Make sure you have the following installed:
uv (Python package manager)uvuv is a fast Python package manager and runtime.
pip install uv
mkdir simple-mcp-server
cd simple-mcp-server
code .
uv init
This creates:
pyproject.tomluv add fastmcp
FastMCP allows you to build MCP-compatible servers easily.
Create a file called main.py:
from fastmcp import FastMCP
mcp = FastMCP("Simple MCP Server")
@mcp.tool()
def hello(name: str) -> str:
return f"Hello, {name}! Welcome to MCP."
if __name__ == "__main__":
mcp.run()
uv run main.py
Your MCP server will start locally.
Use MCP Inspector to:
This confirms your server is MCP-compliant.
Create a new repo on GitHub named:
simple-mcp-server
git init
git add .
git commit -m "Initial commit: Simple MCP server"
git remote add origin https://github.com/yourusername/simple-mcp-server.git
git push -u origin main
After deployment:
simple-mcp-server/
│── main.py
│── pyproject.toml
│── README.md
Happy building 🚀
Добавь это в claude_desktop_config.json и перезапусти Claude Desktop.
{
"mcpServers": {
"simple-remote-mcp-server": {
"command": "npx",
"args": []
}
}
}