What Is an MCP Server? Connect GitHub, Postgres & Blender MCP to Claude Code & Codex

Practical developer guide to Model Context Protocol (MCP) servers: how MCP works with Claude Code and Codex CLI, GitHub & Blender MCP JSON configs, and cutting MCP tool-loop API costs.

Modelseed ·
INTERACTIVE CONFIG WIZARD

Generate a ready-to-paste config in 5 seconds

Pick your client, OS, and model — then click below to sign up and auto-fill this exact snippet with a scoped Starter API Key.

# PowerShell · Recommended key cap: $2 (2,000 credits)
$env:ANTHROPIC_BASE_URL = "https://api.modelseed.dev"
$env:ANTHROPIC_AUTH_TOKEN = "sk-YOUR_MODELSEED_KEY"
$env:ANTHROPIC_MODEL = "claude-opus-5-5-kiro"
claude --model $env:ANTHROPIC_MODEL
30-SECOND API QUICK START

deepseek-v4-1-flash · Input $0.0822 · Output $0.3289 per 1M tokens

Get key + bonus
from openai import OpenAI
client = OpenAI(base_url="https://api.modelseed.dev/v1", api_key=os.environ["MODELSEED_API_KEY"])
res = client.chat.completions.create(model="deepseek-v4-1-flash", messages=[{"role":"user","content":"Hello!"}])
Starter bonus: $0.20–$1.00 (200–1,000 credits) + +10% first-payment bonus · Lava from $1, USDT & Binance Pay · DeepSeek rates · Pricing calculator

What an MCP server actually does in AI coding workflows

Model Context Protocol (MCP) is an open standard that acts like a universal plug between an LLM client (Claude Code, Codex CLI, Cursor, OpenCode) and external tools such as GitHub repositories, PostgreSQL databases, browser automation, or 3D tools like Blender MCP.

Because MCP servers expose structured tool schemas and return tool payloads on every turn, heavy MCP sessions generate 3x–10x more input tokens than simple chat. Running your MCP-enabled client through a cost-transparent gateway with strong prompt caching keeps tool-heavy engineering loops affordable.

  • Standard transports: local stdio (npx / uvx child process) and remote Streamable HTTP.
  • Works identically whether Claude Code calls Anthropic directly or routes through ANTHROPIC_BASE_URL=https://api.modelseed.dev.
  • Prompt cache reads ($0.0148/1M on claude-opus-5-5-kiro, $0.0032/1M on gpt-6.2-sol) keep repeated MCP tool definitions nearly free.

Connect GitHub MCP or Blender MCP to Claude Code on Modelseed

MCP servers are registered locally in your client config — your LLM gateway only needs to preserve native tool_use / tool_result messages (Anthropic /v1/messages) or Responses API function calls (/v1/responses). Here is a minimal .mcp.json for Claude Code:

.mcp.json — Register GitHub & Blender MCP servers in Claude Code
{
  "mcpServers": {
    "github": {
      "command": "npx",
      "args": ["-y", "@modelcontextprotocol/server-github"],
      "env": {
        "GITHUB_PERSONAL_ACCESS_TOKEN": "${GITHUB_TOKEN}"
      }
    },
    "blender": {
      "command": "uvx",
      "args": ["blender-mcp"]
    }
  }
}

Only enable the MCP servers you actively need per project: every enabled MCP server injects its JSON tool schemas into every request turn.

Keeping MCP token bills low with prompt caching & model routing

Each MCP tool list adds 2,000–15,000 tokens to the system context. Pair MCP-heavy agents with routes that offer deep cache-read discounts and per-key budget caps:

Best Modelseed routes for MCP-heavy agents (USD per 1M tokens)
ClientModel IDInputOutputCache Read
Claude Code + MCPclaude-opus-5-5-kiro$0.2954$1.4769$0.0148
Claude Code (standard)claude opus 5.5$1.1660$5.8299$0.0583
Codex CLI + MCPgpt-6.2-sol$0.0642$0.3208$0.0032
Codex CLI (deep)gpt-6.2-astra$0.2567$1.2833$0.0128

Frequently asked questions

Does routing Claude Code through Modelseed break local MCP servers?

No. MCP servers execute locally (or via your own remote MCP URL) inside Claude Code; Modelseed receives the native /v1/messages tool_use and tool_result payloads cleanly.

Why did my API spend jump after enabling 6 MCP servers?

Every enabled MCP server appends its tool definitions to every prompt. Disable unused servers per workspace and rely on routes with cheap cache reads like claude-opus-5-5-kiro or gpt-6.2-sol.

Does Codex CLI also support MCP servers with Modelseed?

Yes. Configure mcp_servers in ~/.codex/config.toml alongside model_provider = "modelseed" and wire_api = "responses".

How should I secure an MCP agent that can query databases or GitHub?

Use read-only tokens for MCP servers where possible, and assign a dedicated Modelseed API key with a hard USD cap to prevent infinite retry loops.

Official references

BUILD WITH MODELSEED

From an idea to your first request.

One key and a familiar API. New verified accounts receive a $0.20–$1.00 welcome bonus (200–1,000 credits, 30 days) + 10% bonus on their first payment.

Get API key + bonus