# MCP Api

> MCP Api is an open-source MCP server. Preview release of FusionAuth API MCP server. It runs locally on your machine and is started by your AI client.

- **Kind:** MCP server
- **Pricing:** Open source
- **Repository:** https://github.com/fusionauth/fusionauth-mcp-api
- **MCP Registry name:** io.fusionauth/mcp-api
- **Listing updated:** 2026-11-13

## About

Preview release of FusionAuth API MCP server

## Install

### Claude Code (Terminal)

```sh
claude mcp add mcp-api --env API_KEY_APIKEYAUTH='<API_KEY_APIKEYAUTH>' --env API_BASE_URL='<API_BASE_URL>' -- npx -y @fusionauth/mcp-api
```

### Claude Desktop (claude_desktop_config.json)

```json
{
  "mcpServers": {
    "mcp-api": {
      "command": "npx",
      "args": [
        "-y",
        "@fusionauth/mcp-api"
      ],
      "env": {
        "API_KEY_APIKEYAUTH": "<API_KEY_APIKEYAUTH>",
        "API_BASE_URL": "<API_BASE_URL>"
      }
    }
  }
}
```

### Cursor (~/.cursor/mcp.json)

```json
{
  "mcpServers": {
    "mcp-api": {
      "command": "npx",
      "args": [
        "-y",
        "@fusionauth/mcp-api"
      ],
      "env": {
        "API_KEY_APIKEYAUTH": "<API_KEY_APIKEYAUTH>",
        "API_BASE_URL": "<API_BASE_URL>"
      }
    }
  }
}
```

### VS Code (.vscode/mcp.json)

```json
{
  "servers": {
    "mcp-api": {
      "type": "stdio",
      "command": "npx",
      "args": [
        "-y",
        "@fusionauth/mcp-api"
      ],
      "env": {
        "API_KEY_APIKEYAUTH": "<API_KEY_APIKEYAUTH>",
        "API_BASE_URL": "<API_BASE_URL>"
      }
    }
  }
}
```

### Windsurf (~/.codeium/windsurf/mcp_config.json)

```json
{
  "mcpServers": {
    "mcp-api": {
      "command": "npx",
      "args": [
        "-y",
        "@fusionauth/mcp-api"
      ],
      "env": {
        "API_KEY_APIKEYAUTH": "<API_KEY_APIKEYAUTH>",
        "API_BASE_URL": "<API_BASE_URL>"
      }
    }
  }
}
```

### Other clients (your client's MCP settings (most use this shape))

```json
{
  "mcpServers": {
    "mcp-api": {
      "command": "npx",
      "args": [
        "-y",
        "@fusionauth/mcp-api"
      ],
      "env": {
        "API_KEY_APIKEYAUTH": "<API_KEY_APIKEYAUTH>",
        "API_BASE_URL": "<API_BASE_URL>"
      }
    }
  }
}
```

## FAQ

### Is MCP Api free?

Yes. MCP Api is open source, so you can use and self-host it for free.

### How do I add MCP Api to Claude Code?

Run this command in your terminal: claude mcp add mcp-api --env API_KEY_APIKEYAUTH='<API_KEY_APIKEYAUTH>' --env API_BASE_URL='<API_BASE_URL>' -- npx -y @fusionauth/mcp-api

---
Source: https://ai-powered.com/mcp/mcp-api-2
