# Flarelink MCP server

> Enables AI coding tools to build applications using the Flarelink stack, including Cloudflare auth, D1, and R2, with built-in security and cost rules.

- Repository: https://github.com/flarelink-dev/mcp
- Page: https://hostedmcp.org/servers/flarelink-dev/mcp
- Transport: stdio
- Stars: 1
- License: MIT
- Latest version: 0.1.2

## Install

### Claude Code

```sh
claude mcp add --env 'FLARELINK_API_KEY=<YOUR_FLARELINK_API_KEY>' mcp -- npx -y @flarelink/mcp
```

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

```json
{
  "mcpServers": {
    "mcp": {
      "command": "npx",
      "args": [
        "-y",
        "@flarelink/mcp"
      ],
      "env": {
        "FLARELINK_API_KEY": "<YOUR_FLARELINK_API_KEY>"
      }
    }
  }
}
```

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

```json
{
  "servers": {
    "mcp": {
      "type": "stdio",
      "command": "npx",
      "args": [
        "-y",
        "@flarelink/mcp"
      ],
      "env": {
        "FLARELINK_API_KEY": "<YOUR_FLARELINK_API_KEY>"
      }
    }
  }
}
```

### VS Code CLI

```sh
code --add-mcp '{"name":"mcp","type":"stdio","command":"npx","args":["-y","@flarelink/mcp"],"env":{"FLARELINK_API_KEY":"<YOUR_FLARELINK_API_KEY>"}}'
```

### Claude Desktop (`claude_desktop_config.json`)

```json
{
  "mcpServers": {
    "mcp": {
      "command": "npx",
      "args": [
        "-y",
        "@flarelink/mcp"
      ],
      "env": {
        "FLARELINK_API_KEY": "<YOUR_FLARELINK_API_KEY>"
      }
    }
  }
}
```

### Codex

```sh
codex mcp add mcp --env 'FLARELINK_API_KEY=<YOUR_FLARELINK_API_KEY>' -- npx -y @flarelink/mcp
```

### Codex config.toml (`~/.codex/config.toml`)

```toml
[mcp_servers.mcp]
command = "npx"
args = ["-y", "@flarelink/mcp"]

[mcp_servers.mcp.env]
FLARELINK_API_KEY = "<YOUR_FLARELINK_API_KEY>"
```

### Gemini CLI

```sh
gemini mcp add -s user -e 'FLARELINK_API_KEY=<YOUR_FLARELINK_API_KEY>' mcp npx -- -y @flarelink/mcp
```

### Gemini settings.json (`~/.gemini/settings.json`)

```json
{
  "mcpServers": {
    "mcp": {
      "command": "npx",
      "args": [
        "-y",
        "@flarelink/mcp"
      ],
      "env": {
        "FLARELINK_API_KEY": "<YOUR_FLARELINK_API_KEY>"
      }
    }
  }
}
```

## Environment variables

| Name | Required | Secret | Description |
|---|---|---|---|
| `FLARELINK_API_KEY` | no | yes | Optional. Personal API key from dash.flarelink.dev → API keys. Enables the project-management tools; the knowledge & scaffolding tools work without it. |

## Tools (11)

- `flarelink_stack_overview`
- `flarelink_scaffold`
- `flarelink_list_patterns`
- `flarelink_get_pattern`
- `flarelink_sdk_reference`
- `flarelink_cost_patterns`
- `flarelink_whoami`
- `flarelink_list_projects`
- `flarelink_list_databases`
- `flarelink_query_database`
- `flarelink_list_buckets`

## FAQ

### How can I install the Flarelink MCP server?

You can run it using npx without a traditional installation.

### What management tools are available with an API key?

With an API key, you can list projects, list D1 databases, run parameterized SQL queries, and list R2 buckets.
