Use the Modelglass MCP in Claude Code

The Modelglass MCP connects Claude Code directly to live AI model pricing and capability data — image generation, language models, video generation, and audio. Ask natural questions about model costs, compare providers, and get routing recommendations, all from inside your Claude Code session.

Connect via Claude Code · VS Code

Get a key

You need a Modelglass API key to use the MCP. Free keys are available instantly — no credit card required.

Get a free API key →

Add to Claude Code

Claude Code only (CLI and IDE extensions). Claude Desktop uses an OAuth-based connector that requires a different transport — Bearer-token MCP servers like this one are not compatible with it yet. Desktop support is planned once OAuth is implemented.

Add the mcpServers block to your ~/.claude/settings.json (or a project-level .mcp.json for project-scoped access):

{
  "mcpServers": {
    "modelglass": {
      "type": "http",
      "url": "https://modelglass-api.vercel.app/mcp",
      "headers": {
        "Authorization": "Bearer YOUR_KEY_HERE"
      }
    }
  }
}

Or via the Claude Code CLI:

claude mcp add --transport http modelglass https://modelglass-api.vercel.app/mcp --header "Authorization: Bearer YOUR_KEY_HERE"

After saving, restart Claude Code to load the new server. Run /mcp to confirm the modelglass server shows as connected.

Keys don't expire

Your API key is persistent — it works across sessions and Claude Code restarts without needing to be refreshed. If a key stops working (e.g. after regeneration), update the Authorization header in your settings and restart Claude Code.

Add to VS Code

Prefer working inside VS Code? Install the Modelglass MCP extension from the Marketplace for the same pricing and comparison tools, wired directly into your editor.

Get it on the VS Code Marketplace →

Troubleshooting

Connection shows "Failed to connect"

Check that your key is valid: run curl -s https://modelglass-api.vercel.app/v1/health -H "Authorization: Bearer YOUR_KEY". A 200 response confirms the key works. If you get 401, regenerate your key at modelglass.com.au/account →

Claude Code shows the server but tools aren't available

Run /mcp in Claude Code to reconnect. If the server shows ✘ Failed to connect, confirm the type: "http" field is present in your config (not type: "url" — that is a different transport).

Need a new key?

Visit modelglass.com.au/account → to view, copy, or regenerate your key at any time.

Example questions

Once connected, try asking Claude Code:

What the MCP can access

The Modelglass MCP exposes seven tools:

Tool What it does
modelglass_list_models browse and filter all tracked models with current pricing
modelglass_get_model full profile for a specific model including capability ratings
modelglass_compare_models side-by-side comparison with routing recommendations
modelglass_get_pricing_feed structured pricing feed for all active tiers
modelglass_route_task recommend the best current-generation LLM for a coding task category
modelglass_get_account the calling key's own plan tier and key status
modelglass_get_competitors a model's closest competitors with live pricing and price-delta ratio (retired ones show a labelled last price)

Data is updated daily by automated agents monitoring provider pricing pages.

Plan limits

Plan Rate limit Pricing history News feed Price
Free 100 req/day Current only Preview (5 entries) $0
Starter 10,000 req/day 12 months Preview (5 entries) $9/mo
Pro 100,000 req/day All time Full feed (API) $39/mo
Upgrade your plan →

REST API

Prefer direct HTTP? The same data is available via the REST API. Pass your key as a Bearer token in the Authorization header.

List all models

curl -s https://modelglass-api.vercel.app/v1/models \
  -H "Authorization: Bearer YOUR_KEY_HERE"

Get a specific model

curl -s https://modelglass-api.vercel.app/v1/models/flux-schnell-replicate \
  -H "Authorization: Bearer YOUR_KEY_HERE"

Full API reference →  ·  Get a key →