消費者苦情データベース MCP
このリポジトリには、米国消費者金融保護局(CFPB)の消費者苦情データベースへのクエリを実行するための、ローカル専用のMCPサーバーが含まれています。このサーバーは標準入出力経由で起動するように設計されているため、Claude Desktopなどのツールとの統合に最適です。
ファイル
complaints.py
– CFPB API から苦情記録を取得するための単一のツールsearch_complaints
公開するメイン MCP サーバー。pyproject.toml
– 最小限のプロジェクト メタデータと依存関係の宣言。claude_desktop_config.json
– Claude Desktop からサーバーを起動するための構成例。
要件
- Python 3.11以上
- 依存関係をインストールするためのuvまたは
pip
必要な Python パッケージはpyproject.toml
にリストされており、 httpx
、 mcp[cli]
、 python-dateutil
が含まれます。
セットアップ(オプション)
uv run
自動的に仮想環境を作成し、依存関係をロックして同期し、スクリプトを実行します。 uv run complaints.py
でサーバーを起動する予定の場合は、事前に必要なパッケージをインストールする必要はありません。
パッケージを事前にインストールしたり、単純なpip
を使用したりすることを好むユーザーは、 uv
を使用して依存関係をインストールします。
あるいは単純なpip
を使う場合:
ランニング
スモーク テストのためにコマンド ラインから直接サーバーを起動するには:
サーバーは stdio 経由でのみ実行され、MCP 対応クライアント (例: Claude Desktop) からの要求を待機します。
テストの実行
Pythonのunittestディスカバリを使ってユニットテストを実行します。リポジトリのルートから次のコマンドを実行します。
これには、 pyproject.toml
にリストされている依存関係がインストールされている必要があります。
クロードデスクトップ構成
claude_desktop_config.json
ファイルには、 complaints.py
スクリプトを指すサンプルエントリが含まれています。INSERTPATH INSERTPATH
お使いのマシン上のこのリポジトリへのパスに置き換え、設定を Claude Desktop にインポートしてください。
参考文献
- CFPB 消費者苦情データベース API ドキュメント– この MCP サーバーで使用される基礎となる API。
- モデル コンテキスト プロトコル クイックスタート チュートリアル– この例の構築に役立ったチュートリアル。
ライセンス
このプロジェクトはMIT ライセンスに基づいてライセンスされています。
This server cannot be installed
local-only server
The server can only run on the client's local machine because it depends on local resources.
ユーザーが自然言語で CFPB 消費者苦情データベースを照会し、CFPB API を介して金融消費者苦情記録を取得できるようにするローカル MCP サーバー。
Related MCP Servers
- AsecurityAlicenseAqualityAn MCP server that provides comprehensive financial insights and analysis by leveraging real-time market data, news, and advanced analytics for stocks, options, financial statements, and economic indicators.Last updated -1744PythonMIT License
- -securityFlicense-qualityAn MCP Server that provides natural language access to Google's Firebase Realtime Database API, enabling database operations and management through conversation.Last updated -Python
- -securityAlicense-qualityMCP server that provides monitoring and analytics capabilities for MBBank accounts, allowing users to check balances, transaction history, card details, and savings information.Last updated -8PythonMIT License
- -securityFlicense-qualityAn MCP server that provides access to Mastercard's BIN Table Resource API, allowing users to look up and interact with Bank Identification Number data through natural language queries.Last updated -Python