Authdog

Use Authdog's MCP server

Last updated Dec 6, 2026
View as Markdown

Authdog's MCP server is the control plane for the account you sign in with. A coding agent can list tenants, create projects, set redirect URIs, and inspect users. It is not the MCP server your product exposes to its own agents. That server is Build an MCP server.

The endpoint is https://api.authdog.com/mcp (streamable HTTP).

Connect a client

The CLI writes the URL into the client config. The client signs in when the server answers 401 with WWW-Authenticate. The CLI does not put a bearer token in that file.

authdog mcp install --client cursor
authdog mcp list
authdog doctor --mcp
Client Flag
Cursor --client cursor (this is the default)
Claude Code --client claude
VS Code --client vscode
Codex --client codex
Every installed client --all

authdog mcp uninstall removes the Authdog entry and leaves your other MCP servers in place. authdog doctor --mcp checks that the protected-resource metadata is reachable.

Install the CLI from the Authdog CLI page. The 0.1.0-beta.3 release registers Cursor only. The other clients need a newer build, as listed under Release status.

Sign in with the Authdog account that should own the changes. The tools run as that person.

How the agent should behave

The server instructions tell the agent to show options and wait. A few rules are worth knowing before you let it click through:

  • It lists tenants, then projects, then fetches the project. It should not pick one for you, and it should not guess the project type from the name. Ask it whether you want web (OAuth app), m2m (machine-to-machine), or mcp (MCP server).
  • Mutations send confirm=true only after you confirm. Deletes need the exact name you expect.
  • After it creates a project, it should call get_sdk_config for the issuer, the client id, and the public key. The public key (pk_...) selects the identity host. It is not the OIDC client_id.
  • create_client creates a public PKCE client. It does not hand back a client secret. Redirect URIs come from you, not from a guess.

Dedicated tools cover tenants, projects, environments, OIDC clients, redirect URIs, end users, and environment MCP auth, gateway, and scopes.

Reach the rest of the REST API

Everything else in the REST API is reachable through four tools, so the agent is not limited to the dedicated ones. This covers organizations, groups, roles and permissions, audit logs, webhooks, notification channels, email and SMS providers, add-ons, forms, feature flags, vanity domains, billing, and the MCP trust store.

Tool What it does
search_api Finds operations by words, tag, or HTTP method
describe_api_operation Returns the path parameters, query parameters, and body schema of one operation
read_api Calls a GET operation
write_api Calls a POST, PUT, PATCH, or DELETE operation

The operation list is built from the same OpenAPI document as the REST reference, so a route added to the API is callable from MCP in the same release. Calls run as you, with the same validation and permissions as a REST request, and the audit log marks them as agent activity.

  • write_api needs confirm=true, which the agent sends after you approve the change.
  • Deletes, revocations, rotations, and transfers also need expectedTarget: the method and path of the resource the agent showed you, such as DELETE /v1/tenants/t1/environments/e1/webhooks/w1.
  • Some operations stay out of reach on purpose: impersonation, stored secrets and KMS keys, personal access tokens, deleting a tenant or an organization, and writing audit events. SCIM, HRIS, FGA, Vault, and Pipes use their own credentials and are not called with your sign-in.

Integrate the SDK from the agent

get_sdk_snippets returns the tested snippets the docs publish, by framework (nextjs, express, fastapi, javascript) or as an ordered bundle (auth-basics, server-side, machine-identity, mcp-server). The agent pairs them with get_sdk_config, which supplies the real issuer, client id, and public key for your environment.

Prompts

Prompt Use it to
provision_web_app Create a web project and wire its callback URL
explore_tenant Walk tenants and projects
integrate_sdk Add Authdog sign-in to the app in your editor
use_api Find and call a REST operation that has no dedicated tool

What this server is not

Job Where
Your product's MCP tools Build an MCP server
A user signing an MCP client into your server Connect an MCP client
An agent calling your API with its own credential Agent frameworks
The console page for an MCP project MCP servers
Read To learn how to
Skills Give the agent the docs before it calls tools
MCP servers Register the MCP project your users call
Machine identity Issue a credential for an unattended workload

Learn more