MCP.so
登录

MCP Utils

@fulfilio

基本信息

分类

其他

许可证

MIT

传输方式

stdio

作者

fulfilio

关于 MCP Utils

Python utilities to work with MCP servers

MCP Utils 配置

使用下面的配置,将此服务器添加到你的 MCP 客户端。

{
  "mcpServers": {
    "mcp-utils": {
      "command": "npx",
      "args": [
        "-y",
        "@smithery/cli",
        "install",
        "mcp-proxy",
        "--client",
        "claude"
      ]
    }
  }
}

MCP Utils 工具

工具列表暂未提供

当前收录暂时没有可展示的工具列表,不代表服务没有工具。请查阅项目文档了解支持的能力。

点击上方按钮,在临时沙箱中运行此服务器并实时获取工具列表。

概览

What is mcp-utils?

mcp-utils is a Python utility package for building Model Context Protocol (MCP) servers, focused on synchronous implementations using Flask. It provides helpers, decorators, and Pydantic models for developers integrating MCP into existing Python applications without asynchronous code.

How to use mcp-utils?

Install with pip install mcp-utils. Create an MCPServer instance, decorate handlers with @mcp.tool() or @mcp.prompt(), and handle incoming requests via mcp.handle_message(). For production, deploy with Flask and Gunicorn.

Key features of mcp-utils

  • Synchronous MCP server implementation
  • Server-Sent Events (SSE) support
  • Simple decorators for tools and prompts
  • HTTP protocol with Streamable HTTP support
  • Redis response queue for message handling
  • Comprehensive Pydantic models for MCP schema
  • Built-in validation and documentation

Use cases of mcp-utils

  • Embedding MCP capabilities into existing Python web applications
  • Building MCP servers with synchronous database transactions (e.g., SQLAlchemy)
  • Deploying MCP servers with Gunicorn for production workloads
  • Prototyping MCP tools and prompts without async complexity

常见问题

1

What are the runtime dependencies?

Python 3.10+ and Pydantic 2 are required. Flask, Gunicorn, and Redis are optional for web server, production deployment, and response queuing respectively.

2

Does mcp-utils support asynchronous code?

No, mcp-utils is explicitly designed for synchronous implementations. For async MCP servers, consider the MCP Python SDK.

3

How do I connect Claude Desktop to an mcp-utils server?

Claude Desktop does not natively support SSE/HTTP; use `mcp-proxy` (installable via PyPI or Smithery) to bridge stdio with the server's SSE endpoint.

4

Can I use mcp-utils with Flask for production?

Yes, the README provides Flask examples with Streamable HTTP and optional SQLAlchemy transaction handling, plus a Gunicorn deployment example.

5

How can I test my MCP server built with mcp-utils?

Use the MCP Inspector (`npm install -g @modelcontextprotocol/inspector`) to open a web interface, point it to your server’s SSE URL, and send test messages.

评论

其他 分类下的更多 MCP 服务器