MCPServe

by enso-labs
Verified

hybrid server

The server is able to function both locally and remotely, depending on the configuration or use case.

Integrations

  • Enables hosting the MCP server within a Docker container, specifically supporting Ubuntu 24 containers for deployment

  • Allows connecting to a locally hosted MCP server via Ngrok, providing remote access to local development environments

  • Includes shell execution capabilities, allowing the MCP to run shell commands on the host system

📖 目录

🛠️ 设置本地托管 MCP

## Install uv (if you not using you late to party) curl -LsSf https://astral.sh/uv/install.sh | sh ## Create virtual environemtn uv venv source .venv/bin/activate ## Install Dependencies uv pip install -r requirements.txt ## Start localhost MCPServe python main.py

🛠️ 设置 Docker 托管的 MCP

docker compose up --build

客户端 MCP 配置

如果您已在代码中配置了身份验证服务器端,则可以启用 API 标头。我发现这需要对 mcp 库设置进行一些代码更改。添加一个中间件属性。:/

{ "terminal": { "transport": "sse", "url": "http://localhost:8005/sse", // "headers": { // "x-api-key": "abcdef123456..." // } } }

🚀 路线图

  • [ ] 🤖 即将推出...

如果您希望看到路线图中添加某个功能,请创建一个问题并开始讨论。

💡 问题

欢迎随时提交问题和改进请求。我们始终期待您的反馈和建议。

🤓 维护者

  • Ryan Eggleston - @ryaneggz

📜 许可证

本项目遵循MIT 许可证,开源。您可以随意使用、修改和分发代码。

-
security - not tested
A
license - permissive license
-
quality - not tested

一个具有 shell 执行功能的简单 MCP 服务器,可以使用 Ngrok 隧道在本地运行或托管在 Ubuntu 24 Docker 容器中。

  1. 🛠️ Setup Local Hosted MCP
    1. 🛠️ Setup Docker Hosted MCP
      1. Client MCP Config
        1. 🚀 Roadmap
          1. 💡 Issues
            1. 🤓 Maintainers
              1. 📜 License
                ID: f9zo2a7w33