English

Connect Claude Code

Connect Claude Code to ModelPort using MCP.

Setup

  1. Set MODELPORT_API_KEY in the environment that launches Claude Code.
  2. Merge the server entry into .mcp.json in your project root. Start Claude Code and use /mcp to inspect and approve the project server.

Claude Code configuration

{
  "mcpServers": {
    "modelport": {
      "type": "http",
      "url": "https://apimodel.store/mcp",
      "headers": {
        "Authorization": "Bearer ${MODELPORT_API_KEY}"
      }
    }
  }
}

Verify the connection

Call list_models with {"available_only":false} to verify access to the catalog. Callable models depend on your account and region.

MCP tools and troubleshooting

Claude Code official documentation ↗