Skip to main content
Glama
flarelink-dev

Flarelink MCP

Official

@flarelink/mcp

An MCP server that teaches your AI coding tool to build correctly on the Flarelink stack — Cloudflare auth (better-auth + KV sessions), D1, and R2 — from inside Cursor, Claude Code, Windsurf, and anything else that speaks MCP.

It hands the agent the security and cost rules up front (user-scoping, identifier-safe SQL, KV sessions, presigned R2) so the generated code is right the first time, instead of the agent guessing and you debugging.

Install

No install needed — run it with npx. Add it to your tool's MCP config:

Claude Code

claude mcp add flarelink -- npx -y @flarelink/mcp

Cursor / Windsurf / Claude Desktop (mcp.json / config):

{
  "mcpServers": {
    "flarelink": {
      "command": "npx",
      "args": ["-y", "@flarelink/mcp"],
      "env": { "FLARELINK_API_KEY": "flk_…" }
    }
  }
}

The FLARELINK_API_KEY is optional. Without it you still get all the knowledge + scaffolding tools. With it, the management tools (below) can drive your actual Flarelink projects. Mint a key at dash.flarelink.dev → API keys.

Related MCP server: Cloudflare MCP Server

Tools

Tool

What it gives the agent

flarelink_stack_overview

The stack, cardinal rules, and deployment shapes. Read first.

flarelink_scaffold

How to bootstrap a complete working app (clone / one-click deploy) + file map.

flarelink_list_patterns

The catalog of canonical code patterns.

flarelink_get_pattern

Copy-pasteable code for one recipe (auth setup, route guards, identifier-safe D1, R2 upload/presign, wrangler bindings, SDK usage).

flarelink_sdk_reference

@flarelink/client signatures + return shapes (auth / storage / db).

flarelink_cost_patterns

Cloudflare cost-optimization guidance, with targeted hints for the feature you describe.

It also exposes the stack guide as a resource (flarelink://stack-guide) you can attach as context.

Management tools (need FLARELINK_API_KEY)

Drive your actual Flarelink projects from the editor. These route through the Flarelink dashboard API and act exactly as you would in the UI.

Tool

What it does

flarelink_whoami

Verify the key; show the user + active connection/project.

flarelink_list_projects

List projects on the active Cloudflare connection.

flarelink_list_databases

List the project's D1 databases.

flarelink_query_database

Run a (parameterized) SQL statement against a project D1.

flarelink_list_buckets

List the project's R2 buckets.

Without a key they return a clear "set FLARELINK_API_KEY" message. The key has the same access as your Flarelink login — treat it like a password.

License

MIT. Part of Flarelink — the dashboard for the Cloudflare developer stack.

Available Tools

11 tools

Tool Schema Changelog

Recent tool additions, removals, and schema changes observed during successful MCP inspections.

  1. 11 tool updatesv0.1.2
    • First observedflarelink_cost_patterns
    • First observedflarelink_get_pattern
    • First observedflarelink_list_buckets
    • First observedflarelink_list_databases
    • First observedflarelink_list_patterns
    • First observedflarelink_list_projects
    • First observedflarelink_query_database
    • First observedflarelink_scaffold
    • First observedflarelink_sdk_reference
    • First observedflarelink_stack_overview
    • First observedflarelink_whoami

TDQS

A4.3/5.0

Scored across 11 tools

Disambiguation5/5

Each tool has a clearly distinct purpose: knowledge/guidance tools (stack_overview, scaffold, sdk_reference, cost_patterns) vs. pattern listing/fetching (list_patterns, get_pattern) vs. operational tools (whoami, list_projects, list_databases, query_database, list_buckets). No two tools overlap in functionality, and the list/get/query pattern is clean.

Naming Consistency4/5

All tools share the 'flarelink_' prefix and use snake_case, but the naming convention is mixed: some are verb_noun (list_patterns, get_pattern, list_projects, query_database, list_buckets) while others are noun-only (stack_overview, sdk_reference, cost_patterns, whoami, scaffold). The inconsistency is minor and readable, but not perfectly uniform.

Tool Count5/5

With 11 tools, the server is well-scoped. The count balances educational/guidance tools with a focused set of management/query tools, each earning its place without redundancy or bloat.

Completeness4/5

The tool surface covers the core workflows: bootstrapping (scaffold), learning the stack (overview, patterns, SDK reference), verifying access (whoami), and viewing/querying resources (list_*, query_database). Missing operations include create/delete for projects, databases, or buckets, and there's no direct user management, but these gaps are workable via the scaffold and patterns.

Maintenance

ActivityInactive
ResponsivenessUnresponsive

Related MCP Connectors

Related MCP Servers

  • A
    license
    Not graded
    quality
    D
    maintenance
    A production-ready template for building MCP servers on Cloudflare Workers with social login (Google, Microsoft, GitHub), D1 database, admin dashboard, and built-in AI chat testing across multiple providers.
    75 npm
    MIT
  • A
    license
    Not graded
    quality
    D
    maintenance
    Manage Cloudflare resources such as Workers, KV, R2, D1, Durable Objects, and more using natural language via the Model Context Protocol.
    1,333 npm
    Apache 2.0
  • A
    license
    Not graded
    quality
    D
    maintenance
    Enables natural language management of Cloudflare services including Workers, KV, R2, D1, Queues, and more via the Model Context Protocol.
    1,333 npm
    Apache 2.0