Python Server MCP
Python Server MCP - 暗号通貨価格サービス
このプロジェクトは、暗号通貨の価格情報を提供するMCP(Model Context Protocol)サーバーを実装します。このサーバーはPythonとMCPフレームワークを使用して構築され、さまざまなクライアントが利用できるAPIを作成します。
特徴
リアルタイムの暗号通貨価格検索
環境ベースの構成(開発、本番、ステージング、ローカル)
CoinMarketCap API統合
Dockerコンテナのデプロイメント
Related MCP server: Coin MCP Server
要件
Python 3.12以上
uv (パッケージおよび仮想環境マネージャー)
Docker(オプション、コンテナ実行用)
インストール
uvの使用(推奨)
# Clone the repository
git clone <repository-url>
cd PythonServerMcpUVで仮想環境を作成してアクティブ化する
uv venv
source .venv/bin/activate依存関係をインストールする
uv sync
構成
次の変数を含む
.envファイルをプロジェクト ルートに作成します。
ENVIRONMENT=DEV # Options: LOCAL, DEV, STAGING, PROD
COINMARKETCAP_API_KEY=your_api_key_here各環境ごとに特定の環境ファイルを作成することもできます。
.dev.env- 開発環境用.staging.env- ステージング環境用.prod.env- 本番環境用
使用法
ローカル実行
python main.pyこれにより、標準入出力 (stdio) を介して要求をリッスンする MCP サーバーが起動します。
Dockerの使用
# Build the image
docker build -t test-mcp -f Dockerfile --platform linux/amd64 .
# Run the container
docker run -it test-mcpプロジェクト構造
.
├── Dockerfile # Docker configuration
├── main.py # Application entry point
├── pyproject.toml # Dependencies configuration
├── start.sh # Docker startup script
└── src/ # Source code
├── __init__.py # MCP server initialization
└── core/ # Core modules
├── common/ # Shared schemas and models
├── config.py # Application configuration
├── services/ # Application services
├── settings/ # Environment-specific settings
└── utils/ # Utilities発達
MCP サーバーに新しいツールを追加する
MCP サーバーに新しいツールを追加するには、次の手順に従います。
src/__init__.pyファイルで関数を定義するmain()関数でツールを登録するドキュメント文字列でツールを文書化する
例:
@server.add_tool
def my_new_tool(parameter1: str, parameter2: int) -> str:
"""
Description of what the tool does.
Args:
parameter1: Description of parameter 1
parameter2: Description of parameter 2
Returns:
Description of what is returned
"""
# Tool implementation
return resultThis server cannot be installed
Maintenance
Resources
Unclaimed servers have limited discoverability.
Looking for Admin?
If you are the server author, to access and configure the admin panel.
Related MCP Servers
- AlicenseBqualityAmaintenanceA 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.322439MIT
- Flicense-qualityFmaintenanceA Model Context Protocol server that provides access to CoinMarketCap's cryptocurrency data, enabling AI applications to retrieve cryptocurrency listings, quotes, and detailed information.37
- Flicense-qualityDmaintenanceA 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.3
- Alicense-qualityDmaintenanceA server that provides real-time cryptocurrency data through the Model Context Protocol, allowing access to detailed exchange information and current cryptocurrency rates from the CoinCap API.91MIT
Related MCP Connectors
Crypto Feeds MCP.
CoinMarketCap MCP — crypto prices, market cap, rankings
Crypto MCP with 21 tools for market data, DeFi, analytics, and sentiment. Post-paid USDC billing.
Latest Blog Posts
- Who's Calling? MCP Hosts Are an Identity Blind Spot (And the Spec Knows It)By Om-Shree-0709 on .mcpAgent IdentityOAuth 2.1
- Your AI Chatbot Just Exposed Your CEO's Salary to an InternBy Om-Shree-0709 on .Agent IdentityMCP SecurityOAuth Delegation
- Why MCP Servers Need Execution Sandboxing (And Why Your Current Stack Isn't Enough)By Om-Shree-0709 on .Agentic AiPrompt InjectionWebAssembly
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/stevearagonsite/PythonServerMcp'
If you have feedback or need assistance with the MCP directory API, please join our Discord server