This MCP server provides access to the U.S. Consumer Financial Protection Bureau (CFPB) Consumer Complaint Database through a local-only server. It's designed to work with MCP-aware clients like Claude Desktop, allowing you to search and retrieve consumer complaint records directly through the interface.
While not strictly necessary if using uv run
, you can pre-install the required packages:
Using uv:
uv pip install -r pyproject.toml
Using pip:
pip install -r pyproject.toml
The server requires the following Python packages:
Launch the MCP server directly from the command line:
uv run complaints.py
The server runs over standard input/output and waits for requests from an MCP-aware client like Claude Desktop.
To use this tool with Claude Desktop:
claude_desktop_config.json
fileINSERTPATH
with the actual path to the repository on your machineThe server exposes a single tool called search_complaints
that queries the CFPB Consumer Complaint Database API. You can use this tool to search for specific complaints by various parameters including:
When using Claude with this tool enabled, you can ask it to search for specific types of complaints, analyze trends, or extract information from the database by requesting Claude to use the search_complaints
function.
The server interacts with the CFPB Consumer Complaint Database API, providing a simplified interface through the MCP protocol.
To add this MCP server to Claude Code, run this command in your terminal:
claude mcp add-json "consumer-complaint-database" '{"command":"python","args":["complaints.py"]}'
See the official Claude Code MCP documentation for more details.
There are two ways to add an MCP server to Cursor. The most common way is to add the server globally in the ~/.cursor/mcp.json
file so that it is available in all of your projects.
If you only need the server in a single project, you can add it to the project instead by creating or adding it to the .cursor/mcp.json
file.
To add a global MCP server go to Cursor Settings > Tools & Integrations and click "New MCP Server".
When you click that button the ~/.cursor/mcp.json
file will be opened and you can add your server like this:
{
"mcpServers": {
"consumer-complaint-database": {
"command": "python",
"args": [
"complaints.py"
]
}
}
}
To add an MCP server to a project you can create a new .cursor/mcp.json
file or add it to the existing one. This will look exactly the same as the global MCP server example above.
Once the server is installed, you might need to head back to Settings > MCP and click the refresh button.
The Cursor agent will then be able to see the available tools the added MCP server has available and will call them when it needs to.
You can also explicitly ask the agent to use the tool by mentioning the tool name and describing what the function does.
To add this MCP server to Claude Desktop:
1. Find your configuration file:
~/Library/Application Support/Claude/claude_desktop_config.json
%APPDATA%\Claude\claude_desktop_config.json
~/.config/Claude/claude_desktop_config.json
2. Add this to your configuration file:
{
"mcpServers": {
"consumer-complaint-database": {
"command": "python",
"args": [
"complaints.py"
]
}
}
}
3. Restart Claude Desktop for the changes to take effect