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's the cheapest model for image generation right now?
- › Compare FLUX.1 [dev] and DALL-E 3 across all capability dimensions
- › Which models are rated Strong for text rendering?
- › What would 10,000 generations per month cost across all tracked models?
- › Which providers offer per-megapixel pricing?
- › Compare GPT-4o mini vs Claude 3.5 Haiku on cost and capability
- › Which LLMs are strongest for coding at under $2 per million tokens?
- › What's the price difference between DeepSeek R1 and o4-mini for reasoning tasks?
- › Compare Kling 1.6 and Runway Gen-4 for video generation cost
- › Which video models support the longest clip duration?
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 |
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"