MCP.so
登录

Python Server MCP - Cryptocurrency Price Service

@stevearagonsite

关于 Python Server MCP - Cryptocurrency Price Service

A template repository for MCP

配置

使用下面的配置,将此服务器添加到你的 MCP 客户端。

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

工具

未检测到工具

工具是从 README 中自动提取的。维护者可以在 ## Tools 标题下列出工具,即可填充这部分内容。

概览

What is Python Server MCP - Cryptocurrency Price Service?

An MCP (Model Context Protocol) server that provides real-time cryptocurrency price information using the CoinMarketCap API. It is built with Python and the MCP framework, designed for clients that need structured crypto price data.

How to use Python Server MCP - Cryptocurrency Price Service?

Install dependencies with uv sync, configure a .env file with your COINMARKETCAP_API_KEY and ENVIRONMENT setting, then run python main.py locally or build and run a Docker container. The server communicates via stdio (MCP transport) and can be added to an MCP client’s mcp.json file.

Key features of Python Server MCP - Cryptocurrency Price Service

  • Real-time cryptocurrency price retrieval via CoinMarketCap
  • Environment‑based configuration (LOCAL, DEV, STAGING, PROD)
  • Docker container deployment for easy distribution
  • Built with Python 3.12+ and the uv package manager
  • Extensible tool‑registration system for adding new endpoints

Use cases of Python Server MCP - Cryptocurrency Price Service

  • Integrate live crypto prices into AI‑powered assistants or chatbots
  • Provide structured price data to automated trading or alerting systems
  • Serve as a backend for personal finance dashboards that track multiple coins
  • Use as a reference MCP server implementation for learning or prototyping

FAQ from Python Server MCP - Cryptocurrency Price Service

What are the requirements to run this server?

Python 3.12+ and uv for package/virtual environment management. Docker is optional but required for container execution.

How do I configure the CoinMarketCap API key?

Create a .env file in the project root with COINMARKETCAP_API_KEY=your_api_key_here. Optionally set ENVIRONMENT to LOCAL, DEV, STAGING, or PROD.

How do I run the server locally?

Ensure dependencies are installed (uv sync), then run python main.py. The server listens on stdio for MCP requests.

How can I build and run this server with Docker?

Build the image with docker build -t mcp/python-server-mcp -f Dockerfile ., then run it interactively with docker run -i --rm mcp/python-server-mcp. Add the container configuration to your client’s mcp.json.

How can I add a new tool to the server?

Define the tool function in src/__init__.py, register it using the @server.add_tool decorator in main(), and document it with docstrings.

常见问题

What are the requirements to run this server?

Python 3.12+ and `uv` for package/virtual environment management. Docker is optional but required for container execution.

How do I configure the CoinMarketCap API key?

Create a `.env` file in the project root with `COINMARKETCAP_API_KEY=your_api_key_here`. Optionally set `ENVIRONMENT` to LOCAL, DEV, STAGING, or PROD.

How do I run the server locally?

Ensure dependencies are installed (`uv sync`), then run `python main.py`. The server listens on stdio for MCP requests.

How can I build and run this server with Docker?

Build the image with `docker build -t mcp/python-server-mcp -f Dockerfile .`, then run it interactively with `docker run -i --rm mcp/python-server-mcp`. Add the container configuration to your client’s `mcp.json`.

How can I add a new tool to the server?

Define the tool function in `src/__init__.py`, register it using the `@server.add_tool` decorator in `main()`, and document it with docstrings.

评论

基本信息

分类

其他

许可证

GPL-3.0

传输方式

stdio

发布者

stevearagonsite

其他 分类下的更多 MCP 服务器