A lightweight, open-source gateway for orchestrating and securing your MCP ecosystem.
Lunar.dev MCPX is a lightweight, centralized gateway for managing and securing your local-first MCP workflows. Designed for developers working with multiple MCP-compatible tools and services, MCPX acts as a smart proxy, routing requests, enforcing permissions, and simplifying integrations across your stack. At its core, MCPX helps you: * Dynamically route between multiple MCP servers * Connect to tools and services with zero code via simple JSON configuration * Expose a unified API interface across disparate services * Adopt a remote-first approach without losing the local flexibility MCP offers Whether you're exploring how to structure secure agent workflows or deploying agents into production environments, this documentation will walk you through every step, from setup to advanced configurations.
from agents import Agent
from agents.mcp import MCPServerStdio
mcp_server = MCPServerStdio(
command="docker",
args=["run", "--rm", "--pull", "always", "--privileged", "-v", "./:/lunar/packages/mcpx-server/config", "-p", "9000:9000", "-p", "5173:5173", "-p", "3000:3000", "--name", "mcpx", "us-central1-docker.pkg.dev/prj-common-442813/mcpx/mcpx:latest"],
)
agent = Agent(
name="My Agent",
model="gpt-4o",
mcp_servers=[mcp_server],
)If you maintain MCPX - MCP Gateway, add this badge to your README to show it's verified on CuratedMCP:
[](https://www.curatedmcp.com/marketplace/mcpx-mcp-gateway)