MCP Catalogs
Home

MCPWrapper

by jm12138·1·Score 31

MCPWrapper is a Python tool that wraps any Python package as an MCP server without code modification.

developer-toolsai-llmother
0
Forks
0
Open issues
11 mo ago
Last commit
2d ago
Indexed

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:

you:Quickly exposing existing Python libraries as MCP services without refactoring code
you:Creating MCP servers for internal tools by wrapping utility modules
you:Converting standalone Python packages to work with MCP-compatible clients

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

python-mcpnpx mcp-serverserver-mcp

Installation

pip install git+https://github.com/jm12138/MCPWrapper

To 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

GitHub →

Last updated · Auto-generated from public README + GitHub signals.