# Breslevpedia auth.md

Breslevpedia's public API and MCP server are read-only and open: agents do **not** need to register or authenticate. Everything below is optional.

## Audience

AI agents and tools that read Breslevpedia (https://breslevpedia.com), the Hebrew encyclopedia of Breslov Chassidut.

## Resources

- MCP server: `https://breslevpedia.com/mcp` (Streamable HTTP)
- Read API: `https://breslevpedia.com/api/search`, `https://breslevpedia.com/api/entries.json` (see `https://breslevpedia.com/openapi.json`)
- Protected resource metadata: `https://breslevpedia.com/.well-known/oauth-protected-resource`
- Authorization server metadata: `https://breslevpedia.com/.well-known/oauth-authorization-server`

## Registration (anonymous)

1. `POST https://breslevpedia.com/oauth/register` with a JSON body such as `{"client_name": "my-agent"}`. The response contains a `client_id`. No account, email or human approval is involved.
2. `POST https://breslevpedia.com/oauth/token` with `grant_type=client_credentials&client_id=<client_id>` (form-encoded). The response contains a bearer `access_token` with scope `read`, valid for one hour.

## Using the credential

Send `Authorization: Bearer <access_token>` to the MCP server or the API. Tokens only grant the public `read` scope, which is also available without a token.

## Revocation

Tokens are short-lived and stateless. `POST https://breslevpedia.com/oauth/revoke` is accepted for compatibility; discard tokens you no longer need.
