FusionAuth API MCP
Lets your AI agent query and manage a FusionAuth instance: users, applications and settings, through its API.
0 stars on GitHubby FusionAuthUpdated β
How to install
This MCP is local: it runs on your computer.
It works in apps installed on your PC (Claude Desktop, Claude Code, Cursor, VS Codeβ¦). Choose your app:
Paste in the terminal:
claude mcp add fusionauth-mcp-api -e API_KEY_APIKEYAUTH="<your value>" -e API_BASE_URL="<your value>" -- npx -y @fusionauth/mcp-api
What to fill in
| Name | What it is | Required |
|---|---|---|
API_KEY_APIKEYAUTH | Your API key for FusionAuth instance | Yes |
API_BASE_URL | The URL for your FusionAuth instance | Yes |
USE_TOOLS | Prefixes of APIs to create MCP tools for, if not set defaults to all available tools | No |
Ready! Now test it
Restart the app and paste one of these requests in the chat:
How many users do I have in my FusionAuth instance?
How many FusionAuth applications do I have?
What it is
This server connects your AI agent to your own FusionAuth instance, an identity and login system. It has a tool for each FusionAuth API endpoint, so the agent can look up users and applications or, if you allow it, create and change them. You can limit it to read-only tools.
What it can do
retrievetools: read items such as users and applicationssearchtools: search users and other recordscreatetools: add new items (optional)updateandpatchtools: change existing items (optional)deletetools: remove items (optional)USE_TOOLSsetting: choose which groups of tools are offered
When to use
- βΊWhen you want to ask how many users or applications your FusionAuth instance has
- βΊWhen you need to add or update a user without opening the admin screen
- βΊWhen you want a read-only assistant that can look at your FusionAuth setup safely
What you need
Skills that pair well
MCP or skill?
The MCP gives the agent the hands. The skill teaches the right way to use them. Together, the result is better and uses fewer tokens.
x-twitter-scraperHelps your agent build tools that search tweets, look up users, pull follower lists and track accounts, using the Xquik API for X.agentmailProvides email infrastructure for AI agents. Lets them create accounts, send/receive emails, and manage billing via the API.google-ads-api-mcp-setupGuides you through installing the official Google Ads MCP server, so an AI assistant can query your Google Ads account in plain language.Frequently asked questions
Is it free and open source?
The package is published under the Apache 2.0 license. You still need your own FusionAuth instance.
What do I need before it works?
A running FusionAuth instance, Node.js, and an API key created in FusionAuth.
Can I make it read-only?
Yes. Set USE_TOOLS to retrieve,search so only read operations are available.
Why are there so many tools?
By default there is one tool for every API endpoint, over 300 in total. Together they use nearly 200k tokens, so restricting them is recommended.
Is it safe to use?
The API key is stored in your MCP client configuration, so scope the key narrowly. FusionAuth says it is not responsible for leaked sensitive information.
Where does it run?
On your machine through npx, started by your MCP client. It talks to the instance set in API_BASE_URL.
If it does not work
- βΊCheck that your API key has the permissions for the action the agent is trying.
- βΊIf your client struggles with the long tool list, set USE_TOOLS to a smaller group such as retrieve,search.
- βΊCheck your MCP client logs, or run npx @modelcontextprotocol/inspector to find out whether the problem is the server or the client.
5 new skills a week. 1 minute to read.