MCP server setup guide
Configure MoLoop for model calls in an MCP host while the host manages MCP servers separately.
Overview
MCP defines communication between a host and tool servers; it does not define one universal model gateway. The MoLoop MCP server exposes catalog, pricing, and chat tools over stdio.
Quick configuration
The MCP server uses an API key; model calls still go through the MoLoop OpenAI-compatible endpoint.
基础 URL: https://api.moloop.io/v1
API 密钥: YOUR_API_KEYCompatibility
Chat Completions
Step-by-step setup
Get an API key
Create a key in the MoLoop console. The server reads MOLOOP_API_KEY; MOLOOP_BASE_URL is only needed to override the endpoint.
MOLOOP_API_KEY=YOUR_API_KEY
MOLOOP_BASE_URL=https://api.moloop.io/v1Add it to an MCP desktop host
Add this block to an MCP host that supports stdio; npx installs the server on first run.
{
"mcpServers": {
"moloop": {
"command": "npx",
"args": ["-y", "moloop-mcp"],
"env": { "MOLOOP_API_KEY": "YOUR_API_KEY" }
}
}
}Or register it in Claude Code
claude mcp add moloop -e MOLOOP_API_KEY=YOUR_API_KEY -- npx -y moloop-mcpUse the tools
The host can call search_models, get_pricing, and chat on demand. Separate model request errors from MCP server startup errors.
search_models filter the live catalog
get_pricing list prices per 1M tokens
chat send a prompt to a modelRecommended models
Tool-call quality depends on the model selected by the host. Confirm tool support and context length in the catalog.
Things to know
The MoLoop API key is for model requests only; OAuth, file, and database credentials belong to each MCP server.
Hosts with registry support can install the server by registry name instead of a manual npx command.
Sẵn sàng bắt đầu?
Lấy API key và bắt đầu sử dụng MoLoop trong các công cụ này.