連携ガイド

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.

text
基础 URL: https://api.moloop.io/v1
API 密钥: YOUR_API_KEY

Compatibility

  • 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.

dotenv
MOLOOP_API_KEY=YOUR_API_KEY
MOLOOP_BASE_URL=https://api.moloop.io/v1

Add it to an MCP desktop host

Add this block to an MCP host that supports stdio; npx installs the server on first run.

json
{
  "mcpServers": {
    "moloop": {
      "command": "npx",
      "args": ["-y", "moloop-mcp"],
      "env": { "MOLOOP_API_KEY": "YOUR_API_KEY" }
    }
  }
}

Or register it in Claude Code

bash
claude mcp add moloop -e MOLOOP_API_KEY=YOUR_API_KEY -- npx -y moloop-mcp

Use the tools

The host can call search_models, get_pricing, and chat on demand. Separate model request errors from MCP server startup errors.

text
search_models  filter the live catalog
get_pricing    list prices per 1M tokens
chat           send a prompt to a model

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.

始める準備はできましたか?

API キーを取得して、これらのツールで MoLoop を使い始めましょう。