MCP server for the FBI Crime Data Explorer API
Project description
FBI Crime Data MCP Server
An MCP (Model Context Protocol) server that provides access to the FBI's Crime Data Explorer API. Query crime statistics, arrest data, hate crimes, NIBRS incidents, law enforcement employment, and more — directly from Claude or any MCP-compatible client.
Quick Start
-
Get a free API key from api.data.gov
-
Run with Claude Desktop — add to your
claude_desktop_config.json:
{
"mcpServers": {
"fbi-crime-data": {
"command": "uvx",
"args": ["fbi-crime-data-mcp"],
"env": {
"FBI_API_KEY": "your-api-key-here"
}
}
}
}
- Or run directly:
FBI_API_KEY=your-key uvx fbi-crime-data-mcp
Available Tools (15)
Core Crime Data
| Tool | Description |
|---|---|
get_summarized_crime_data |
SRS crime data — rates, actuals, clearances for violent crime, property crime, homicide, rape, robbery, assault, burglary, larceny, motor vehicle theft, arson |
get_nibrs_data |
NIBRS incident-based data for 70+ offense types |
get_arrest_data |
Arrest statistics by offense with optional demographic breakdowns (sex, race) |
get_crime_trends |
National crime trend percent changes across 10 crime types |
get_nibrs_estimation |
NIBRS national estimates by state, region, agency type, or population size |
Specialized Crime Data
| Tool | Description |
|---|---|
get_hate_crime_data |
Hate crime incidents by bias motivation (30+ categories) |
get_expanded_homicide_data |
Supplementary Homicide Reports — victim/offender demographics, weapons, circumstances |
get_expanded_property_data |
Expanded property crime details — stolen/recovered values for burglary, larceny, MVT, robbery |
Law Enforcement Data
| Tool | Description |
|---|---|
get_police_employment |
Officer and civilian employee counts by gender, rates per 1,000 population |
get_leoka_data |
Officers killed and assaulted — weapons, circumstances, demographics |
get_lesdc_data |
Law enforcement suicide data — demographics, race, duty status, and more |
get_use_of_force_data |
Use of force incidents resulting in death, serious injury, or firearm discharge |
Reference & Lookup
| Tool | Description |
|---|---|
lookup_agency |
Find law enforcement agencies by state, ORI code, or judicial district |
get_reference_data |
State lists, offense/bias code lookups, data refresh dates |
manage_cache |
View cache stats, clear all entries, or clear only expired entries |
Data Sources
All data comes from the FBI's Crime Data Explorer API, which provides Uniform Crime Reporting (UCR) data including both the Summary Reporting System (SRS) and the National Incident-Based Reporting System (NIBRS).
API Rate Limits
- Registered key: 1,000 requests per hour (rolling window)
- DEMO_KEY: 30 requests per IP per hour
The server includes a built-in rate limiter (1,000 req/hr). The DEMO_KEY limit is enforced API-side.
Development
# Install dependencies
uv sync
# Run the server locally
FBI_API_KEY=your-key uv run fbi-crime-data-mcp
# Run tests
uv run pytest
License
MIT
Project details
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file fbi_crime_data_mcp-0.2.0.tar.gz.
File metadata
- Download URL: fbi_crime_data_mcp-0.2.0.tar.gz
- Upload date:
- Size: 102.9 kB
- Tags: Source
- Uploaded using Trusted Publishing? Yes
- Uploaded via: twine/6.1.0 CPython/3.13.7
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
772c93de523a1c4f044f599c0078ba3753eac93297aa0325a45e3065be3f3522
|
|
| MD5 |
8e93bf4ac70c00c5ad09b811de851cfd
|
|
| BLAKE2b-256 |
f89fe8a699147d860118a243a92cec7e0fba147231580d855504cd5a60f808b6
|
Provenance
The following attestation bundles were made for fbi_crime_data_mcp-0.2.0.tar.gz:
Publisher:
publish.yml on dathere/fbi-crime-data-mcp
-
Statement:
-
Statement type:
https://in-toto.io/Statement/v1 -
Predicate type:
https://docs.pypi.org/attestations/publish/v1 -
Subject name:
fbi_crime_data_mcp-0.2.0.tar.gz -
Subject digest:
772c93de523a1c4f044f599c0078ba3753eac93297aa0325a45e3065be3f3522 - Sigstore transparency entry: 1230191772
- Sigstore integration time:
-
Permalink:
dathere/fbi-crime-data-mcp@e05f5b6b904fc4ec2ec28754aa31d5e4ec68a024 -
Branch / Tag:
refs/tags/v0.2.0 - Owner: https://github.com/dathere
-
Access:
public
-
Token Issuer:
https://token.actions.githubusercontent.com -
Runner Environment:
github-hosted -
Publication workflow:
publish.yml@e05f5b6b904fc4ec2ec28754aa31d5e4ec68a024 -
Trigger Event:
push
-
Statement type:
File details
Details for the file fbi_crime_data_mcp-0.2.0-py3-none-any.whl.
File metadata
- Download URL: fbi_crime_data_mcp-0.2.0-py3-none-any.whl
- Upload date:
- Size: 33.4 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? Yes
- Uploaded via: twine/6.1.0 CPython/3.13.7
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
03943a4822caa01364b010325f6edb9e42bdac0cccfffd950be07b2ff6728e4d
|
|
| MD5 |
11b35ab1c8b020f6f7a2cf493ddca0f6
|
|
| BLAKE2b-256 |
534792ceda7ba229b4004a9a380f8db8b7bbdb4d496dbc8dcab1f0bbce4b7b02
|
Provenance
The following attestation bundles were made for fbi_crime_data_mcp-0.2.0-py3-none-any.whl:
Publisher:
publish.yml on dathere/fbi-crime-data-mcp
-
Statement:
-
Statement type:
https://in-toto.io/Statement/v1 -
Predicate type:
https://docs.pypi.org/attestations/publish/v1 -
Subject name:
fbi_crime_data_mcp-0.2.0-py3-none-any.whl -
Subject digest:
03943a4822caa01364b010325f6edb9e42bdac0cccfffd950be07b2ff6728e4d - Sigstore transparency entry: 1230191781
- Sigstore integration time:
-
Permalink:
dathere/fbi-crime-data-mcp@e05f5b6b904fc4ec2ec28754aa31d5e4ec68a024 -
Branch / Tag:
refs/tags/v0.2.0 - Owner: https://github.com/dathere
-
Access:
public
-
Token Issuer:
https://token.actions.githubusercontent.com -
Runner Environment:
github-hosted -
Publication workflow:
publish.yml@e05f5b6b904fc4ec2ec28754aa31d5e4ec68a024 -
Trigger Event:
push
-
Statement type: