MCP Server

Last Commit Repo Size License

Python MCP Status

A lightweight Model Context Protocol (MCP) server that provides a bridge between Claude AI and your local Python environment.


🌟 Overview


πŸ“Έ Screenshots

MCP_server image


πŸ“ Project Structure

mcp_gen/
β”œβ”€β”€ .venv/                 
β”œβ”€β”€ mcpgen/                 # generator logic
β”œβ”€β”€ β”œβ”€β”€ __init__.py
|   β”œβ”€β”€ cli.py
β”œ   β”œβ”€β”€ generator.py              
β”‚   β”œβ”€β”€ mytool3/            # MCP server       
β”‚   β”‚   β”œβ”€β”€ __init__.py   
β”‚   β”‚   β”œβ”€β”€ server.py      
β”‚   β”‚   └── mcp.json                      
β”œβ”€β”€ .gitignore             
β”œβ”€β”€ README.md              
└── pyproject.toml

βš’οΈ Features Standard Discovery:


βš’οΈ Installation & Setup

# Clone the repository
git clone https://github.com/reory/mytool3.git
cd mytool3

Create and activate virtual environment

python -m venv .venv
source .venv/bin/activate  # Automation for Mac/Linux
**OR: .venv\Scripts\activate (Windows)**

Upgrade core tooling

pip install --upgrade pip setuptools
# Install required MCP packages
pip install fastmcp mcp

Verify installation

python -c "import fastmcp; print(f'FastMCP version: {fastmcp.version}')" - Service Registration (Claude Desktop) To hook the server into the Claude Desktop runtime, inject the absolute paths into your local configuration. Command-line shortcut (PowerShell): PowerShell


Open the specific MSIX config path for the Windows Store version

JSON { "mcpServers": { "mytool3": { "command": "C:\Absolute\Path\To\.venv\Scripts\python.exe", "args": ["C:\Absolute\Path\To\mcpgen\mytool3\server.py"] } } }


πŸ§ͺ Development Workflow

Manual Protocol Test Before testing in the Claude UI, ensure the server initiates the stdio transport without Python exceptions:

# Set unbuffered mode to prevent pipe-hangs
export PYTHONUNBUFFERED=1
python mcpgen/mytool3/server.py
fastmcp dev mcpgen/mytool3/server.py

πŸ”§ Tools Available

Tool Name Parameters Description
hello name (string) Returns a personalized greeting from the local server.

⚠️ Troubleshooting


πŸ›£οΈ Roadmap Features


πŸ“ Notes