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

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
# Clone the repository
git clone https://github.com/reory/mytool3.git
cd mytool3
python -m venv .venv
source .venv/bin/activate # Automation for Mac/Linux
**OR: .venv\Scripts\activate (Windows)**
pip install --upgrade pip setuptools
# Install required MCP packages
pip install fastmcp mcp
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
JSON { "mcpServers": { "mytool3": { "command": "C:\Absolute\Path\To\.venv\Scripts\python.exe", "args": ["C:\Absolute\Path\To\mcpgen\mytool3\server.py"] } } }
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
| Tool Name | Parameters | Description |
|---|---|---|
hello |
name (string) |
Returns a personalized greeting from the local server. |
[ ] Persistent Memory (SQLite Integration) Goal: Give Claude a "long-term memory" that persists across different chat sessions.
[ ] File System Sentinel (Local I/O) Goal: Allow Claude to safely inspect and summarize local directory structures.
[ ] Web Research Bridge (Playwright/Scraper) Goal: Enable Claude to fetch real-time data from sites without official APIs (like documentation pages).