Consumer Complaint Database MCP

MIT License
2

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 pip for 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

License

This project is licensed under the MIT License.

-
security - not tested
A
license - permissive license
-
quality - not tested

A local MCP server that enables users to query the CFPB Consumer Complaint Database through natural language, retrieving financial consumer complaint records via the CFPB API.

  1. Files
    1. Requirements
      1. Setup (optional)
        1. Running
          1. Running tests
            1. Claude Desktop Configuration
              1. References
                1. License

                  Related MCP Servers

                  • A
                    security
                    A
                    license
                    A
                    quality
                    An MCP server implementation that integrates Claude with Salesforce, enabling natural language interactions with Salesforce data and metadata for querying, modifying, and managing objects and records.
                    Last updated -
                    7
                    87
                    15
                    TypeScript
                    MIT License
                  • A
                    security
                    A
                    license
                    A
                    quality
                    An MCP server implementation that integrates Claude with Salesforce, enabling natural language interactions with Salesforce data and metadata for querying, modifying, and managing objects and records.
                    Last updated -
                    7
                    18
                    4
                    TypeScript
                    MIT License
                    • Apple
                    • Linux
                  • -
                    security
                    F
                    license
                    -
                    quality
                    An MCP server that connects to Backlog API, providing functionality to search, retrieve, and update issues through natural language commands.
                    Last updated -
                    53
                    1
                    JavaScript
                    • Apple
                  • -
                    security
                    -
                    license
                    -
                    quality
                    An MCP server that enables natural language interaction with Apache Iceberg data lakehouses, allowing users to query table metadata, schemas, and properties through Claude, Cursor, or other MCP clients.
                    Last updated -
                    31
                    Python
                    Apache 2.0

                  View all related MCP servers

                  MCP directory API

                  We provide all the information about MCP servers via our MCP API.

                  curl -X GET 'https://glama.ai/api/mcp/v1/servers/IngeniousIdiocy/Consumer-Complaint-Database-MCP'

                  If you have feedback or need assistance with the MCP directory API, please join our Discord server