mcp-hub
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-hub
mcp-hub is a lightweight control plane and local stdio agent for managing MCP sources across AI coding tools.
It lets Codex, Claude Code, OpenCode, and other MCP clients connect to one local agent while the actual upstream MCP services are configured from a remote control plane.
npm package:
@a1ua/mcp-hubRepository: https://github.com/aiua-dev/mcp-hub
License: MIT
Overview
MCP tools are often installed and configured per client. As the number of tools grows, keeping every local client in sync becomes repetitive and error-prone.
mcp-hub separates the system into two parts:
Local agent
Runs as a
stdioMCP server.Loads workspace configuration from a control-plane API.
Connects to upstream MCP services from the local machine.
Falls back to cached configuration when the control plane is temporarily unavailable.
Control plane
Maintains MCP sources, exposed tools, and hosted source definitions.
Provides configuration endpoints for local agents.
Includes a web console for managing sources and copied client configs.
Related MCP server: Bastion
Features
One local
stdioentrypoint for multiple MCP clients.Remote workspace configuration with local cache fallback.
Tool naming and exposure control.
Support for multiple upstream source types:
direct-httplocal-stdiohosted-npmhosted-single-file
Codex-friendly TOML output with explicit
type = "stdio".Shell-wrapped
npxcommand generation for GUI clients with limited$PATH.Optional export profiles for exposing different source sets as separate MCP servers.
Install
Use the published local agent directly with npx:
npx -y @a1ua/mcp-hub \
--base-url https://your-control-plane.example.com \
--workspace mcp-hub \
--token your-tokenOr install it globally:
npm install -g @a1ua/mcp-hubClient Setup
Codex
codex mcp add mcp-hub -- \
npx -y @a1ua/mcp-hub \
--base-url https://your-control-plane.example.com \
--workspace mcp-hub \
--token your-tokenYou can also write the server configuration directly:
[mcp_servers."mcp-hub"]
type = "stdio"
command = "/bin/sh"
args = ["-lc", "PATH=\"/opt/homebrew/bin:/usr/local/bin:$PATH\"; if [ -d \"$HOME/.nvm/versions/node\" ]; then for dir in \"$HOME\"/.nvm/versions/node/*/bin; do [ -d \"$dir\" ] && PATH=\"$dir:$PATH\"; done; fi; cd \"$HOME\"; exec 'npx' '-y' '@a1ua/mcp-hub' '--base-url' 'https://your-control-plane.example.com' '--workspace' 'mcp-hub' '--token' 'your-token'"]Config URL Mode
Use --config-url when the control plane gives you a full workspace or export config endpoint:
npx -y @a1ua/mcp-hub \
--config-url https://your-control-plane.example.com/v1/workspaces/mcp-hub/config \
--workspace mcp-hub \
--token your-tokenCLI Options
Option | Description |
| Control-plane base URL. The agent resolves |
| Full configuration URL. Takes precedence over |
| Workspace ID and local cache key. |
| Bearer token passed directly on the command line. |
| Environment variable name used to read the Bearer token. |
| Custom local cache directory. |
The same settings can also be supplied through environment variables:
MCP_AGENT_BASE_URLMCP_AGENT_CONFIG_URLMCP_AGENT_WORKSPACEMCP_AGENT_TOKENMCP_AGENT_TOKEN_ENVMCP_AGENT_CACHE_DIR
Project Structure
.
├── apps
│ ├── control-plane-api # Fastify API and hosted-source runtime management
│ └── control-plane-web # React control-plane console
├── packages
│ ├── agent # Published local stdio agent
│ ├── runtime # MCP aggregation runtime
│ └── shared # Shared schemas and config mapping
└── docs # Architecture and product notesDevelopment
Install dependencies:
pnpm installRun the development helper:
pnpm goRun API and web console separately:
pnpm dev:api
pnpm dev:webRun checks:
pnpm -r test
pnpm buildControl-Plane Contract
The local agent expects a workspace config endpoint that returns a JSON workspace configuration.
With --base-url https://your-control-plane.example.com --workspace mcp-hub, the agent requests:
https://your-control-plane.example.com/v1/workspaces/mcp-hub/configWith export profiles, the control plane can provide separate config URLs for different MCP server views.
Current Scope
mcp-hub focuses on local MCP aggregation and configuration delivery. It is not intended to be a multi-tenant SaaS backend out of the box.
The current implementation is best suited for:
personal MCP workspaces,
small team tool setups,
self-hosted control planes,
experiments with hosted or generated MCP sources.
Roadmap
Improve the public setup wizard and install documentation.
Expand hosted-source lifecycle management.
Add more automated coverage around source discovery and export profiles.
Refine the web console for clearer source, tool, and export workflows.
License
MIT
This server cannot be deployed
Related MCP Connectors
Control plane for autonomous software labor. Agents claim objectives over MCP with audit trail.
Toolstile is a managed MCP gateway that connects remote MCP servers behind one endpoint, with per-agent permissions, shared accounts and activity logs. Connect at https://mcp.toolstile.com/mcp over Streamable HTTP with OAuth; sign in at https://toolstile.com, select a workspace and connect your upstream servers. Available tools, resources and prompts depend on that workspace and the agent's granted access.
MCP-first control plane for ProAgentStore agents and private instances.
One MCP endpoint for your company's tools, with per-person sign-in, policy and audit.
Related MCP Servers
- AlicenseNot gradedqualityDmaintenanceSelf-hosted MCP proxy and aggregation platform. Register multiple upstream MCP servers and expose them through a single unified endpoint with namespace routing, multi-transport support (HTTP/SSE, stdio, OpenAPI→MCP), per-tool overrides, and a web admin UI.18MIT
- AlicenseNot gradedqualityCmaintenanceA local-first control plane for AI agent tools, providing policy enforcement, spend caps, rate limiting, and audit trails for MCP servers.17 PyPI1Apache 2.0
- AlicenseNot gradedqualityDmaintenanceCentralized MCP control plane that proxies multiple upstream MCP servers with tool namespacing, filtering, policy enforcement, audit logging, and health checks.9 npmMIT
- AlicenseNot gradedqualityDmaintenanceEnables users to deploy a production-grade control plane for agents, providing a spec-compliant MCP server, scoped tool grants, failure-mode detection, and cost governance.MIT