RobotMCP Server

RobotMCP Server

A modular MCP server with automatic submodule integration, OAuth 2.1, Supabase user management, and Cloudflare tunnel support, enabling secure and extensible tool connectivity for AI assistants like ChatGPT and Claude.

Category
访问服务器

README

RobotMCP Server

A modular Model Context Protocol (MCP) server with automatic submodule integration, OAuth 2.1 authentication, Supabase user management, and Cloudflare tunnel support. Works with ChatGPT and Claude.ai.

Installation

For Users

# Using uv (recommended)
uv tool install robotmcp-server
robotmcp-server

# Using pip
pip install robotmcp-server
robotmcp-server

For Developers

git clone --recursive https://github.com/robotmcp/robotmcp_server.git
cd robotmcp_server

# Using uv (recommended)
uv venv
uv pip install -e .
uv run robotmcp-server

# Using pip
pip install -e .
robotmcp-server

Edit submodule code directly in modules/ — changes take effect immediately.

You can also manage modules with robotmcp-server add/remove/update.

Features

  • Submodule Auto-Discovery: Automatically finds and registers MCP tools from git submodules
  • Auto-Install Dependencies: Submodule dependencies are installed automatically at startup
  • Streamable HTTP Transport: Modern MCP transport at /mcp
  • OAuth 2.1: Full flow with PKCE and dynamic client registration
  • Cloudflare Tunnel: Secure access via {name}.robotmcp.ai
  • Creator-Only Access: Only the server creator can connect
  • Optional OAuth: Disable with ENABLE_OAUTH=false
  • Secure CLI Login: POST-based credential transfer (not URL params)
  • WSL Support: Reliable browser opening with PowerShell fallback

Project Structure

robotmcp_server/
├── main.py                    # FastAPI app entry point
├── cli.py                     # CLI daemon management
├── config.py                  # Config management (~/.robotmcp-server/)
├── setup.py                   # Browser-based login flow
├── submodule_integration.py   # Auto-discover & register submodule tools
├── submodule_deps.py          # Auto-install submodule dependencies
├── logging_config.py          # Logging with Supabase support
├── sse.py                     # Legacy SSE endpoints
├── oauth/                     # OAuth module (optional)
│   ├── endpoints.py           # OAuth routes
│   ├── middleware.py          # Token validation
│   ├── jwt_utils.py           # JWT token generation/validation
│   ├── stores.py              # Session stores
│   └── templates.py           # HTML templates
└── modules/                   # MCP tool modules (git submodules)
    ├── ros-mcp-server/        # ROS integration module
    └── test-mcp-server/       # Test/example module

Cloud Service: CLI login and tunnel creation are handled by robotmcp-cloud at https://app.robotmcp.ai.

See docs/project_plan.md for architecture details.

CLI Commands

Command Description
robotmcp-server Start server in background
robotmcp-server stop Stop server and tunnel
robotmcp-server status Show current status
robotmcp-server verify Comprehensive verification (server, tunnel, DNS, connectivity)
robotmcp-server list List installed MCP server modules with compatibility status
robotmcp-server list-tools List all available MCP tools from compatible modules
robotmcp-server add <url> Add an MCP server module (git submodule)
robotmcp-server remove <name> Remove an MCP server module
robotmcp-server update Update all MCP server modules to latest
robotmcp-server logout Clear credentials and stop

Verification Command

The verify command performs comprehensive diagnostics:

robotmcp-server verify

Checks performed:

  1. Configuration - Verifies tunnel token and configuration exist
  2. Local Server - Tests server connectivity on localhost:8766
  3. Cloudflared Process - Checks if cloudflared is running
  4. DNS Resolution - Verifies DNS record exists and resolves correctly
  5. Tunnel Endpoints - Tests endpoints through the tunnel (/, /health)

Output includes:

  • ✓/✗ status for each check
  • Detailed error messages with actionable fixes
  • Summary with pass/fail statistics
  • Next steps if issues are found

Use this command to diagnose connectivity issues, verify DNS configuration, and ensure your tunnel is working correctly.

Environment Variables

Variable Description
SUPABASE_URL Supabase project URL
SUPABASE_ANON_KEY Supabase anonymous key
SUPABASE_JWT_SECRET JWT secret for token validation
ENABLE_OAUTH Set false to disable OAuth (default: true)
ROBOTMCP_CLOUD_URL Cloud service URL (default: https://app.robotmcp.ai)

API Endpoints

Endpoint Description
GET / Server info
POST /mcp Streamable HTTP transport (recommended)
GET /sse Legacy SSE (backward compat)
/.well-known/oauth-authorization-server OAuth metadata

Connecting MCP Clients

Two endpoints are available:

Endpoint Transport Usage
/mcp Streamable HTTP Try first (recommended)
/sse Legacy SSE Use if /mcp doesn't work

Client Compatibility:

  • Claude.ai: Works with /mcp (recommended)
  • ChatGPT: Works with /mcp (recommended)
  • Legacy clients: Use /sse if /mcp doesn't work

Example URL:

https://{your-name}.robotmcp.ai/mcp

See docs/workflow.md for connection flow diagrams.

Adding MCP Submodules

The server automatically discovers and integrates MCP tools from git submodules:

# Add a module using the CLI
robotmcp-server add https://github.com/example/my-mcp-tools.git

# Or add tracking a specific branch
robotmcp-server add -b develop https://github.com/example/my-mcp-tools.git

# List installed modules and their compatibility status
robotmcp-server list

# List all available tools
robotmcp-server list-tools

# Update all modules to latest
robotmcp-server update

# Remove a module
robotmcp-server remove my-mcp-tools

Your submodule needs:

  1. A pyproject.toml with a package name
  2. An integration.py with a register(mcp, **kwargs) function

Compatibility: Modules without an integration module will show as "not compatible" in list and list-tools commands. The server checks for compatibility at startup and warns about incompatible modules.

# my_mcp_tools/integration.py
from fastmcp import FastMCP

def register(mcp: FastMCP, **kwargs) -> None:
    @mcp.tool()
    def my_tool(param: str) -> str:
        """Process a parameter."""
        return f"Result: {param}"

See docs/submodule-integration.md for the complete guide including:

  • Full integration.py examples with configuration
  • How to organize tools, resources, and prompts
  • Environment variable configuration
  • Testing your submodule

Documentation

Changelog

See CHANGELOG.md for version history.

License

Copyright (c) 2025 Contoro. All rights reserved.

This software is proprietary and confidential. Unauthorized copying, modification, distribution, or use of this software is strictly prohibited without express written permission.

推荐服务器

Baidu Map

Baidu Map

百度地图核心API现已全面兼容MCP协议,是国内首家兼容MCP协议的地图服务商。

官方
精选
JavaScript
Playwright MCP Server

Playwright MCP Server

一个模型上下文协议服务器,它使大型语言模型能够通过结构化的可访问性快照与网页进行交互,而无需视觉模型或屏幕截图。

官方
精选
TypeScript
Magic Component Platform (MCP)

Magic Component Platform (MCP)

一个由人工智能驱动的工具,可以从自然语言描述生成现代化的用户界面组件,并与流行的集成开发环境(IDE)集成,从而简化用户界面开发流程。

官方
精选
本地
TypeScript
Audiense Insights MCP Server

Audiense Insights MCP Server

通过模型上下文协议启用与 Audiense Insights 账户的交互,从而促进营销洞察和受众数据的提取和分析,包括人口统计信息、行为和影响者互动。

官方
精选
本地
TypeScript
VeyraX

VeyraX

一个单一的 MCP 工具,连接你所有喜爱的工具:Gmail、日历以及其他 40 多个工具。

官方
精选
本地
graphlit-mcp-server

graphlit-mcp-server

模型上下文协议 (MCP) 服务器实现了 MCP 客户端与 Graphlit 服务之间的集成。 除了网络爬取之外,还可以将任何内容(从 Slack 到 Gmail 再到播客订阅源)导入到 Graphlit 项目中,然后从 MCP 客户端检索相关内容。

官方
精选
TypeScript
Kagi MCP Server

Kagi MCP Server

一个 MCP 服务器,集成了 Kagi 搜索功能和 Claude AI,使 Claude 能够在回答需要最新信息的问题时执行实时网络搜索。

官方
精选
Python
e2b-mcp-server

e2b-mcp-server

使用 MCP 通过 e2b 运行代码。

官方
精选
Neon MCP Server

Neon MCP Server

用于与 Neon 管理 API 和数据库交互的 MCP 服务器

官方
精选
Exa MCP Server

Exa MCP Server

模型上下文协议(MCP)服务器允许像 Claude 这样的 AI 助手使用 Exa AI 搜索 API 进行网络搜索。这种设置允许 AI 模型以安全和受控的方式获取实时的网络信息。

官方
精选