Python Server MCP - 暗号通貨価格サービス
このプロジェクトは、暗号通貨の価格情報を提供するMCP(Model Context Protocol)サーバーを実装します。このサーバーはPythonとMCPフレームワークを使用して構築され、さまざまなクライアントが利用できるAPIを作成します。
特徴
リアルタイムの暗号通貨価格検索
環境ベースの構成(開発、本番、ステージング、ローカル)
CoinMarketCap API統合
Dockerコンテナのデプロイメント
要件
Python 3.12以上
uv (パッケージおよび仮想環境マネージャー)
Docker(オプション、コンテナ実行用)
インストール
uvの使用(推奨)
UVで仮想環境を作成してアクティブ化する
依存関係をインストールする
uv sync
構成
次の変数を含む
.env
ファイルをプロジェクト ルートに作成します。
各環境ごとに特定の環境ファイルを作成することもできます。
.dev.env
- 開発環境用.staging.env
- ステージング環境用.prod.env
- 本番環境用
使用法
ローカル実行
これにより、標準入出力 (stdio) を介して要求をリッスンする MCP サーバーが起動します。
Dockerの使用
プロジェクト構造
発達
MCP サーバーに新しいツールを追加する
MCP サーバーに新しいツールを追加するには、次の手順に従います。
src/__init__.py
ファイルで関数を定義するmain()
関数でツールを登録するドキュメント文字列でツールを文書化する
例:
This server cannot be installed
hybrid server
The server is able to function both locally and remotely, depending on the configuration or use case.
CoinMarketCap API 統合による MCP (モデル コンテキスト プロトコル) フレームワークを通じてリアルタイムの暗号通貨価格情報を提供する暗号通貨価格サービス。
Related MCP Servers
- AsecurityAlicenseAqualityA Model Context Protocol (MCP) server that provides comprehensive cryptocurrency analysis using the CoinCap API. This server offers real-time price data, market analysis, and historical trends through an easy-to-use interface.Last updated -328136MIT License
- AsecurityFlicenseAqualityA Model Context Protocol server that provides access to CoinMarketCap's cryptocurrency data, enabling AI applications to retrieve cryptocurrency listings, quotes, and detailed information.Last updated -33
- AsecurityAlicenseAqualityA Model Context Protocol (MCP) server that provides comprehensive cryptocurrency analysis using the CoinCap API. This server offers real-time price data, market analysis, and historical trends through an easy-to-use interface. Updated to use Coin Cap API v3Last updated -3431MIT License
- -securityFlicense-qualityA cryptocurrency price query service based on Model Context Protocol that provides tools for retrieving virtual currency prices, market trends, detailed information, and K-line data.Last updated -3