Integrates with CoinMarketCap API to retrieve real-time cryptocurrency price information and market data
Python Server MCP - Cryptocurrency Price Service
This project implements an MCP (Model Context Protocol) server that provides cryptocurrency price information. The server is built using Python and the MCP framework to create an API that can be consumed by different clients.
Docker
Docker build:
docker build -t mcp/python-server-mcp -f Dockerfile .
Add the following to your mcp.json
file:
Features
- Real-time cryptocurrency price retrieval
- Environment-based configuration (development, production, staging, local)
- CoinMarketCap API integration
- Docker container deployment
Requirements
- Python 3.12+
- uv (package and virtual environment manager)
- Docker (optional, for container execution)
Installation
Using uv (recommended)
Create and activate virtual environment with uv
Install dependencies
uv sync
Configuration
- Create a
.env
file in the project root with the following variables:
- You can also create specific environment files for each environment:
.dev.env
- For development environment.staging.env
- For staging environment.prod.env
- For production environment
Usage
Local Execution
This will start the MCP server that will listen for requests through standard input/output (stdio).
Using Docker
Project Structure
Development
Adding New Tools to the MCP Server
To add a new tool to the MCP server, follow these steps:
- Define the function in the
src/__init__.py
file - Register the tool in the
main()
function - Document the tool with docstrings
Example:
This server cannot be installed
hybrid server
The server is able to function both locally and remotely, depending on the configuration or use case.
A cryptocurrency price service that provides real-time crypto pricing information through an MCP (Model Context Protocol) framework with CoinMarketCap API integration.
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 -356730TypeScriptMIT 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 -333Python
- 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 -3504TypeScriptMIT 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 -2Python