Modular MCP server with Streamable HTTP, optional OAuth 2.1, Supabase auth, Cloudflare tunnel, and creator-only access control
Project description
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:
- Configuration - Verifies tunnel token and configuration exist
- Local Server - Tests server connectivity on
localhost:8766 - Cloudflared Process - Checks if cloudflared is running
- DNS Resolution - Verifies DNS record exists and resolves correctly
- 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
/sseif/mcpdoesn'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:
- A
pyproject.tomlwith a package name - An
integration.pywith aregister(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.pyexamples with configuration - How to organize tools, resources, and prompts
- Environment variable configuration
- Testing your submodule
Documentation
- Installation Guide - Setup, troubleshooting, CLI reference
- Submodule Integration - Creating MCP submodules with integration.py
- Project Plan - Architecture, version history
- Workflow - Flow diagrams, components
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.
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file robotmcp_server-2.2.1.tar.gz.
File metadata
- Download URL: robotmcp_server-2.2.1.tar.gz
- Upload date:
- Size: 100.5 MB
- Tags: Source
- Uploaded using Trusted Publishing? Yes
- Uploaded via: twine/6.1.0 CPython/3.13.7
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
aaa352d2d31783a28d61f682e1710210499c37eeb9107f0df5a1787b8bbb2ad6
|
|
| MD5 |
2bbf2bcf5ff019c94143f56f7ddf96e4
|
|
| BLAKE2b-256 |
e75479f96d0d19b1fe4f829041289ea10bfc9d4622dab023cfbac2b4d741e607
|
Provenance
The following attestation bundles were made for robotmcp_server-2.2.1.tar.gz:
Publisher:
publish_pypi.yml on robotmcp/robotmcp_server
-
Statement:
-
Statement type:
https://in-toto.io/Statement/v1 -
Predicate type:
https://docs.pypi.org/attestations/publish/v1 -
Subject name:
robotmcp_server-2.2.1.tar.gz -
Subject digest:
aaa352d2d31783a28d61f682e1710210499c37eeb9107f0df5a1787b8bbb2ad6 - Sigstore transparency entry: 1033509946
- Sigstore integration time:
-
Permalink:
robotmcp/robotmcp_server@6878a84c88850b765df5cc59d42c17f939f06ffd -
Branch / Tag:
refs/tags/v2.2.1 - Owner: https://github.com/robotmcp
-
Access:
public
-
Token Issuer:
https://token.actions.githubusercontent.com -
Runner Environment:
github-hosted -
Publication workflow:
publish_pypi.yml@6878a84c88850b765df5cc59d42c17f939f06ffd -
Trigger Event:
push
-
Statement type:
File details
Details for the file robotmcp_server-2.2.1-py3-none-any.whl.
File metadata
- Download URL: robotmcp_server-2.2.1-py3-none-any.whl
- Upload date:
- Size: 100.6 MB
- Tags: Python 3
- Uploaded using Trusted Publishing? Yes
- Uploaded via: twine/6.1.0 CPython/3.13.7
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
7d69427e657cf8b0fc1154ba4bd75ab48a22c965bd4ea6273bab43ffd7b2f4ac
|
|
| MD5 |
f5edf1cd6d4f84782fd30709f04f0b1d
|
|
| BLAKE2b-256 |
9ee47ef3967f1926b6cfec62d5041021bdd2e76752f300cde393d71f702c89ed
|
Provenance
The following attestation bundles were made for robotmcp_server-2.2.1-py3-none-any.whl:
Publisher:
publish_pypi.yml on robotmcp/robotmcp_server
-
Statement:
-
Statement type:
https://in-toto.io/Statement/v1 -
Predicate type:
https://docs.pypi.org/attestations/publish/v1 -
Subject name:
robotmcp_server-2.2.1-py3-none-any.whl -
Subject digest:
7d69427e657cf8b0fc1154ba4bd75ab48a22c965bd4ea6273bab43ffd7b2f4ac - Sigstore transparency entry: 1033510021
- Sigstore integration time:
-
Permalink:
robotmcp/robotmcp_server@6878a84c88850b765df5cc59d42c17f939f06ffd -
Branch / Tag:
refs/tags/v2.2.1 - Owner: https://github.com/robotmcp
-
Access:
public
-
Token Issuer:
https://token.actions.githubusercontent.com -
Runner Environment:
github-hosted -
Publication workflow:
publish_pypi.yml@6878a84c88850b765df5cc59d42c17f939f06ffd -
Trigger Event:
push
-
Statement type: