MCP for agents

Give your agent
the model catalogue.
Not the data dump.

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

Only load what
the task needs.

01

Search compactly.

Start with five matching IDs, endpoints, capabilities and minimum prices.

02

Inspect on demand.

Request pricing, parameters or descriptions only for the shortlisted model.

03

Call explicitly.

The selected model stays explicit. JustAPI never silently swaps it for another.

Connect once

Browse first.
Add a key when ready.

The catalogue tools are public. Generation tools read Authorization: Bearer sk-... from the MCP connection—not from tool arguments.

A

No key · catalogue access

Connect only the URL. Search, inspect and compare models without credentials.

  • Search and filters
  • Pricing and cost estimates
  • Model compatibility
B

With key · model calls

Store your key in JUSTAPI_API_KEY and let the client construct the header.

  • Text generation
  • Image generation
  • Usage-based cost estimate
{
  "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

Small surface.
Useful decisions.

Tools are shaped around agent tasks rather than mirroring every field in the public pricing response.

search_models

Find the shortlist.

Search by task, provider, type, capability or endpoint. Returns 5 by default, 10 at most.

PUBLIC · READ ONLY
get_model

Open one record.

Choose summary, pricing, calling, capabilities, parameters or description sections.

PUBLIC · READ ONLY
compare_models

Compare real workloads.

Compare up to five IDs and estimate token, context, request or resolution-based costs.

PUBLIC · READ ONLY
generate_text

Call one text model.

Uses the compatible Chat Completions or Anthropic Messages shape and returns only useful output.

REQUIRES KEY
generate_media

Generate an image.

Validates each model’s public parameters and accepts reference images only as HTTPS URLs.

REQUIRES KEY

Try asking

Prompts that start
with a decision.

Credential boundary

Your key stays a connection secret.

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.