Integrations
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.
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)
Copy
Create and activate virtual environment with uv
Copy
Install dependencies
uv sync
Configuration
- Create a
.env
file in the project root with the following variables:
Copy
- 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
Copy
This will start the MCP server that will listen for requests through standard input/output (stdio).
Using Docker
Copy
Project Structure
Copy
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:
Copy
This server cannot be installed
A cryptocurrency price service that provides real-time crypto pricing information through an MCP (Model Context Protocol) framework with CoinMarketCap API integration.