mcp: Instructions file for Claude Code

CLAUDE.md

mcp CLAUDE.md is an instructions file for Claude Code from local-falcon/mcp. It costs 8,429 tokens per session, scanned A, original, MIT.

Repository instructions for a TypeScript MCP server that connects AI agents to the Local Falcon API. Local Falcon tracks business rankings across map and AI-search services using location-based grid scans.

In plain words
What is it for?
Use them when adding or changing API calls, MCP tools, OAuth handling, transports, reports, or campaign and business-profile features.
Why use it?
They explain the server's tool structure, API-client boundaries, authentication setup, and conventions so changes fit the existing design.

Instructions file for Claude Code

Written for Claude Code: the file is CLAUDE.md. Also seen: mentions .claude-plugin; mentions CLAUDE.md; mentions Claude Code.

This is local-falcon/mcp's own configuration. It tells Claude Code how to work on mcp itself, so it is not a mod to install elsewhere. Copy it as a starting point and replace the rules that are about this project. Everything mcp configures →

Reuse

Borrowing it

Nothing to install: this file belongs to local-falcon/mcp. Take a copy, put it at the same path in your own repository, and replace the rules that are about this project with yours.

Copy the file
curl -O https://raw.githubusercontent.com/local-falcon/mcp/main/CLAUDE.md
Clone the repo
git clone --depth 1 https://github.com/local-falcon/mcp

Made for: Claude Code.

Wrote this? Show the measurements

A badge with what this costs and how it scanned, read live from this page, so it follows the numbers instead of freezing them. Markdown for a README, HTML for a documentation site or a project page.

agentmods badge for mcp CLAUDE.md

README.md
[![agentmods](https://agentmods.dev/badge/instructions/local-falcon/mcp/claude-md/github.svg)](https://agentmods.dev/instructions/local-falcon/mcp/claude-md)
Your own site
<a href="https://agentmods.dev/instructions/local-falcon/mcp/claude-md"><img src="https://agentmods.dev/badge/instructions/local-falcon/mcp/claude-md/github.svg" alt="Measured on agentmods" height="20"></a>

Or the 80×15 button, for a site that already has a row of RSS and ATOM ones. Only the verdict fits; the numbers stay here.

agentmods 80×15 button for mcp CLAUDE.md

Your own site · 80×15
<a href="https://agentmods.dev/instructions/local-falcon/mcp/claude-md"><img src="https://agentmods.dev/badge/instructions/local-falcon/mcp/claude-md.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 8,429 This file is loaded in full into every session.
When invoked 8,429 The same file — it is already loaded in full.
Security scan A 1 finding. A grade says what 26 rules found in the file — not that it is safe.
Origin original No closer match found in the catalogue.
Token cost

What it costs to keep this loaded

Counted locally with the o200k_base tokenizer, which is exact for GPT models; Claude uses its own tokenizer and its counts differ. Treat this as one consistent yardstick across the catalogue rather than a bill. Prices are per million input tokens.

ModelPer sessionOnce invoked
Fable 5.1 $0.08429 $0.08429
Opus 5.5 $0.03372 $0.03372
Sonnet 5.5 $0.01686 $0.01686
Haiku 4.5 $0.00843 $0.00843

Measured 1mo ago against content hash 3f3028a35e0b, method: parsed. Prices are Anthropic first-party input rates as of 2026-10-07, from the pricing page.

Security

Grade A, and why

mcp CLAUDE.md scanned grade A with 1 finding against 26 rules in 11 categories — prompt injection, anti-refusal, data exfiltration, privilege escalation, supply chain, agent snooping, system-prompt leakage, SSRF and excessive agency — measured 1mo ago.

A static scan of the body, not an audit. Every finding is printed with the line that produced it so you can judge whether it matters here. A mod is markdown that instructs an agent; that is exactly why what it instructs is worth reading.

Makes network callslowCapability

Not a fault in itself. Listed so you know the mod talks to something, and to what.

| 1 userAgent | User-Agent product token | `curl` |
CLAUDE.md · 586 lines

How it starts

The opening of the file, as written. The whole thing — 586 lines — stays where its author put it; the contents beside it link to each section on GitHub.

CLAUDE.md — @local-falcon/mcp

Project Overview

This is the Local Falcon MCP Server (@local-falcon/mcp), a Model Context Protocol server that wraps the Local Falcon API. It enables AI agents to run geo-grid rank tracking scans, retrieve reports, manage campaigns, monitor Google Business Profiles, and analyze competitive positioning across AI search platforms, Google Maps, and Apple Maps.

Package: @local-falcon/mcp (npm) Version: 1.4.18 License: MIT Runtime: Node.js 18+ Language: TypeScript (strict mode)

Architecture

index.ts          → Entry point. Transport selection (STDIO, SSE, HTTP), session management, OAuth 2.1
server.ts         → MCP tool registrations. Exports getServer() with session-selected tool registration
localfalcon.ts    → API client layer. All fetch functions, rate limiting, retry logic, timeout handling
oauth/            → OAuth 2.1 authorization server (routes, provider, config, state/client stores)

Key Design Patterns

  • server.ts exports a single getServer(sessionMapping) function that creates and returns an McpServer instance with profile-selected tools registered via server.tool(name, description, zodSchema, annotations, handler). Every tool includes MCP tool annotations (readOnlyHint, destructiveHint, openWorldHint) that signal to AI clients whether a tool reads data or modifies state.
  • localfalcon.ts contains one exported function per API endpoint. Two call patterns:
    • URL params (v1): new URL(endpoint) → url.searchParams.set() → POST with JSON headers
    • FormData (v2): new FormData() → form.append() → POST with form body
  • API key resolution: getApiKey(ctx) checks the session mapping first (for OAuth-authenticated remote sessions), then falls back to process.env.LOCAL_FALCON_API_KEY (for STDIO/local use).
  • handleNullOrUndefined() converts null/undefined Zod outputs to empty strings before passing to API client functions. The API client functions then use if (value) guards to skip empty params.

Read the full file on GitHub · 586 lines

Changes

What this file has done since we first saw it

Hashed on every crawl. A supply-chain change to an agent config is a question of when, not whether, so the history is kept rather than the latest state alone.

  1. 1mo ago Changed · +19 tokens per session 3f3028a35e0b
  2. 1mo ago Changed · +6 tokens per session 0ca25fb906b3
  3. 1mo ago Changed · +38 lines · +847 tokens per session e7d00bdf0e4b
  4. 1mo ago Changed · +107 lines · +1,731 tokens per session 1dc682d5fe98
  5. 1mo ago Changed · +58 lines · +970 tokens per session a0bbd536892f
  6. 1mo ago Changed 90eba29db89c
  7. 2mo ago Changed 9204def121b8
  8. 2mo ago Changed 857133593fd8
  9. 2mo ago First seen · 383 lines · 4,856 tokens per session scan A f0c2e61db814

Subscribe to this mod's changes

mcp CLAUDE.md is an instructions file published in the GitHub repository local-falcon/mcp (26 stars, last pushed 4d ago), licensed MIT. It adds 8,429 tokens to every session, about $0.0337 per session on Opus 5.5. A static security scan graded it A with 1 finding (makes network calls). No closer match exists in the catalogue, so it is treated as the original; first seen 2026-08-30.

Related

mcp CLAUDE.md compared with instructions from other repositories

mcp CLAUDE.md next to 6 instructions from other repositories
ModTypeStarsLast pushLicenceScanTokensWorks with
mcp CLAUDE.mdlocal-falcon/mcpInstructions file264d agoMITA8,429Claude Code
vscode buildNext.instructions.mdmicrosoft/vscodeInstructions file195kyesterdayMITA9,719GitHub Copilot
next.js AGENTS.mdvercel/next.jsInstructions file143kyesterdayMITA7,461Codex, OpenCode
langchain AGENTS.mdlangchain-ai/langchainInstructions file149kyesterdayMITA4,680Codex, OpenCode
vscode oss-third-party-notices.instructions.mdmicrosoft/vscodeInstructions file195kyesterdayMITA5,516GitHub Copilot
vscode copilot-instructions.mdmicrosoft/vscodeInstructions file195kyesterdayMITA3,093GitHub Copilot
deepseek-harness AGENTS.mddeepseek-ai/deepseek-harnessInstructions file274k2d agoMITA4,313Codex, OpenCode