MCPWrapper
by jm12138·★ 1·Score 31
MCPWrapper is a Python tool that wraps any Python package as an MCP server without code modification.
Overview
MCPWrapper provides a straightforward way to expose Python module functions as MCP services through simple command-line operations. It supports multiple transport protocols including STDIO and SSE, making it flexible for both single-machine usage and server deployment. The tool maintains type safety and documentation while requiring minimal dependencies, making it an efficient solution for integrating existing Python libraries into MCP-based systems.
Try asking AI
After installing, here are 3 things you can ask your AI assistant:
When to choose this
Choose MCPWrapper when you need to quickly wrap existing Python libraries as MCP servers without code modifications.
When NOT to choose this
Avoid this if you need fine-grained control over the MCP implementation or require advanced authentication/authorization features.
Comparable tools
Installation
pip install git+https://github.com/jm12138/MCPWrapperTo use with Claude Desktop, add to claude_desktop_config.json:
{
"mcpServers": {
"json-mcp": {
"command": "python",
"args": ["-m", "mcpwrapper", "--server_name", "json_mcp_server", "--module_name", "json", "--transport", "sse", "--listen", "0.0.0.0", "--port", "8000"]
}
}
}Compare MCPWrapper with
Last updated · Auto-generated from public README + GitHub signals.