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, and video generation. Ask natural questions about model costs, compare providers, and get routing recommendations, all from inside your Claude Code session.

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

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.

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 four 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

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

Plan limits

Plan Rate limit Pricing history Price
Free 100 req/day Current only $0
Starter 10,000 req/day 12 months $9/mo
Pro 100,000 req/day All time + webhooks $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 →