PythonCMCPServer
@maneeshsit
Building a Custom MCP Server using Python
Overview
What is PythonCMCPServer?
PythonCMCPServer is a tutorial for building a custom MCP (Model Context Protocol) server using Python. It demonstrates how to run an MCP server via uv and configure it with Claude Desktop.
How to use PythonCMCPServer?
Install UV and Claude Desktop, then edit claude_desktop_config.json with the provided configuration, specifying the path to your Python script.
Key features of PythonCMCPServer
- Uses Python and the
mcp[cli]package. - Run with
uv run --with mcp[cli] mcp run <script>. - Integrates with Claude Desktop via MCP.
- Supports multiple server definitions in config.
Use cases of PythonCMCPServer
- Learn how to set up a custom MCP server.
- Connect a Python-based tool to Claude Desktop.
FAQ from PythonCMCPServer
What are the prerequisites to run PythonCMCPServer?
You need to install UV and Claude Desktop. UV installation commands for Windows are provided in the README.
How do I configure PythonCMCPServer?
Edit claude_desktop_config.json with the server definition, including the command (uv) and arguments to run your Python script via mcp run.
What does the example configuration look like?
The README shows two examples: "Demo" and "AI Sticky Notes", both using uv run --with mcp[cli] mcp run followed by the script path.
Can I run multiple PythonCMCPServer instances?
Yes, the config example includes two different server entries (Demo and AI Sticky Notes) pointing to different scripts.