Skip to content

Menu

FusionAuth MCP Server logo

FusionAuth MCP Server

Published

At a glance

Watch out for
The registry labels it a preview release, so expect changes.

FusionAuth publishes this server itself, in the FusionAuth/fusionauth-mcp-api repository, and ships it on npm as @fusionauth/mcp-api. It points an MCP client at your own FusionAuth instance and turns the FusionAuth REST API into tools, so an agent can look up users, applications and tenants, or change them if you allow it.

It runs locally over stdio. Your client launches it with npx, and it talks to FusionAuth using an API key you put in the client config. The README is blunt about the size: there is a tool for every API endpoint, more than 300 of them, and with descriptions and schemas they add up to nearly 200k tokens. That is why most setups narrow the tool list.

The official MCP registry lists it as io.fusionauth/mcp-api and describes it as a preview release. FusionAuth also lists a separate hosted documentation server, io.fusionauth/mcp-docs, at https://ai.fusionauth.dev/mcp/docs, which covers the docs rather than your instance.

How it connects

Your AI app

An assistant or agent that supports MCP

FusionAuth MCP Server

Runs as

  • npx (Node.js)

Gives the agent

  • Read operations
  • Create and update
  • Patch and delete
  • Other endpoints
  • Tool filtering

FusionAuth

Signs in with

  • API key
Your AI app talks to FusionAuth MCP Server over the Model Context Protocol, and the server carries out the work. Built from the setup and capability sections on this page.

What it can do

Read operations
The retrieve and search tool groups let an agent fetch and query FusionAuth objects, for example counting applications or users in the instance.
Create and update
The create and update groups map to the matching API endpoints, so an agent can add a user with an email and password or change existing configuration.
Patch and delete
The patch and delete groups cover partial updates and removals. The README suggests leaving delete off so the model cannot remove configuration on its own.
Other endpoints
An other bucket holds every tool whose name uses a different prefix, and all (the default) turns on everything.
Tool filtering
The USE_TOOLS variable takes a comma-separated list of prefixes. Setting it to retrieve,search cuts the tool list by about two thirds and keeps the server read-only.

Setting it up

You need a running FusionAuth instance and Node.js. First create an API key in FusionAuth and give it only the permissions you want the agent to have. Next, register the server with your MCP client. For Claude Desktop the README edits ~/Library/Application Support/Claude/claude_desktop_config.json with an mcpServers entry named fusionauth-mcp-api whose command is npx and whose args are ["@fusionauth/mcp-api"], plus an env block setting API_KEY_APIKEYAUTH to your key, API_BASE_URL to your instance (for example http://localhost:9011) and USE_TOOLS to retrieve,search. Remove USE_TOOLS for full access, but only with a model that can take around 200k tokens of tool definitions. To debug, run npx @modelcontextprotocol/inspector, passing env values on the command line because USE_TOOLS cannot be changed while it runs. You can also clone the repo, build packages/mcp-api with npm install and npm run build, and launch it through npm run start.

Where each client keeps its MCP config file, and the JSON it expects (cheat sheet)

Where it helps

  • Ask how many users or applications exist in a local or staging FusionAuth instance.
  • Look up a user record by searching, to check registration or account state while debugging a login flow.
  • Create test users with known emails and passwords in a development instance.
  • Review tenant and application settings with a read-only key before changing them by hand.

Limitations and things to watch

  • The registry labels it a preview release, so expect changes.
  • With every tool enabled the definitions approach 200k tokens, which exceeds the context window of many clients.
  • The API key sits in plain text in the MCP client config, and FusionAuth states it is not responsible for leaked sensitive information.
  • Write groups such as create, delete and patch let the model change real identity data, so scope the key and the USE_TOOLS list tightly.
  • It runs only as a local stdio process; the tool filter is fixed at startup and needs a restart to change.

Sources

Written from the project's own documentation, checked November 2026.

How we research: where our facts come from, how often we re-check them, and why no one can pay for a review or a verdict.

Reviews and commentsShow

Reviews

Sign in to leave a review.

Loading reviews…

Comments

Sign in to leave a comment.

Loading comments…