cfpb-complaints-mcp
Click on "Deploy Server".
Wait a few minutes for the server to deploy. Once ready, it will show a "Started" state.
In the chat, type
@followed by the MCP server name and your instructions, e.g., "@cfpb-complaints-mcp How did mortgage complaints about Rocket change by year?"
That's it! The server will respond to your query, and you can continue using it as needed.
Here is a step-by-step guide with screenshots.
cfpb-complaints-analysis
The CFPB Consumer Complaint Database as clean Parquet, plus an MCP server so an AI assistant can query it: 18.2 million complaints (2011 to today) and 3.85 million consumer narratives.
What is in it
Layer | Source | Coverage |
Structured complaints | CFPB's public complaint file, | 18,239,728 complaints, received 2011-12-01 to 2026-10-07 (rebuild to refresh) |
Narratives | CFPB FOIA Reading Room, "CFPB Consumer Complaint Database Narratives Archive" | 3,851,415 narratives, published through 2026-08-14, none before 2015 |
Both are CFPB's own files. Nothing comes from a third party. CFPB describes the narratives as public domain for FOIA purposes, and says on its data page that complaint data is "freely available for anyone to use, analyze, and build on."
Related MCP server: automatisor-mcp
The narrative freeze
CFPB stopped publishing complaint narratives in September 2026 (database release 24, and the Aug 14, 2026 announcement that it would cease discretionary publication of narratives and visualizations). It moved the previously published narratives to its FOIA Reading Room. The live complaint file has no narrative column any more.
This project joins the archived narratives back to the live complaints by Complaint ID. So:
Narratives exist only for complaints CFPB had published with one through 2026-08-14. Complaints from after that have none, and it will stay that way.
Fewer than half of complaints ever had a narrative: the consumer had to consent, and none were published before 2015.
The archive thins out near the end: about 17,000 narratives each for May and June 2026, about 10,000 for July, and 1 for August. This is in CFPB's source files, so 2026 narrative counts are not comparable to earlier months.
Narratives are scrubbed by CFPB (personal data shows as XXXX).
Structured fields keep updating when you rebuild from CFPB's live file.
Use it
pip install cfpb-complaints-analysis
cfpb-complaints-mcpThe first run downloads the Parquet files (about 700 MB) from the hosted service to ~/.cache/cfpb-complaints-analysis. Set CFPB_DATA_URL to fetch them from somewhere else, or CFPB_DATA_DIR to use a folder you built yourself. Add the server to your MCP client as a stdio command, or use the hosted endpoint listed in the MCP registry as io.github.bnovarini/cfpb-complaints-analysis.
Tools: dataset_info, list_values, find_company, complaint_counts, trend, company_profile, compare_companies, search_narratives, count_narratives, get_complaint.
Example questions: What do people complain about at Navy Federal versus PenFed? How did mortgage complaints about Rocket change by year? Find 2024 narratives that mention "overdraft fee" at a credit union.
Build it yourself from CFPB's sources: cfpb-complaints --data data build.
Read this before quoting numbers
Complaints are unverified consumer allegations. CFPB says so itself.
Counts are raw. A large company will have more complaints than a small one; nothing is scaled by customers or accounts.
CFPB lists some firms under several names. Use
find_companyandcompany_containsto include all variants.The newest months are partial: complaints are still being sent to companies, and "In progress" is a status, not an outcome.
Keyword narrative search scans text. Unfiltered searches take about ten seconds, and counts across all years can take 30 to 45 seconds. A date, company or product filter makes them much faster.
Checks
Every count is reconciled to CFPB's own published numbers. See docs/AUDIT.md, including the figures that do not match and why.
License
MIT for the code. The data is CFPB's.
Available Tools
10 toolscompany_profileBInspect
Profile of one company (or all name variants via company_contains): totals, first/last complaint, top products, issues, states, response outcomes, yearly counts. Counts are not adjusted for company size. Optional date_from/date_to/product.
Inputs: company, date_to, product, date_from, +1 more.
compare_companiesAInspect
Side-by-side comparison of up to 6 companies on the same filters: complaints, timely_rate, relief rates, top product and top issue each. Each entry in companies is matched as a substring on the company name (all variants combined). Counts are not adjusted for company size.
Inputs: companies (required), issue, state, date_to, +2 more. Returns: result
complaint_countsAInspect
Count complaints, optionally grouped. group_by is one or two of: year, quarter, month, product, sub_product, issue, sub_issue, company, state, company_response, company_public_response, submitted_via, timely_response. Returns complaints, timely_rate, monetary_relief_rate, nonmonetary_relief_rate, in_progress_rate per group (rates are fractions of that group's complaints). Counts are raw complaint counts, not adjusted for company size. In progress and Untimely response are CFPB response categories, not outcomes. Filters: company (exact name as in find_company), company_contains (substring), product, sub_product, issue, product: CFPB renamed credit reporting twice, so it appears under three product names (use list_values field=product), company_response (exact CFPB value, case-insensitive), submitted_via, state (2 letters), tag (e.g. 'Servicemember', 'Older American'), timely (true/false), date_from/date_to (YYYY-MM-DD or YYYY-MM, on date received).
Inputs: tag, issue, limit, state, +13 more. Returns: result
count_narrativesAInspect
Count how many archived narratives match a keyword search, optionally grouped by year, month, product, company, issue or state. Same search and filter arguments as search_narratives (without the slower issue/response filters). Use this for 'how many complaints mention X'. Counts only complaints that have a narrative (through 2026-08-14), not all complaints. Narrow with date, company or product when you can.
Inputs: limit, query, state, any_of, +7 more. Returns: result
dataset_infoAInspect
What this dataset is: row counts, date ranges, narrative coverage, and the narrative freeze. Call first when unsure about coverage.
Inputs: no named parameters.
find_companyAInspect
Find companies by name. CFPB lists the same firm under variants and subsidiaries (e.g. 'EQUIFAX, INC.', 'Equifax Information Services LLC'), so this returns every matching name with complaint counts and first/last dates; pass the exact names you want to other tools via company, or use company_contains for all variants at once.
Inputs: name (required), limit. Returns: result
get_complaintAInspect
One complaint by its CFPB Complaint ID: all structured fields and, when archived, the full narrative.
Inputs: complaint_id (required).
list_valuesAInspect
List the values of a field with complaint counts, to find exact product/issue/response names. field is one of: product, sub_product, issue, sub_issue, company_response, company_public_response, submitted_via, state, timely_response. Optional search narrows by substring; product narrows issues to that product. Filters: company (exact name as in find_company), company_contains (substring), product, sub_product, issue, product: CFPB renamed credit reporting twice, so it appears under three product names (use list_values field=product), company_response (exact CFPB value, case-insensitive), submitted_via, state (2 letters), tag (e.g. 'Servicemember', 'Older American'), timely (true/false), date_from/date_to (YYYY-MM-DD or YYYY-MM, on date received).
Inputs: field (required), limit, search, product. Returns: result
search_narrativesAInspect
Keyword search over archived complaint narratives (frozen at 2026-08-14; CFPB stopped publishing them in September 2026). query: words that must all appear (case-insensitive), or use phrase for an exact phrase, or any_of for alternatives. Returns a snippet per complaint plus its structured fields, newest first (date order, not relevance-ranked: every result contains all your words); use get_complaint for the full text. Searches scan text, so narrow with date_from/date_to, company/company_contains, product or state when you can: an unfiltered search over all years can time out. Filters: company, company_contains, product, state (2 letters), date_from/date_to (YYYY-MM-DD or YYYY-MM), plus issue, sub_product, company_response, timely, tag (these are slower).
Inputs: tag, issue, limit, query, +12 more. Returns: result
trendAInspect
Complaints over time (month, quarter or year), for one filter set. Set period to month, quarter or year. The latest period is partial. In progress and Untimely response are CFPB response categories, not outcomes. Filters: company (exact name as in find_company), company_contains (substring), product, sub_product, issue, product: CFPB renamed credit reporting twice, so it appears under three product names (use list_values field=product), company_response (exact CFPB value, case-insensitive), submitted_via, state (2 letters), tag (e.g. 'Servicemember', 'Older American'), timely (true/false), date_from/date_to (YYYY-MM-DD or YYYY-MM, on date received).
Inputs: tag, issue, state, period, +7 more. Returns: result
Tool Schema Changelog
Recent tool additions, removals, and schema changes observed during successful MCP inspections.
Loading tool schema changelog…
TDQS
Scored across 10 tools
Each tool has a recognizable niche: discovery (dataset_info, list_values, find_company), search (search_narratives, count_narratives), aggregation (complaint_counts, trend, company_profile, compare_companies), and retrieval (get_complaint). The main overlap is trend versus complaint_counts with group_by=month/quarter/year, and company_profile versus complaint_counts grouped by company; descriptions hint at the distinction but an agent could easily pick the wrong one.
All names are snake_case and readable, but the convention is mixed: verb-first (list_values, find_company, search_narratives, get_complaint, compare_companies, count_narratives) alongside noun-first (dataset_info, complaint_counts, trend, company_profile). Consistent casing keeps it predictable, but the verb/noun pattern is not uniform.
Ten tools is well matched to a dataset-query server: discovery, aggregation, search, and lookup each get a few focused tools with no filler. Nothing feels redundant enough to cut, and nothing important is squeezed into one overloaded tool.
The surface covers discovery, filtering vocabulary, aggregates, trends, company comparison, narrative search, and single-record lookup, which is a full lifecycle for this dataset. The notable gap is a way to page through raw complaint records by structured filters alone (search_narratives requires keywords and only covers narrated complaints), so browsing non-narrative complaints row-by-row is not possible.
Related MCP Connectors
Search US CFPB consumer complaint records across banks, lenders, and fintech institutions.
CFPB MCP — Consumer Financial Protection Bureau complaint database (free, no auth)
SEC EDGAR, CFPB complaints, and BLS employment data. 4 tools.
Korean company facts in English for AI agents: ~830 KOSPI-listed companies (DART profiles, KRW financials, recent filings) and ~110,000 corporate public procurement suppliers (12-month KONEPS contract awards), plus live National Tax Service business status checks. 4 tools, keyless, read-only.
Related MCP Servers
- AlicenseNot gradedqualityDmaintenanceProvides AI assistants with natural language access to WRDS financial data for credit and equity analysis through 29 specialized tools. It enables users to query bond history, credit ratings, financial metrics, and syndicated loans using simple conversational prompts.MIT
- FlicenseNot gradedqualityCmaintenanceEnables financial research agents to query a read-only SQLite snapshot through six predefined, validated, sector-scoped tools for company snapshots, metric comparisons, sector benchmarks, and qualitative evidence search, returning sources, data dates, confidence, and limitations.-
- AlicenseNot gradedqualityBmaintenanceLets any MCP-speaking assistant look up SEC filings and fundamentals, 13F holdings, insider trades, BDC loan books, and U.S. government reference data from Treasury, FRED, FDIC, USAspending, USPTO and CFTC, with the source named on every answer. Most of its 29 tools run keyless against public sources, giving citations-backed answers without an account.66 PyPIMIT
- AlicenseNot gradedqualityNot gradedmaintenanceConnects AI assistants to company records, officers, ownership, corporate group structures, and available financial statements through six read-only tools with source provenance where available.MIT