Authentication

Ethora MCP server authentication: OAuth 2.1, API keys and agent self-registration

One server, three entry points. Sign in with OAuth when your client supports it, start with no account to read the docs, and keep API keys for scripts and clients that cannot sign in.

OAuth 2.1 sign-in with PKCE No account needed for docs Agents register themselves
Ethora MCP server

In 30 seconds

The Ethora MCP server at https://mcp.chat.ethora.com has three entry points. /mcp/oauth accepts an OAuth 2.1 access token with the scopes read, write and admin enforced per tool; Claude.ai, ChatGPT, Claude Code, Cursor and VS Code run the sign-in for you. /mcp is open: the docs tools work with no account, and the session can identify itself with ethora-user-login or ethora-user-register, or with Authorization: Bearer <token> on every request. /mcp/k/<api-key> puts a key in the path for clients that take a URL but cannot sign in or send headers.

Choose by client

  • Claude.ai, ChatGPT, Claude Code, Cursor or VS Code with a person present: the OAuth sign-in URL
  • Exploring before you sign up, or an autonomous agent with no human: the open endpoint, then register in the session
  • Scripts, CI and clients that cannot sign in: an API key as a Bearer header, or in the path

Best for: deciding how an assistant or agent should hold an Ethora identity, from a pasted key to a scoped OAuth grant.

Step by step

1

Method 1: sign in with OAuth 2.1

Give your client https://mcp.chat.ethora.com/mcp/oauth. The authorization server is the Ethora API at https://api.chat.ethora.com: dynamic client registration, PKCE, scopes read, write and admin. The MCP server publishes RFC 9728 protected-resource metadata, and an unauthenticated request to /mcp/oauth gets 401 with a WWW-Authenticate header pointing at it, so the client finds the sign-in page by itself. A person signs in, or creates a free account on the same page, and clicks Allow. Users disconnect grants under Account, AI Assistants, Connected AI apps.

https://mcp.chat.ethora.com/mcp/oauth
# metadata: /.well-known/oauth-protected-resource/mcp/oauth
2

Method 2: no account, or log in inside the session

Connect to /mcp with no credentials. The documentation tools work straight away: search, fetch and ethora-help answer from the docs, SDK quickstarts and recipes. To act on an account, ethora-user-login { email, password } binds an existing one; add createApiKey: true for a key to reuse. ethora-user-register { email, firstName, lastName } creates an account, logs the session in and returns a generated password, an API key and connectorUrl once: no browser, no email confirmation. This is how an agent gets its own identity.

1. connect  https://mcp.chat.ethora.com/mcp
2. call     ethora-user-register { email, firstName, lastName }
3. store    apiKey and connectorUrl from the result
4. next time, reconnect with  Authorization: Bearer <apiKey>
3

Method 3: an API key, for scripts and clients that cannot sign in

An API key is a revocable user token for scripts, CI and clients that cannot sign in. Create one under Account, AI Assistants, or with ethora-api-key-create { name?, ttlDays? }: default 90 days, maximum 365 (30 and 90 when minted over an OAuth connection), shown once with a connectorUrl. Send it as a Bearer header on the open endpoint, or use the path form for connectors. Keys carry no scope claim and get full access.

# header form, any client that sends headers
POST https://mcp.chat.ethora.com/mcp
Authorization: Bearer <your API key>

# path form, for clients that take a URL but no headers
https://mcp.chat.ethora.com/mcp/k/<your API key>
4

Scopes per tool

On /mcp/oauth the token’s scope is checked per call: read-only tools need read, destructive tools admin, everything else write. search, fetch, ethora-help, ethora-status and ethora-doctor need no scope. The identity tools (login, register, configure, ethora-api-key-*) are hidden because the token already fixes who you are. A grant lacking a scope gets INSUFFICIENT_SCOPE (403); reconnect and approve the wider scope.

5

Key lifecycle

ethora-api-key-list shows id, name, created and expiry, never the value. ethora-api-key-revoke { id } is immediate: the next request fails with REFRESH_RECORD_NOT_FOUND. Rotate by creating a new key, updating the client, then revoking the old. The server never logs request URLs or tokens.

6

Sessions and the stdio server

Each MCP session holds private in-memory state (login, selected app, tokens); nothing is shared between sessions. Stay in user auth mode on the hosted server: ethora-status shows authMode: user. The stdio server takes ETHORA_APP_JWT and optional ETHORA_B2B_TOKEN from the environment, or ethora-session-configure at runtime.

ETHORA_API_URL=https://api.chat.ethora.com/v1 ETHORA_APP_JWT="JWT <your app jwt>" npx -y @ethora/mcp-server

The tools this uses

Names and descriptions come from the server’s own tool list. Read-only tools are safe to auto-approve; destructive ones make your client ask first. Full reference.

ToolNameWhat it doesAccess
Register Accountethora-user-registerCreate a new Ethora user account by email + first/last name, then log in and bind the session.write
Log Inethora-user-loginAuthenticate as an existing Ethora user with email + password.write
Create API Keyethora-api-key-createMint a revocable API key for the signed-in user, to authorise a script, a CI job or another AI client.write
List API Keysethora-api-key-listList the current user’s API keys (id, name, createdAt, expiresAt).read-only
Revoke API Keyethora-api-key-revokeRevoke one of the current user’s API keys by id.destructive
Session Statusethora-statusReport the current Ethora MCP session state: configured API URL, active auth mode, which credentials are present (booleans like hasAppJwt - values never echoed),...read-only
Connection Doctorethora-doctorDiagnose the session: validate the config is internally consistent for the active auth mode and ping the Ethora API (GET /v1/ping).read-only
Help and Next Stepsethora-helpTask-oriented orientation for this MCP server: explains the three Ethora auth modes (user / app-token / B2B) and recommends next tool calls + recipes based on current...read-only
Set Auth Modeethora-auth-mode-setSwitch this session’s active auth mode: user (a logged-in Ethora user, the normal mode and the only one the hosted agents/rooms routes accept), app (the...write
Configure Connectionethora-session-configureSet the Ethora API URL and credentials for this MCP session.write

A worked example

“Register an Ethora account for agent@example.com as Ops Agent, keep the API key for later, then list my apps and tell me how the session is authenticated.”
  1. ethora-user-register { email: "agent@example.com", firstName: "Ops", lastName: "Agent" }
  2. ethora-status {}
  3. ethora-app-list {}
  4. ethora-api-key-list {}

An account bound to the session, a stored API key and connector URL, an empty app list and a status showing authMode: user.

Good to know

FAQ

Does the Ethora MCP server support OAuth?

Yes. The /mcp/oauth endpoint accepts OAuth 2.1 access tokens from the Ethora authorization server at api.chat.ethora.com, with dynamic client registration, PKCE and the scopes read, write and admin. Discovery follows RFC 9728: an unauthenticated request gets 401 with a WWW-Authenticate header.

How do I authenticate to a remote MCP server with an API key?

Send an Authorization Bearer header with the key on every request to mcp.chat.ethora.com/mcp, or, for clients that take a URL but no headers, put the key in the path after mcp.chat.ethora.com/mcp/k/. Create keys under Account, AI Assistants or with ethora-api-key-create.

Can an AI agent create its own Ethora account through MCP?

Yes. Connect to the open endpoint with no credentials and call ethora-user-register with an email, first name and last name. The response contains a generated password, an API key and a connector URL, shown once. The agent stores the key and reconnects with a Bearer header.

What scopes does the Ethora MCP server use?

Three: read for read-only tools, write for tools that create or update, admin for destructive tools. search, fetch, ethora-help, ethora-status and ethora-doctor need no scope. Scopes are enforced only on the OAuth endpoint; API keys carry no scope claim and get full access.

Is MCP traffic kept inside my own infrastructure on a self-hosted Ethora?

Yes. The MCP server ships with the Ethora monoserver deploy; enabling services.mcp.enabled in deploy.yml serves it on your own mcp subdomain with the same tools, entry points and OAuth against your own API. Agent traffic never leaves the customer infrastructure.

Get started

Connect your assistant

Give your client https://mcp.chat.ethora.com/mcp/oauth and sign in, start with the open URL and no account, or let your agent register itself on the open endpoint. The tool reference documents every tool.

Free tier available No account needed to start Self-host with the monoserver