Search compactly.
Start with five matching IDs, endpoints, capabilities and minimum prices.
MCP for agents
Search a compact result set, inspect one model only when needed, then call it with your own JustAPI key. Less catalogue noise. More room for the actual task.
Progressive discovery
Start with five matching IDs, endpoints, capabilities and minimum prices.
Request pricing, parameters or descriptions only for the shortlisted model.
The selected model stays explicit. JustAPI never silently swaps it for another.
Connect once
The catalogue tools are public. Generation tools read Authorization: Bearer sk-... from the MCP connection—not from tool arguments.
Connect only the URL. Search, inspect and compare models without credentials.
Store your key in JUSTAPI_API_KEY and let the client construct the header.
{
"mcpServers": {
"justapi": {
"type": "http",
"url": "https://justapi.ai/mcp/server",
"headers": {
"Authorization": "Bearer ${JUSTAPI_API_KEY}"
}
}
}
}Export JUSTAPI_API_KEY=sk-... locally. The examples reference the environment variable instead of embedding a real key.
Five focused tools
Tools are shaped around agent tasks rather than mirroring every field in the public pricing response.
search_modelsSearch by task, provider, type, capability or endpoint. Returns 5 by default, 10 at most.
PUBLIC · READ ONLYget_modelChoose summary, pricing, calling, capabilities, parameters or description sections.
PUBLIC · READ ONLYcompare_modelsCompare up to five IDs and estimate token, context, request or resolution-based costs.
PUBLIC · READ ONLYgenerate_textUses the compatible Chat Completions or Anthropic Messages shape and returns only useful output.
REQUIRES KEYgenerate_mediaValidates each model’s public parameters and accepts reference images only as HTTPS URLs.
REQUIRES KEYTry asking
Credential boundary
The MCP service reads the bearer key for the current request only. It is not accepted as a tool argument, persisted, logged or returned to the agent.