Mcp Api

io.fusionauthPublished by fusionauth.iov0.1.14Updated Oct 24, 2026

Preview release of FusionAuth API MCP server

VerifiedSTDIODesktop onlyDeveloper ToolsSecurity & Monitoring

Overview

AI-generated overview

Lets an assistant call FusionAuth identity and user management APIs, including creating, updating, searching and deleting users, applications and tenants.

What you can do
A preview MCP server that exposes the FusionAuth API as tools, with one tool per API endpoint — over 300 in total. Tools are grouped by prefix such as create, delete, patch, update, retrieve, search and other, and the USE_TOOLS variable selects which groups are available. This lets an assistant query counts of applications or users, look up records, and, when write tools are enabled, add or modify users and configuration.
When to use it
Useful when working against a FusionAuth identity server and you want an assistant to inspect or manage tenants, applications and users through natural language. Best suited to local development and test instances rather than production.
Requirements
A running FusionAuth instance and Node.js. The npm package @fusionauth/mcp-api runs locally over stdio. Required environment variables: API_BASE_URL for the instance URL and API_KEY_APIKEYAUTH, a FusionAuth API key. USE_TOOLS optionally restricts which tool groups are exposed; omitting it loads all tools, which needs roughly a 200k-token context window.
Before you install
The server is a preview and the README states it is not for production use and that FusionAuth is not responsible for potentially leaking sensitive information. It requires a FusionAuth API key (API_KEY_APIKEYAUTH) in the MCP client configuration. With write tools enabled the assistant can create, update, patch or delete users, applications and other configuration, so restrict USE_TOOLS to retrieve,search and scope the API key's permissions.

Installation

In SourceWeft

  1. Open Mcp Api in the dashboard and add it to a workspace.
  2. Enable the server for the chats that should use its tools.

Desktop only via STDIO. STDIO servers start a local process, so they need the SourceWeft desktop host.

Other MCP clients

Follow the launch instructions in the repository.

README

FusionAuth API MCP Server (fusionauth-mcp-api)

[npm version] [License: Apache] [GitHub repository]

Using this MCP server requires a FusionAuth API key which is stored in the MCP client configuration. Scope the API key appropriately.

FusionAuth is not responsible for potentially leaking sensitive information.

Prerequisites

  • A running FusionAuth instance
  • Node.js

Configuration

First, set up a limited API key in the FusionAuth instance. Here's documentation on creating an API key and configuring the correct permissions for an API key.

Next, configure your MCP client to use the FusionAuth API MCP server.

For example, to add to Claude Desktop, edit ~/Library/Application Support/Claude/claude_desktop_config.json to include the fusionauth-mcp-api key below.

If you don't have any previous MCP servers installed, it would look like this:

json
{  "mcpServers": {      "fusionauth-mcp-api": {      "command": "npx",      "args": [        "@fusionauth/mcp-api"      ],      "env": {        "API_KEY_APIKEYAUTH": "<your fusionauth api key>",        "API_BASE_URL": "http://localhost:9011",        "USE_TOOLS": "retrieve,search"      }    }  }}

The USE_TOOLS env variable above essentially restricts the available tools to read-only operations. You can omit this variable to allow full access, but you will need a model that can handle about 200k tokens.

Consult your MCP client's documentation to determine exactly how to add an MCP server to your client.

Example Prompts

  • "which tools do you have access to?" should show you all the FusionAuth API tools
  • "how many fusionauth applications do I have?"
  • "how many users do I have in my fusionauth instance?"
  • "add a user with an email address of [email protected] and a password of 'password'" (requires less restricted tools)

Restricting Tools

The default MCP Server has a tool for every API endpoint of FusionAuth. Over 300 of them! However, the tools, descriptions, requests, and responses combine to nearly 200k tokens, which can exceed the context window of many MCP clients.

You can restrict which tools this MCP server makes available by setting the USE_TOOLS env variable as shown above.

Each tool is defined by its prefix. The default prefixes are:

  • create
  • delete
  • patch
  • update
  • retrieve
  • search

There is also an other tool bucket that contains every tool with another prefix. The all tool bucket includes all tools and is the default value.

For example, if you don't need to use any delete or patch methods, the following setting reduces the tool list by 20%.

USE_TOOLS="create,update,retrieve,search,other"

If you only want to allow read-only operations, use the following configuration:

USE_TOOLS="retrieve,search"

This also reduces the tool list size by 66%.

Securing Your MCP Server

There are three different approaches to secure your MCP server and you should combine them to enable secure access to your FusionAuth instance while still meeting your functionality needs. In order of granularity (from coarse to fine-grained):

  • Point to the correct instance.
  • Enable the correct type of tools. In addition to reducing context window usage, limiting the type of requests your LLM can make can increase security. For instance, if you don't enable the delete set of tools, you don't have to worry about the LLM "helping" you by deleting FusionAuth configuration.
  • Lock down your API key. This allows fine-grained control beyond the tool choice. The MCP server communicates to FusionAuth using an API key. You can limit that API key to only allow it to act on tenants, applications and users by choosing the appropriate set of permissions.

Troubleshooting

Verify your API key has the correct permissions for the operation the MCP client is taking.

Check your MCP client logs; these vary by MCP client and platform. For example, $HOME/Library/Logs/Claude/mcp-server-fusionauth-api-server.log is the location for Claude Desktop on macOS. Consult your client's documentation for the precise location.

Use the modelcontextprotocol inspector to help determine if the issue is with the MCP server or with your MCP client: npx @modelcontextprotocol/inspector. If you want to change the USE_TOOLS variable, you cannot dynamically change it and must pass it on the command line. npx @modelcontextprotocol/inspector npx @fusionauth/mcp-api -e API_KEY_APIKEYAUTH=... -e USE_TOOLS=create

Building Locally

You can also build and run this locally.

bash
git clone https://github.com/FusionAuth/fusionauth-mcp-api.gitcd fusionauth-mcp-apicd packages/mcp-apinpm installnpm run build
# optional step to store config information in .env filecp .env.example .env# optionally edit .env to set API_BASE_URL and API_KEY_APIKEYAUTH

Then, similar to the instructions above, configure your MCP client to use the FusionAuth API MCP server.

For example, to add to Claude Desktop, edit ~/Library/Application Support/Claude/claude_desktop_config.json to include the fusionauth-mcp-api key below. If you don't have any previous MCP servers installed, it would look like this:

json
{  "mcpServers": {    "fusionauth-mcp-api": {      "command": "npm",      "args": [        "run",        "--silent",        "--prefix",        "<path to local git repo>/fusionauth-mcp-api/packages/mcp-api",        "start"      ],      "env": {        "API_KEY_APIKEYAUTH": "<your fusionauth api key>",        "API_BASE_URL": "http://localhost:9011",        "USE_TOOLS": "retrieve,search"      }    }  }}

You can omit the env section above if you have configured an .env file.

Publishing

bin/updatemcp.sh git commit git tag git push origin main --tags npm publish --access public --workspace=packages/mcp-api

Feedback

Please share feature requests and bugs in this repo.

If you want to share interesting use cases or ask how to use functionality, please post in the FusionAuth forum.

Source: README.md at commit 7a978f8

Tools

0
SourceWeft has not started this package in its sandbox yet, so its tools are not known.

Version history

1
  1. v0.1.14LatestSep 16, 2026

Score

40% of the applicable checks met

How complete this listing is, computed from the registry entry, the endpoint and public sources. Not a rating of the server and not a statement that it is safe or working today: reachability is a dated check, and no installs or reviews go into the score.

  • Reached in the last 30 days25 pts

    Keep the endpoint answering the MCP handshake; SourceWeft probes it every 30 days.

  • Auth declared10 pts

    Declare the credential headers in the registry entry, or keep the endpoint answering the probe so its auth can be classified.

  • Tools listed15 pts

    Answer tools/list without a credential, or ship a package that starts in a sandbox without one.

  • DescriptionRequired15 pts
  • Logo10 pts
  • Documentation15 pts
  • License10 pts

    Declare a license in the repository or the registry entry.