---
title: "Using the registry"
description: "How to use the Pydantic AI Model Registry: the pages, the API, the MCP server, the Markdown copies and the agent skill."
canonical: https://models.pydantic.dev/usage/
---

# Using the registry

> How to use the Pydantic AI Model Registry: the pages, the API, the MCP server, the Markdown copies and the agent skill.
>
> Markdown copy of https://models.pydantic.dev/usage/. Index for agents: https://models.pydantic.dev/llms.txt

**Agents: use the API for model information.** It answers a question in one request, where the pages need several.

- Choose a model for an agent: `POST https://models.pydantic.dev/api/select` with a JSON body such as `{"description": "what the agent does"}`. It returns up to five ranked models with reasons. Format: https://models.pydantic.dev/select.md
- Search models by name: `GET https://models.pydantic.dev/api/search?query=<text>`
- List, filter and sort models: `GET https://models.pydantic.dev/api/models`, for example `?weights=open&max_price=2&sort=efficiency`
- One model in full: `GET https://models.pydantic.dev/api/models/<slug>`

Add `intent=<intent>&stack=<stack>&harness=<harness>` to the query string of the first three. An `OPTIONS` request to any endpoint returns its schema. The same four are tools of the MCP server at `https://models.pydantic.dev/mcp`. More: https://models.pydantic.dev/usage.md

## The pages

- [Overview](https://models.pydantic.dev/): the highlights and the top models, and a chart of any two measures against each other.
- [Models](https://models.pydantic.dev/models/): every model in one table. Filter by family, provider, weights and Gateway support, and sort by any column. Each model has a page with its description, every provider's price, its benchmark scores and example code.
- [Model selector](https://models.pydantic.dev/select/): paste an agent's system prompt or code, or describe it, and get up to five models ranked for it with reasons.
- [Benchmarks](https://models.pydantic.dev/benchmarks/): what each benchmark measures, its caveats and every model's result.
- Press `/` on any page to search models by name. `/compare/<slug>/<slug>` puts two models side by side.

Prices are US dollars per million tokens. Where the data comes from and how the intelligence index is computed is on [Sources and methodology](https://models.pydantic.dev/methodology/).

## The API

Four endpoints, with no key. The first is a `POST` with a JSON body; the others are `GET`s that return JSON, or Markdown for `Accept: text/markdown` or `format=md`.

- `POST https://models.pydantic.dev/api/select`: choose a model for an agent. Send its system prompt, its code or a description; a selector agent ranks the registry and returns up to five models with reasons, scores out of 100 and prices. It takes around ten seconds and is limited to 10 requests in 24 hours per IP address. The request and response in full: [https://models.pydantic.dev/select.md](https://models.pydantic.dev/select.md).
- `GET https://models.pydantic.dev/api/search?query=<text>`: search models by name. It matches the name, family, slug and Pydantic AI model string, and does not read descriptions.
- `GET https://models.pydantic.dev/api/models`: list, filter and sort models. Filter by family, developer, provider, weights, price, context window, capabilities, release date and any benchmark score.
- `GET https://models.pydantic.dev/api/models/<slug>`: one model in full.

```bash
curl -s 'https://models.pydantic.dev/api/select?intent=choose+a+model+for+a+support+agent&stack=python,pydantic-ai&harness=claude-code' \
  -H 'Content-Type: application/json' \
  -d '{"description": "Answers customer questions from our help centre and escalates refund requests", "price_appetite": 3}'

curl -s 'https://models.pydantic.dev/api/search?query=opus&intent=<intent>&stack=<stack>&harness=<harness>'

curl -s 'https://models.pydantic.dev/api/models?weights=open&max_price=2&sort=efficiency&limit=10&intent=<intent>&stack=<stack>&harness=<harness>'

curl -s https://models.pydantic.dev/api/models/claude-opus-5.5
```

An `OPTIONS` request to an endpoint returns its parameters, body and responses as JSON Schema. [https://models.pydantic.dev/api/openapi.json](https://models.pydantic.dev/api/openapi.json) describes all four as OpenAPI 3.1. Cross-origin requests are allowed. Every answer names the API's version in an `API-Version` header. Within a version, fields and parameters are only added; a breaking change would get a new number, and a client can send the header to pin the version it was written for.

Agents are asked to add `intent` (what you're trying to achieve, in natural language), `stack` (the language/framework context you are working in), `harness` (the agent harness and model you are running) to the query string of the first three endpoints.

## The MCP server

`https://models.pydantic.dev/mcp` is a [Model Context Protocol](https://modelcontextprotocol.io) server with the same four operations as tools. It uses the Streamable HTTP transport, needs no key or sign-in, and keeps no session.

- `select_models`: choose models for an agent. Calls `POST /api/select`.
- `search_models`: search models by name. Calls `GET /api/search`.
- `list_models`: list, filter and sort models. Calls `GET /api/models`.
- `get_model`: one model in full. Calls `GET /api/models/{slug}`.

Claude Code:

```bash
claude mcp add --transport http pydantic-models https://models.pydantic.dev/mcp
```

Clients configured with JSON, such as Cursor, VS Code and Claude Desktop (the key names vary by client):

```json
{
  "mcpServers": {
    "pydantic-models": {
      "type": "http",
      "url": "https://models.pydantic.dev/mcp"
    }
  }
}
```

A Pydantic AI agent:

```python
from pydantic_ai import Agent
from pydantic_ai.mcp import MCPServerStreamableHTTP

registry = MCPServerStreamableHTTP('https://models.pydantic.dev/mcp')
agent = Agent('gateway/anthropic:claude-sonnet-5-5', toolsets=[registry])
```

`select_models` shares the selector's rate limit. Each tool returns the JSON of its endpoint. It answers clients on protocol revisions from 2024-11-05 to 2026-07-28. Its server card is at [https://models.pydantic.dev/mcp/server-card](https://models.pydantic.dev/mcp/server-card).

## Markdown and JSON copies

- Every page has a Markdown copy at the same address with `.md` (`https://models.pydantic.dev/models/claude-opus-5.5.md`; the home page is `/index.md`), and the same Markdown at `<page>/llms.txt`.
- A request for a page with `Accept: text/markdown` gets the Markdown copy.
- Every page has a JSON copy with `.json`. `https://models.pydantic.dev/models.json` is the whole model list.
- [https://models.pydantic.dev/llms.txt](https://models.pydantic.dev/llms.txt) is the index for agents: the API first, then every page. [https://models.pydantic.dev/sitemap.xml](https://models.pydantic.dev/sitemap.xml) lists every page with the date its data last changed.

## The agent skill

[https://models.pydantic.dev/.well-known/agent-skills/choose-a-model/SKILL.md](https://models.pydantic.dev/.well-known/agent-skills/choose-a-model/SKILL.md) is a skill for coding agents: when to call each endpoint to choose a model for a Pydantic AI agent, and how to use the answer. Save it as `.claude/skills/choose-a-model/SKILL.md` in a project, or the equivalent for another agent. It is listed at `https://models.pydantic.dev/.well-known/agent-skills/index.json`.

## Agents in the browser

Every page registers the four tools with WebMCP (`document.modelContext`), in browsers that have it, so an agent driving the page can call them without reading the tables. They are the tools of the MCP server (dev.pydantic/model-registry) and call the same endpoints. The script that registers them is [/webmcp.js](https://models.pydantic.dev/webmcp.js), which is not minified, so each tool's schema can be read from it.
