mcp CLAUDE.md

mcp CLAUDE.md is an instructions file for coding agents from local-falcon/mcp. It costs 4,856 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

Install

Getting it into your agent

One page per mod, every tool's command on it. A separate URL per tool would split the same page into five that compete with each other.

agentmods
npx agentmods add instructions/local-falcon/mcp/claude-md
Clone the repo
git clone --depth 1 https://github.com/local-falcon/mcp

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.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.svg" alt="Measured on agentmods" height="20"></a>
Per session 4,856 This file is loaded in full into every session.
When invoked 4,856 The same file — it is already loaded in full.
Security scan A 0 findings. Scan, not verified.
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 $0.04856 $0.04856
Opus 5 $0.02428 $0.02428
Sonnet 5 $0.00971 $0.00971
Haiku 4.5 $0.00486 $0.00486

Measured today against content hash 857133593fd8, method: parsed. Prices are Anthropic first-party input rates as of 2026-08-30, from the pricing page.

Security

Grade A, and why

mcp CLAUDE.md scanned grade A with 0 findings 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 today.

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.

Nothing flagged

None of the 26 patterns this scan looks for appear in this file: no shell pipes, no recursive deletes, no credential paths, no hidden text, no instruction-override or anti-refusal phrasing, no agent-config snooping. That is not a guarantee, it is the absence of the things that are checkable.

CLAUDE.md · 383 lines

How it starts

The opening of the file, as written. The whole thing — 383 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 Google Maps, Apple Maps, and AI search platforms.

Package: @local-falcon/mcp (npm) Version: 1.4.9 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() which creates McpServer with 38 tools
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 all 38 tools registered via server.tool(name, description, zodSchema, annotations, handler). Every tool includes MCP tool annotations (readOnlyHint, destructiveHint) 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 · 383 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. today Changed 857133593fd8
  2. 5d 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 (23 stars, last pushed 2d ago), licensed MIT. It adds 4,856 tokens to every session, about $0.0243 per session on Opus 5. A static security scan graded it A with 0 findings. No closer match exists in the catalogue, so it is treated as the original; first seen 2026-08-30.