Enables environment configuration loading from .env files for setting up server parameters and credentials
Provides repository cloning functionality to set up the MCP server gateway from source code
Supports NPX server integration for running and connecting to MCP tools based on NPM packages
Supports running Python-based MCP servers and tools, including through direct process management and UVX integration
Uses TOML configuration files for structured server setup and management of MCP sub-servers
🚀 Moonshot MCP Server Gateway
📝✨ Description
Moonshot MCP Server Gateway is a lightweight gateway server with the following main features:
- Provides a unified connection entry point, allowing clients to access multiple MCP servers by connecting to this server
- Simplifies the connection and management process of MCP servers
- Supports multiple protocols, including Network Transports, Local Transports, etc. For specific protocols, please refer to the MCP Protocol Documentation
⌨️🚀 Quick Start
⚙️📋 MCP Configuration Details (moonshot_config.toml)
📑 Configuration File Structure
1️⃣ Server Basic Configuration [server]
Config Item | Description | Required |
---|---|---|
name | Server name | Yes |
version | Server version | Yes |
port | Listening port | Yes |
host | Listening address | Yes |
2️⃣ MCP Sub-server Configuration [mcpServers]
MCP supports multiple types of server configurations. Each sub-server configuration needs to specify a unique name (e.g., [mcpServers.server_name]
) and a required prefix
field for API routing.
⚙️ Process Server (type = "process")
Config Item | Description | Required |
---|---|---|
command | Interpreter command | Yes |
script_path | Script path | Yes |
args | Startup parameters | No |
prefix | API routing prefix | Yes |
exclude | Commands to exclude | No |
cwd | Working directory | No |
env | Environment variables | No |
🌐 HTTP/HTTPS Server (type = "http"/"https")
Config Item | Description | Required |
---|---|---|
url | Server URL | Yes |
prefix | API routing prefix | Yes |
headers | Request headers | No |
🔌 WebSocket Server (type = "websocket")
Config Item | Description | Required |
---|---|---|
url | WebSocket server address | Yes |
prefix | API routing prefix | Yes |
📦 NPX Server (type = "npx")
Config Item | Description | Required |
---|---|---|
package | NPM package name | Yes |
args | Startup parameters | No |
prefix | API routing prefix | Yes |
env | Environment variables | No |
project_directory | Project directory | No |
use_package_lock | Whether to use package-lock.json | No |
🐍 UVX Server (type = "uvx")
Config Item | Description | Required |
---|---|---|
tool_name | Tool name | Yes |
from_package | Package name | No |
with_packages | Dependency package list | No |
args | Tool parameters | No |
prefix | API routing prefix | Yes |
env | Environment variables | No |
project_directory | Project directory | No |
python_version | Python version | No |
🧩 Configuration Example
🔗 MCP Tool List:
This server cannot be installed
remote-capable server
The server can be hosted and run remotely because it primarily relies on remote services or has no dependency on the local environment.
A lightweight gateway server that provides a unified connection entry point for accessing multiple MCP servers, supporting various protocols including Network and Local Transports.
Related MCP Servers
- AsecurityAlicenseAqualityA proxy server that unifies multiple MCP servers, enabling seamless tool, prompt, and resource management via the MetaMCP App.Last updated -1,489119TypeScriptApache 2.0
- -securityFlicense-qualityAn MCP server that connects to the Resource Hub, allowing centralized configuration and management of tools and resources across different MCP environments.Last updated -2JavaScript
- AsecurityFlicenseAqualityAn MCP server implementation that enables interaction with the Unstructured API, providing tools to list, create, update, and manage sources, destinations, and workflows.Last updated -3928
- AsecurityFlicenseAqualityA lightweight MCP server that provides a unified interface to various LLM providers including OpenAI, Anthropic, Google Gemini, Groq, DeepSeek, and Ollama.Last updated -6218Python