Flarelink — Claude Code MCP server: what it does, how to install
Flarelink gives coding agents stack guidance and code patterns for Cloudflare auth, D1, and R2. Use it when building an app on the Flarelink stack.
claude mcp add mcp -e FLARELINK_API_KEY=<FLARELINK_API_KEY> -- npx -y @flarelink/mcpWhat Flarelink does
Flarelink supplies an MCP client with practical context for the Flarelink stack: better-auth with KV-backed sessions, D1 databases, and R2 storage. Its tools cover safe identifier handling in SQL, user-scoped data, presigned uploads, Wrangler bindings, and @flarelink/client signatures. The stack guide is also available as flarelink://stack-guide.
The server can outline the stack, scaffold an application, list standard recipes, and suggest Cloudflare cost patterns. With a key, management tools can inspect projects, D1 databases, and R2 buckets or run parameterized SQL through the dashboard API. FLARELINK_API_KEY is required for those management actions; the reference and scaffolding tools remain available without it.
What it helps with
- scaffold a Flarelink application
- set up auth with KV sessions
- find a safe D1 SQL recipe
- add presigned uploads to R2
Example prompts for the agent
- Build a Flarelink app with auth, D1, and R2, and start by reading the stack guidance.
- Find the canonical pattern for a user-scoped D1 query and adapt it to my route.
- Check my active Flarelink project, then list its D1 databases and R2 buckets.
How to install Flarelink
Platform CLI
claude mcp add mcp -e FLARELINK_API_KEY=<FLARELINK_API_KEY> -- npx -y @flarelink/mcpReplace <…> with your own values
Platform CLI
codex mcp add flarelink --env FLARELINK_API_KEY=<FLARELINK_API_KEY> -- npx -y @flarelink/mcpReplace <…> with your own values
Config file
{
"mcpServers": {
"flarelink": {
"command": "npx",
"args": [
"-y",
"@flarelink/mcp"
],
"env": {
"FLARELINK_API_KEY": "<FLARELINK_API_KEY>"
}
}
}
}Replace <…> with your own values
Config file
{
"servers": {
"flarelink": {
"type": "stdio",
"command": "npx",
"args": [
"-y",
"@flarelink/mcp"
],
"env": {
"FLARELINK_API_KEY": "<FLARELINK_API_KEY>"
}
}
}
}Replace <…> with your own values
Platform CLI
gemini mcp add -e FLARELINK_API_KEY=<FLARELINK_API_KEY> flarelink npx -y @flarelink/mcpReplace <…> with your own values
Step by step, with commands for each platform: How to add an MCP server to Claude Code, Codex, Cursor, VS Code, Gemini CLI and more
Questions about Flarelink
How do I install Flarelink in Codex?
Run codex mcp add flarelink --env FLARELINK_API_KEY=<FLARELINK_API_KEY> -- npx -y @flarelink/mcp. The key can be supplied when project management is needed.
What does Flarelink do?
It gives an AI coding tool stack rules and implementation patterns for Cloudflare auth, D1, and R2. It also exposes tools for inspecting and querying connected Flarelink projects.
Is FLARELINK_API_KEY required?
The guidance, pattern catalog, and scaffolding features work without the key. Project management tools require FLARELINK_API_KEY, with access matching the Flarelink account.