mcp-api

v0.1.14
io.fusionauth/mcp-api Checked 3 days ago Published 1 year ago

Preview release of FusionAuth API MCP server

Values you need

VariableWhat it is
API_KEY_APIKEYAUTHrequired secret Your API key for FusionAuth instance
API_BASE_URLrequired The URL for your FusionAuth instance
USE_TOOLSoptional 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-api
Add 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

  1. 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.
  2. 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).
  3. Restart or reload the client so it starts the server.
  4. Verify: the server should expose these tools: retrieveJsonWebKeySetWithId, retrieveOpenIdConfigurationWithId, createAPIKey, retrieveAPIKeyWithId, updateAPIKeyWithId, createAPIKeyWithId, deleteAPIKeyWithId, patchAPIKeyWithId, ….
  5. 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