moonshot-mcp-server

moonshot-mcp-server

3.2

If you are the rightful owner of moonshot-mcp-server and would like to certify it and/or have it hosted online, please leave a comment on the right or send an email to henry@mcphub.com.

Moonshot MCP Server Gateway is a lightweight gateway server that provides a unified connection entry point for accessing multiple MCP 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

git clone https://github.com/MarshallEriksen-shaomingyang/moonshot-mcp-server.git
cp .env.example .env
cp moonshot_config.example.toml moonshot_config.toml
# Create virtual environment
uv venv
# Activate virtual environment
source .venv/bin/activate
# Start the project
uv run server.py --mode http or uv run server.py --mode sse

⚙️📋 MCP Configuration Details (moonshot_config.toml)

📑 Configuration File Structure

1️⃣ Server Basic Configuration [server]
Config ItemDescriptionRequired
nameServer nameYes
versionServer versionYes
portListening portYes
hostListening addressYes
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 ItemDescriptionRequired
commandInterpreter commandYes
script_pathScript pathYes
argsStartup parametersNo
prefixAPI routing prefixYes
excludeCommands to excludeNo
cwdWorking directoryNo
envEnvironment variablesNo
🌐 HTTP/HTTPS Server (type = "http"/"https")
Config ItemDescriptionRequired
urlServer URLYes
prefixAPI routing prefixYes
headersRequest headersNo
🔌 WebSocket Server (type = "websocket")
Config ItemDescriptionRequired
urlWebSocket server addressYes
prefixAPI routing prefixYes
📦 NPX Server (type = "npx")
Config ItemDescriptionRequired
packageNPM package nameYes
argsStartup parametersNo
prefixAPI routing prefixYes
envEnvironment variablesNo
project_directoryProject directoryNo
use_package_lockWhether to use package-lock.jsonNo
🐍 UVX Server (type = "uvx")
Config ItemDescriptionRequired
tool_nameTool nameYes
from_packagePackage nameNo
with_packagesDependency package listNo
argsTool parametersNo
prefixAPI routing prefixYes
envEnvironment variablesNo
project_directoryProject directoryNo
python_versionPython versionNo

🧩 Configuration Example

# Basic server configuration
[server]
name = "AlphaCore Server"
version = "1.0.0"
port = 8090
host = "0.0.0.0"

# Process server example
[mcpServers.python_server]
type = "process"
command = "python3"
script_path = "server.py"
prefix = "py"
cwd = "/data/moonshot_tools"

# HTTP server example
[mcpServers.http_server]
type = "https"
url = "https://api.example.com/mcp"
prefix = "api"

# For more configuration examples, please refer to moonshot_config.example.toml

🔗 MCP Tool List: