Skip to main content
Glama
README.mdโ€ข3.6 kB
# ๐Ÿš€ Easy MCP Template <div align="center"> ![Python](https://img.shields.io/badge/Python-3.8+-blue.svg) ![MCP](https://img.shields.io/badge/MCP-Enabled-brightgreen.svg) ![Platform](https://img.shields.io/badge/Platform-Claude%20Desktop%20|%20Cursor%20|%20VS%20Code-orange.svg) **Build MCP servers for Claude Desktop in minutes, not hours!** [โšก Quick Start](./QUICKSTART_CLAUDE.md) | [๐Ÿ“– Full Guide](./CLAUDE_DESKTOP_GUIDE.md) | [๐Ÿ› ๏ธ Examples](./context/) </div> ## ๐ŸŽฏ What is this? A simple Python template that lets you create custom tools for Claude Desktop. No complex setup, no TypeScript compilation, just Python and go! ## ๐Ÿƒ 2-Minute Setup ```bash # Clone and enter directory git clone https://github.com/LuisRincon23/Easy-MCP-Template.git cd Easy-MCP-Template # Setup environment pip install uv uv venv && source .venv/bin/activate # Windows: .venv\Scripts\activate uv pip install -e . # Configure Claude Desktop (see below) # Restart Claude Desktop # Done! ๐ŸŽ‰ ``` ## โš™๏ธ Claude Desktop Configuration Add to your config file: - **macOS**: `~/Library/Application Support/Claude/claude_desktop_config.json` - **Windows**: `%APPDATA%\Claude\claude_desktop_config.json` ```json { "mcpServers": { "my-tools": { "command": "/absolute/path/to/Easy-MCP-Template/start-mcp.sh" } } } ``` > ๐Ÿ’ก **Windows**: Use `start-mcp.bat` and Windows paths (e.g., `C:\\path\\to\\...`) ## ๐Ÿ› ๏ธ Building Your Tools Edit `main.py` to add your custom tools: ```python @app.list_tools() async def list_tools() -> list[types.Tool]: return [ types.Tool( name="my_tool", description="What this tool does", inputSchema={ "type": "object", "properties": { "input": {"type": "string", "description": "Tool input"} }, "required": ["input"] } ) ] @app.call_tool() async def call_tool(name: str, arguments: dict) -> list[types.TextContent]: if name == "my_tool": # Your tool logic here result = f"Processed: {arguments['input']}" return [types.TextContent(type="text", text=result)] ``` ## ๐Ÿ“ฆ What's Included ``` Easy-MCP-Template/ โ”œโ”€โ”€ main.py # Your MCP server code โ”œโ”€โ”€ start-mcp.sh # macOS/Linux starter โ”œโ”€โ”€ start-mcp.bat # Windows starter โ”œโ”€โ”€ pyproject.toml # Dependencies โ””โ”€โ”€ context/ # Example implementations ``` ## ๐Ÿ”ง Common Issues & Fixes | Problem | Solution | |---------|----------| | "spawn ENOENT" | Use absolute paths in config | | "No module named..." | Activate venv in starter script | | Tools not showing | Restart Claude Desktop completely | | Server crashes | Check logs: `~/Library/Logs/Claude/mcp-*.log` | ## ๐Ÿš€ Real Examples - **[SEC-MCP](https://github.com/LuisRincon23/SEC-MCP)** - Financial data tools - **Weather Tool** - See [Full Guide](./CLAUDE_DESKTOP_GUIDE.md#example-building-a-weather-tool) - **Your Tool Here** - Build anything! ## ๐Ÿ’ก Tips - Start simple - get one tool working first - Use descriptive tool names and descriptions - Return formatted text with markdown - Check logs when debugging - Test standalone: `python main.py --transport stdio` ## ๐Ÿ“š Learn More - [Model Context Protocol](https://modelcontextprotocol.io) - [Claude Desktop Docs](https://claude.ai/docs) - [Full Integration Guide](./CLAUDE_DESKTOP_GUIDE.md) --- <div align="center"> **Ready to build?** Start with the [Quick Start Guide](./QUICKSTART_CLAUDE.md) ๐Ÿš€ </div>

Latest Blog Posts

MCP directory API

We provide all the information about MCP servers via our MCP API.

curl -X GET 'https://glama.ai/api/mcp/v1/servers/LuisRincon23/SEC-MCP'

If you have feedback or need assistance with the MCP directory API, please join our Discord server