MCP Shelf
This server does not currently have a deployable release on Glama. Follow the repository's setup instructions to install and configure it for your MCP client, including any required credentials and local dependencies.
MCP Shelf
English · 简体中文
Configure MCP servers once. Share them across every AI agent — locally or self-hosted.
MCP Shelf is a lightweight, zero-build Model Context Protocol (MCP) gateway and web workbench. Instead of duplicating upstream MCP configs across Grok Build, Codex, Claude Code, and Google Antigravity — or bloating every session with dozens of massive JSON tool schemas — each client registers only MCP Shelf.

Why MCP Shelf?
Problem | Traditional Setup (Direct MCPs) | MCP Shelf |
Multi-agent config sprawl | Maintain separate configs for Grok, Codex, Claude, Antigravity | Configure once, share everywhere — with one-click JSON / Codex TOML import |
Context window bloat | All upstream JSON schemas dumped into every turn | Compact server summary + on-demand search via 3 gateway meta-tools |
"Blind" search gateways | Models don't know which servers exist unless prompted | Auto-injected server summary in MCP |
Security & governance | Upstream tools exposed all-or-nothing | Deny-by-default allowlist, Ajv schema validation, live playground, and activity log |
Cross-device access | Tied to one machine | Local & Remote modes — run on loopback or deploy via Docker behind Caddy / NPM |
Related MCP server: MyMCPs
How It Works (3 Meta-Tools)
Meta-Tool | Purpose |
| Lists enabled upstream connections, status, approved tool counts, and previews. |
| Searches approved upstream tools by keyword or exact |
| Proxy-invokes one approved upstream tool by |
Whenever you add connections, update approvals, or edit descriptions in the workbench, MCP Shelf notifies connected clients via standard MCP notifications/tools/list_changed.
Quick Start
Requires Node.js 22+ (macOS / Linux).
git clone https://github.com/zhangtyzzz/mcp-shelf.git MCP-Shelf
cd MCP-Shelf
npm ciOption A: Local Gateway (Default MCP_SHELF_MODE=local)
npm startOpen http://127.0.0.1:8787:
In Connections, click Templates to one-click add classic servers (like free Exa Search, Context7 Docs, Sequential Thinking, or GitHub OAuth), or click Import to paste existing
mcpServersJSON / Codexconfig.toml.Click Fetch Tools, review and approve tools in Tool Catalog, and test them directly in the built-in Playground.
Open Connect Agents to pick your transport mode (Local stdio, OAuth 2.1, or Streamable HTTP) and client, then copy the generated snippet.
Optional global CLI link:
npm link
mcp-shelf # Start local gateway
mcp-shelf config # Print local config.json pathCustom port or config directory:
MCP_SHELF_PORT=8788 MCP_SHELF_HOME=~/.config/mcp-shelf-alt npm startOption B: Self-Hosted Docker Deployment (MCP_SHELF_MODE=remote)
Prebuilt multi-arch (linux/amd64, linux/arm64) images are automatically published to GHCR:
ghcr.io/zhangtyzzz/mcp-shelf:stable/:latest— stable releases (masterbranch &vX.Y.Ztags)ghcr.io/zhangtyzzz/mcp-shelf:alpha— preview builds (alphabranch)
Deploy MCP Shelf on your VPS behind Caddy, Nginx Proxy Manager, or Cloudflare Tunnel so all your devices share one authenticated MCP gateway:
export MCP_SHELF_ADMIN_PASSWORD=$(openssl rand -base64 24)
export MCP_SHELF_PUBLIC_URL=https://mcp.example.com
docker compose up -dSee deploy/Caddyfile.example for a 5-line automatic HTTPS reverse proxy config.
Remote Mode Security:
Refuses to start unless
MCP_SHELF_ADMIN_PASSWORDis at least 12 characters.Admin workbench protected by
scryptpassword verification, per-IP brute-force rate limiting (10 attempts / 15 min), and HMAC-SHA256 signedHttpOnly; SameSite=Strict; Securesession cookies./mcpendpoint uses an independent 64-hex-charAuthorization: Bearer <TOKEN>that can be revealed, copied, or rotated anytime from Connect Agents.
Client Matrix
Client | Transport | Verification |
Grok Build |
| Verified on macOS ( |
Codex |
| Verified on macOS (discovery + |
Claude Code |
| Verified registration & Connected status |
Google Antigravity | Manage MCP Servers → Raw Config | Matches official config format |
Any Streamable HTTP Client |
| Verified end-to-end via official MCP SDK |
Internationalization
The web workbench ships with built-in, zero-dependency i18n (English default + 简体中文), switchable live from the top bar. Adding another language only requires dropping a single dictionary file in ui/locales/<code>.js and registering it in ui/i18n.js — see CONTRIBUTING.md.
Security Boundaries
Config stored at
~/.config/mcp-shelf/config.json(mode0600). Secrets are referenced by environment variable name only (envKeys/bearerEnv) and never written to disk or exported.Local mode binds strictly to
127.0.0.1withHost,Origin,Sec-Fetch-Site, and CSRF checks.Newly discovered tools are blocked by default; changing upstream command, URL, or credential env names automatically resets approvals.
Request body limit 1 MiB, upstream output limit 512 KB, discovery timeout 12s, tool call timeout 30s, no automatic write retries.
Testing
npm test # Protocol, allowlist, import/export, remote auth & security tests
npm run test:ui # Playwright E2E (desktop/mobile, i18n, playground, live MCP)
node test/codex.mjs --roundtrip # Codex CLI discovery & tool call roundtrip
node test/grok.mjs # Grok Build CLI registration & doctor check
node test/claude.mjs # Claude Code CLI connectivity checkLicense
Tool Schema Changelog
Recent tool additions, removals, and schema changes observed during successful MCP inspections.
Loading tool schema changelog…
This server cannot be deployed
Maintenance
Related MCP Connectors
An MCP gateway for teams deploying AI tools at scale to employee-facing and headless agents.
Open-source MCP gateway with per-agent tool permissions, call approvals and tool-change review.
MCP server for your apps' tools and custom tools, plus hosted AI agents and approval-gated workflows
MCP gateway: one connection for your AI apps, with tool policies, PII redaction and audit logs.
Related MCP Servers
- FlicenseNot gradedqualityBmaintenanceA production-ready MCP gateway and control plane that provides credential vault, policy engine, audit logging, and managed runtime for routing tool calls between AI agents and downstream MCP servers.59-
- AlicenseNot gradedqualityCmaintenanceSelf-hosted MCP gateway that exposes a single MCP URL to AI agents and routes tools/resources to many upstream MCP servers behind it.MIT

AISIX AI Gatewayofficial
AlicenseAqualityAmaintenanceSelf-hosted MCP gateway that registers upstream MCP servers and fronts them behind one governed Streamable HTTP endpoint: per-tool access control by caller API key, guardrails over tool arguments and results, rate limits, and usage logs. The same Rust gateway also proxies LLM and A2A agent traffic.1236Apache 2.0- AlicenseNot gradedqualityCmaintenanceProvides a unified MCP gateway enabling AI agents to securely access multiple tool servers (knowledge base, database, repo, etc.) with dynamic tool selection and OAuth2/RBAC security.1MIT