Python Server MCP - Cryptocurrency Price Service

by stevearagonsite

130 downloads Not rated yet GPL-3.0
GitHub

About

Provides real-time cryptocurrency price information using the CoinMarketCap API.

Details

License
GPL-3.0

Explore

- Real-time cryptocurrency price retrieval
- Environment-based configuration (development, production, staging, local)
- CoinMarketCap API integration
- Docker container deployment

Setting up with Highlight

This MCP is not yet compatible with Highlight’s one-click setup. However, you can still use it with Highlight by following these steps:

  1. Download and install Highlight from highlightai.com/download
  2. Navigate to the plugins tab and select "Add Custom Plugin"
  3. Configure the plugin with the settings below
    Plugin Name Python Server MCP - Cryptocurrency Price Service
    Command (node, npx, python, etc.)

    Please refer to the README for specific instructions on how to obtain API keys or other required environment variables.

  4. Enable "Start Automatically" if you want the plugin to start when Highlight launches

From the repository

- Python 3.12+
- uv (package and virtual environment manager)
- Docker (optional, for container execution)

uv venv
source .venv/bin/activate

uv sync

To add a new tool to the MCP server, follow these steps:

1. Define the function in the src/__init__.py file
2. Register the tool in the main() function
3. Document the tool with docstrings

Example:

```python
@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
"""

Claude Desktop / Cursor

Paste into your MCP client config file to install this server.

{
    "mcpServers": {
        "python server mcp - cryptocurrency price service": {
            "PythonServerMcp": {
                "command": "uv",
                "args": [
                    "venv"
                ]
            }
        }
    }
}

McpServers

{
    "PythonServerMcp": {
        "command": "uv",
        "args": [
            "venv"
        ]
    }
}

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:

{
"mcpServers": {
"python-server-mcp": {
"command": "docker",
"args": [
"run",
"-i",
"--rm",
"-p",
"8000:8000",
"-e",
"ENVIRONMENT",
"-e",
"COINMARKETCAP_API_KEY",
"mcp/python-server-mcp"
],
"env": {
"ENVIRONMENT": "PRODUCTION",
"COINMARKETCAP_API_KEY": "your-api-key",
}
}
}
}

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)

```bash

No reviews yet — be the first

Sign in to leave a review

Use Google, GitHub, or an email account so ratings stay tied to real people.

Email sign in

No reviews posted yet.