Borrowing it
Nothing to install: this file belongs to dathere/fbi-crime-data-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.
curl -O https://raw.githubusercontent.com/dathere/fbi-crime-data-mcp/main/CLAUDE.mdgit clone --depth 1 https://github.com/dathere/fbi-crime-data-mcpWrote 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.
[](https://agentmods.dev/instructions/dathere/fbi-crime-data-mcp/claude-md)<a href="https://agentmods.dev/instructions/dathere/fbi-crime-data-mcp/claude-md"><img src="https://agentmods.dev/badge/instructions/dathere/fbi-crime-data-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.
<a href="https://agentmods.dev/instructions/dathere/fbi-crime-data-mcp/claude-md"><img src="https://agentmods.dev/badge/instructions/dathere/fbi-crime-data-mcp/claude-md.svg" alt="Reviewed on agentmods" width="80" height="20"></a>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.
| Model | Per session | Once invoked |
|---|---|---|
| Fable 5.1 | $0.01154 | $0.01154 |
| Opus 5.5 | $0.00462 | $0.00462 |
| Sonnet 5.5 | $0.00231 | $0.00231 |
| Haiku 4.5 | $0.00115 | $0.00115 |
Grade A, and why
fbi-crime-data-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 2mo 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.
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.
How it starts
The opening of the file, as written. The whole thing — 37 lines — stays where its author put it; the contents beside it link to each section on GitHub.
CLAUDE.md
This file provides guidance to Claude Code (claude.ai/code) when working with code in this repository.
Project Overview
FBI Crime Data MCP Server — a Python MCP server providing 17 tools (15 for querying the FBI Crime Data Explorer API at https://api.usa.gov/crime/fbi/cde, plus 2 admin tools for cache and spillover management). Built with fastmcp (v3.2+) and httpx, deployable via uvx fbi-crime-data-mcp.
Build & Run
uv sync # install deps
FBI_API_KEY=xxx uv run fbi-crime-data-mcp # run server (stdio)
uv run pytest # run tests
FBI_API_KEY=xxx uv run pytest -m integration # integration tests (hits real API)
Architecture
src/fbi_crime_data_mcp/server.py— FastMCP server entry point with lifespan context. Imports all tool modules. Configures threeErrorAwareCachingMiddlewareinstances (fromcaching.py) withFileTreeStorefor tiered disk-backed caching (90-day TTL for summaries/trends/reference/NIBRS estimation; 30-day TTL for agency lookups and granular crime/officer data; 1-day TTL for homepage summary), plus aResponseSpilloverMiddlewarefor oversized responses. Cache persists to~/.cache/fbi-crime-data-mcp/.src/fbi_crime_data_mcp/api_client.py— Sharedhttpx.AsyncClientwrapper with sliding-window rate limiter (1000 req/hr).AppContextdataclass is the lifespan context available to all tools viactx.lifespan_context.src/fbi_crime_data_mcp/response_utils.py— Post-processing for API responses:process_crime_response()trims verbose sections (tooltips, participated_population) and aggregates monthlymm-yyyydata into yearly totals, adding a top-level_partial_yearsmarker when any year has fewer than 12 months of data;filter_agencies_by_name()does case-insensitive substring filtering on agency lists.src/fbi_crime_data_mcp/constants.py— All validation enums: SRS offenses, NIBRS codes, arrest offenses, bias codes, LESDC chart types, states.src/fbi_crime_data_mcp/caching.py—ErrorAwareCachingMiddleware, aResponseCachingMiddlewaresubclass whoseon_call_toolskips writing results that start with anUNCACHEABLE_PREFIXESentry (Error:,Rate limit reached). Tools never raise, so without this a timeout or HTTP 5xx would be cached for the full TTL. Mirrors fastmcp 3.2 private internals;tests/test_caching.pyguards the layout.src/fbi_crime_data_mcp/spillover.py—ResponseSpilloverMiddlewaresaves oversized tool responses (>128K chars) to disk under~/.cache/fbi-crime-data-mcp/spillover/, returning a preview with the file path. Content-addressed filenames avoid duplicates.src/fbi_crime_data_mcp/validators.py— Shared validation helpers used by tools: level, data_type, aggregate, state, ORI, date format (mm-yyyy / yyyy), year range, and offense code validators. Also providesbuild_geo_path()for constructing national/state/agency API paths andeffective_aggregate()for aggregate passthrough logic.src/fbi_crime_data_mcp/tools/— One module per tool, each registers via@mcp.tool()decorator on the sharedmcpinstance imported fromserver.py.
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.
- 2mo ago Changed · +1 lines · +220 tokens per session 629afe899808
- 2mo ago First seen · 36 lines · 934 tokens per session scan A f7732e35c478
fbi-crime-data-mcp CLAUDE.md is an instructions file published in the GitHub repository dathere/fbi-crime-data-mcp (3 stars, last pushed 8d ago), licensed MIT. It adds 1,154 tokens to every session, about $0.0046 per session on Opus 5.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-31.
fbi-crime-data-mcp CLAUDE.md compared with instructions from other repositories
| Mod | Type | Stars | Last push | Licence | Scan | Tokens | Works with |
|---|---|---|---|---|---|---|---|
| fbi-crime-data-mcp CLAUDE.mddathere/fbi-crime-data-mcp | Instructions file | 3 | 8d ago | MIT | A | 1,154 | Claude Code |
| vscode buildNext.instructions.mdmicrosoft/vscode | Instructions file | 195k | yesterday | MIT | A | 9,719 | GitHub Copilot |
| next.js AGENTS.mdvercel/next.js | Instructions file | 143k | yesterday | MIT | A | 7,461 | Codex, OpenCode |
| langchain AGENTS.mdlangchain-ai/langchain | Instructions file | 149k | yesterday | MIT | A | 4,680 | Codex, OpenCode |
| vscode oss-third-party-notices.instructions.mdmicrosoft/vscode | Instructions file | 195k | yesterday | MIT | A | 5,516 | GitHub Copilot |
| vscode copilot-instructions.mdmicrosoft/vscode | Instructions file | 195k | yesterday | MIT | A | 3,093 | GitHub Copilot |
| deepseek-harness AGENTS.mddeepseek-ai/deepseek-harness | Instructions file | 274k | 2d ago | MIT | A | 4,313 | Codex, OpenCode |