- Explore MCP Servers
- Consumer-Complaint-Database-MCP
Consumer Complaint Database Mcp
What is Consumer Complaint Database Mcp
Consumer-Complaint-Database-MCP is a local-only MCP Python server designed for querying the U.S. Consumer Financial Protection Bureau (CFPB) Consumer Complaint Database. It is built to integrate seamlessly with Anthropic’s Claude Desktop application.
Use cases
Use cases include analyzing consumer complaints for trends, integrating complaint data into customer service tools, and providing insights for regulatory compliance and consumer protection initiatives.
How to use
To use the Consumer-Complaint-Database-MCP, install the required dependencies using either ‘uv’ or ‘pip’, then launch the server via the command line with ‘uv run complaints.py’. The server will wait for requests from an MCP-aware client like Claude Desktop.
Key features
Key features include a single tool for retrieving complaint records from the CFPB API, compatibility with Claude Desktop, and the ability to run locally with standard input/output.
Where to use
Consumer-Complaint-Database-MCP can be used in financial services, consumer advocacy, and regulatory compliance sectors where access to consumer complaint data is essential for analysis and reporting.
Clients Supporting MCP
The following are the main client software that supports the Model Context Protocol. Click the link to visit the official website for more information.
Overview
What is Consumer Complaint Database Mcp
Consumer-Complaint-Database-MCP is a local-only MCP Python server designed for querying the U.S. Consumer Financial Protection Bureau (CFPB) Consumer Complaint Database. It is built to integrate seamlessly with Anthropic’s Claude Desktop application.
Use cases
Use cases include analyzing consumer complaints for trends, integrating complaint data into customer service tools, and providing insights for regulatory compliance and consumer protection initiatives.
How to use
To use the Consumer-Complaint-Database-MCP, install the required dependencies using either ‘uv’ or ‘pip’, then launch the server via the command line with ‘uv run complaints.py’. The server will wait for requests from an MCP-aware client like Claude Desktop.
Key features
Key features include a single tool for retrieving complaint records from the CFPB API, compatibility with Claude Desktop, and the ability to run locally with standard input/output.
Where to use
Consumer-Complaint-Database-MCP can be used in financial services, consumer advocacy, and regulatory compliance sectors where access to consumer complaint data is essential for analysis and reporting.
Clients Supporting MCP
The following are the main client software that supports the Model Context Protocol. Click the link to visit the official website for more information.
Content
Consumer-Complaint-Database-MCP
This repository contains a local-only MCP server for querying the U.S. Consumer Financial Protection Bureau (CFPB) Consumer Complaint Database. The server is designed to be launched via standard input/output, making it ideal for integration with tools such as Claude Desktop.
Files
complaints.py– Main MCP server that exposes a single tool,search_complaints, for retrieving complaint records from the CFPB API.pyproject.toml– Minimal project metadata and dependency declarations.claude_desktop_config.json– Example configuration for launching the server from Claude Desktop.
Requirements
- Python 3.11+
- uv or
pipfor installing dependencies
Required Python packages are listed in pyproject.toml and include httpx, mcp[cli], and python-dateutil.
Setup (optional)
uv run automatically creates a virtual environment, locks your dependencies,
syncs them, and then executes the script. If you plan to launch the server with
uv run complaints.py, you can skip installing requirements ahead of time.
For users who prefer to pre-install packages or use plain pip, install
dependencies with uv:
uv pip install -r pyproject.toml
Or with plain pip:
pip install -r pyproject.toml
Running
To launch the server directly from the command line for a smoke test:
uv run complaints.py
The server runs over stdio only and waits for requests from an MCP-aware client (e.g., Claude Desktop).
Running tests
Execute the unit tests using Python’s unittest discovery. From the repository
root, run:
python -m unittest discover -s tests -v
This requires the dependencies listed in pyproject.toml to be installed.
Claude Desktop Configuration
The claude_desktop_config.json file includes an example entry pointing to the complaints.py script. Replace INSERTPATH with the path to this repository on your machine and import the configuration into Claude Desktop.
References
- CFPB Consumer Complaint Database API documentation – underlying API used by this MCP server.
- Model Context Protocol quickstart tutorial – tutorial that helped build this example.

License
This project is licensed under the MIT License.
Dev Tools Supporting MCP
The following are the main code editors that support the Model Context Protocol. Click the link to visit the official website for more information.










