Quick Install
Copy the config for your editor. Some servers may need additional setup — check the README.
Add to claude_desktop_config.json:
{
"mcpServers": {
"py2mcp": {
"command": "uvx",
"args": [
"py2mcp"
]
}
}
}
Run in terminal:
claude mcp add py2mcp uvx py2mcp
Add to .cursor/mcp.json:
{
"mcpServers": {
"py2mcp": {
"command": "uvx",
"args": [
"py2mcp"
]
}
}
}
Or install with pip: pip install py2mcp
README Excerpt
Quick MCP (Model Context Protocol) server creation from Python functions. ```bash pip install py2mcp ``` ```python from py2mcp import mk_mcp_server def add(a: int, b: int) -> int: """Add two numbers""" return a + b def greet(name: str = "world") -> str: """Greet someone""" return f"Hello, {name}!" mcp = mk_mcp_server([add, greet])
Topics
aillmmcpmodel-context-protocol