MyMCPs is a self-hosted Model Context Protocol (MCP) gateway. Connect your AI client to one endpoint, then manage every upstream MCP, credential, and access token from one dashboard.
- Connects HTTP and npm-based MCP servers.
- Supports bearer tokens, custom headers, and OAuth.
- Issues access tokens for all MCPs or a selected set.
- Exposes every allowed upstream through
GETandPOST /mcp. - Records gateway activity and usage analytics.
MyMCPs is self-hosted and invite-only. The first user becomes the administrator during onboarding.
You need Node.js 24 or newer, pnpm, and Deno if you want to run npm-based MCPs.
pnpm install
cp .env.example .env
node ace generate:key
node ace migration:run
pnpm run devOpen http://localhost:3333 and create the admin account.
- Add your upstream servers from MCPs.
- Create a token from Access tokens.
- Point your AI client to
https://your-domain.example/mcp. - Send the token as
Authorization: Bearer <token>.
Tools use {mcp-slug}__{tool-name} names by default. For clients with large tool catalogs, add the following request header to enable progressive discovery:
X-MyMCPs-Tool-Mode: lazy
Lazy mode exposes list_mcps, tool_search, and call_tool instead of loading every tool definition at once.
For providers that support MCP OAuth discovery and dynamic client registration, choose OAuth when adding the server, save it, then select Connect OAuth. Set APP_URL to the instance's public HTTPS URL so callback URLs are generated correctly.
This repository includes a production Docker image, a Compose service, and a coolify.json profile.
- In Coolify, create a project and add a Public Repository resource.
- Paste
https://github.com/0xtlt/MyMCPsas the repository URL and select the branch you want to deploy. - Use Docker Compose as the build pack and
/docker-compose.ymlas the Compose file. Coolify may fill these settings fromcoolify.json. - Add a domain to the
mymcpsservice and setAPP_URLto the same HTTPS origin, for examplehttps://mcp.example.com. - Deploy, open the domain, and complete onboarding.
The deployment exposes port 3333, checks /health, and runs database migrations before the app starts. The mymcps-data volume persists SQLite, encrypted secrets, the generated app key, and Deno sandbox data under /app/tmp.
APP_KEY is required, but you do not need to create it in Coolify. On the first start, the container generates a valid key, saves it to /app/tmp/app.key, and reuses it on every deploy. Back up the mymcps-data volume and do not rotate the key, or existing encrypted MCP credentials will become unreadable.
The Coolify profile sets TRUST_PROXY=true so logs use the forwarded client IP instead of the proxy's IP.
pnpm run dev # Start the development server
pnpm test # Run all tests
pnpm run lint # Check code style
pnpm run typecheck # Check TypeScript
pnpm run build # Create a production buildMyMCPs uses AdonisJS 7, Inertia, React 19, SQLite, the MCP TypeScript SDK, and Deno. See SECURITY.md for the deployment security baseline and vulnerability reporting process.
MIT © 2026 Thomas Tastet.