mcp-api
v0.1.14Preview release of FusionAuth API MCP server
Values you need
| Variable | What it is | |
|---|---|---|
API_KEY_APIKEYAUTH | required secret | Your API key for FusionAuth instance |
API_BASE_URL | required | The URL for your FusionAuth instance |
USE_TOOLS | optional | Prefixes of APIs to create MCP tools for, if not set defaults to all available tools |
npm (npx) discovery passed
Requires Node.js 18+
Run in a terminal
claude mcp add mcp-api -e 'API_BASE_URL=<API_BASE_URL>' -e 'API_KEY_APIKEYAUTH=<API_KEY_APIKEYAUTH>' -- npx -y --package=@fusionauth/mcp-api@0.1.14 fusionauth-mcp-apiAdd to
claude_desktop_config.json{
"mcpServers": {
"mcp-api": {
"args": [
"-y",
"--package=@fusionauth/mcp-api@0.1.14",
"fusionauth-mcp-api"
],
"command": "npx",
"env": {
"API_BASE_URL": "<API_BASE_URL>",
"API_KEY_APIKEYAUTH": "<API_KEY_APIKEYAUTH>"
}
}
}
}Add to
~/.cursor/mcp.json{
"mcpServers": {
"mcp-api": {
"args": [
"-y",
"--package=@fusionauth/mcp-api@0.1.14",
"fusionauth-mcp-api"
],
"command": "npx",
"env": {
"API_BASE_URL": "<API_BASE_URL>",
"API_KEY_APIKEYAUTH": "<API_KEY_APIKEYAUTH>"
}
}
}
}Add to
.vscode/mcp.json{
"inputs": [
{
"description": "API_BASE_URL",
"id": "api-base-url",
"password": true,
"type": "promptString"
},
{
"description": "API_KEY_APIKEYAUTH",
"id": "api-key-apikeyauth",
"password": true,
"type": "promptString"
}
],
"servers": {
"mcp-api": {
"args": [
"-y",
"--package=@fusionauth/mcp-api@0.1.14",
"fusionauth-mcp-api"
],
"command": "npx",
"env": {
"API_BASE_URL": "${input:api-base-url}",
"API_KEY_APIKEYAUTH": "${input:api-key-apikeyauth}"
},
"type": "stdio"
}
}
}Add to
~/.codex/config.toml[mcp_servers.mcp-api]
command = "npx"
args = ["-y", "--package=@fusionauth/mcp-api@0.1.14", "fusionauth-mcp-api"]
env = { "API_BASE_URL" = "<API_BASE_URL>", "API_KEY_APIKEYAUTH" = "<API_KEY_APIKEYAUTH>" }For AI agents
- Ask the user for: API_KEY_APIKEYAUTH, API_BASE_URL. Never invent or guess these values; secrets go into the client config, not into chat logs.
- Pick the user's MCP client and apply the matching config from the first install method (it is the one verified by the smoke test when available).
- Restart or reload the client so it starts the server.
- Verify: the server should expose these tools: retrieveJsonWebKeySetWithId, retrieveOpenIdConfigurationWithId, createAPIKey, retrieveAPIKeyWithId, updateAPIKeyWithId, createAPIKeyWithId, deleteAPIKeyWithId, patchAPIKeyWithId, ….
- If it fails, check that the required runtime is installed (Node.js 18+) and that the values above are set.
Machine-readable: install.md · manifest.json