MCP server for the TokenMetrics API

MCP server for the TokenMetrics API

tokens-mcp•byantonkulaga

A Python MCP server that exposes TokenMetrics cryptocurrency market data and trading strategy backtesting tools to AI systems.

License: Not specified•Runtime: Awaiting documentation review•Category: finance crypto

WHAT IT DOES

  • •Provides AI systems access to cryptocurrency market data through the TokenMetrics API.
  • •Supports implementing and backtesting trading strategies such as moving average crossovers.
  • •Generates visual performance metrics for trading strategies.
  • •Enables analysis of token performance across different timeframes.

BEST FOR

  • •Algorithmic trading bots that need consistent access to crypto market data.
  • •Market research and crypto strategy development with AI assistants.

ABOUT TOKENS-MCP

MCP server for the TokenMetrics API is cataloged as an MCP server attributed to antonkulaga. A Python MCP server that exposes TokenMetrics cryptocurrency market data and trading strategy backtesting tools to AI systems. It is categorized under finance crypto. See the capability inspector for recorded interfaces and their independent review status; consult upstream documentation for the current interface.

HOW TO INSTALL

Installation configuration is not reviewed. No executable setup is offered for this entry; inspect the source repository before proceeding.

LICENSE

Catalog license label: Not specified. Check the source repository's current license and terms before using, modifying or distributing this software.

能力检查器

能力定义尚未审核。未核验的采集内容不会作为可信接口展示。

Tools (0)

暂无可展示的已审核记录。这不表示上游不支持此能力。

Resources (0)

暂无可展示的已审核记录。这不表示上游不支持此能力。

Prompts (0)

暂无可展示的已审核记录。这不表示上游不支持此能力。

NEWSLETTER - COMING LATER

Newsletter subscriptions are not open yet

Email delivery is not connected. This page does not collect email addresses or create subscriptions.

Browse the registry for current listings instead.

Community Reviews

Coming later

Reviews for MCP server for the TokenMetrics API are not available yet

Review publishing and storage are not connected. This page does not collect or publish ratings or comments, including after sign-in.

FREQUENTLY ASKED QUESTIONS

What API does this MCP server connect to?

It connects to the TokenMetrics API and requires a TokenMetrics API key for configuration.

上游原版 README

在 GitHub 查看同一版本原文

README.md · cf7e82234a44 · 采集于 2026-11-13 13:15:42 UTC

保留上游原文,不做 AI 改写。为安全起见过滤脚本、表单和不安全链接。

当前显示最后一次成功采集的文档快照,请以来源页面为准。

Tokens MCP

MCP server for Token Metrics API.

About

MCP (Model Control Protocol) provides a standardized interface for AI systems to access external tools and data sources. This repository implements an MCP server for TokenMetrics API, enabling you to:

  • Access comprehensive cryptocurrency market data
  • Implement and backtest trading strategies (like moving average crossovers)
  • Generate visual performance metrics for your strategies
  • Analyze token performance across different timeframes
  • Build automated trading systems with consistent API access

Whether for algorithmic trading bots or market research, this server simplifies working with crypto data and strategy development.

Demo Video

Hackathon Demo Video

Getting Started

Installation

  1. Clone the repository:
git clone https://github.com/antonkulaga/tokens-mcp.git
  1. Install dependencies:
uv sync

Configuration

Copy .env.example to .env and configure your API keys:

cp .env.example .env
# Edit .env with your TokenMetrics API key

You must also update the mcp_server_config.json file with your TokenMetrics API key:

{
  "mcpServers": {
    "TmaiAPI": {
      "command": "uv",
      "args": ["--directory", "/path/to/tokens-mcp", "run", "mcp", "run", "run.py"],
      "env": {
        "TOKEN_METRICS_API_KEY": "your-api-key-here"
      }
    }
  }
}

Running the Server

uv run mcp run run.py

You can inspect the server by running

uv run mcp dev run.py

Note: if uv environment is activated you can omit uv run part

IDE Integration

This project works best with IDEs that support the Model Context Protocol (MCP).

Cursor

Cursor provides native support for MCP, allowing AI assistants to directly interact with the TokenMetrics API through this server. To use this project in Cursor:

  1. Open the project in Cursor
  2. Ensure your configuration files (.env and mcp_server_config.json) are properly set up
  3. The MCP server will be automatically detected, enabling AI assistants to analyze crypto data and implement trading strategies

Cursor IDE integration with TokenMetrics MCP server

Project Structure

The project is organized using a standard Python package structure:

tokens-mcp/
├── src/                           # Source code directory
│   └── tokens_mcp/                # Main package
│       ├── __init__.py            # Package initialization
│       ├── server.py              # MCP server implementation
│       ├── models.py              # Pydantic models
│       ├── helpers.py             # Helper functions
│       ├── chart_utils.py         # Chart utilities
│       ├── check_api_access.py    # API access validation
│       ├── save_and_decode_chart.py # Chart handling utilities
│       ├── inspect_exchange.py    # Exchange inspection utilities
│       └── inspect_api.py         # API inspection utilities
├── tests/                         # Test directory
│   ├── test_token_symbols.py      # Token symbol tests
│   ├── test_pagination.py         # Pagination tests
│   ├── test_ma_chart.py           # Moving average chart tests
│   ├── test_cache.py              # Cache tests
│   └── ...                        # Other tests
├── run.py                         # Server runner script
├── pyproject.toml                 # Project configuration
├── mcp_server_config.json         # Server configuration
├── notebooks/                     # Jupyter notebooks
├── images/                        # Image resources
└── README.md                      # This file

Known Issues

Configuration File Paths

The mcp_server_config.json file currently contains absolute paths to the server. You must manually edit this file to update the path to match your local environment:

{
  "mcpServers": {
    "TmaiAPI": {
      "command": "uv",
      "args": ["--directory", "/path/to/tokens-mcp", "run", "mcp", "run", "run.py"],
                              ^^^^^^^^^^^^^^^^^^^ 
                              Update this to your actual path
      "env": {
        "TOKEN_METRICS_API_KEY": "your-api-key-here"
      }
    }
  }
}

This is a temporary limitation that will be addressed in future updates.

Testing Framework

Currently, the test files in the tests/ directory are manually run scripts rather than proper pytest files with assertions. These scripts are used to verify functionality through manual inspection of outputs rather than automated test assertions. Future updates will implement proper pytest-based testing with complete assertion coverage.

TokenMetrics API Implementation

Many TokenMetrics API endpoints had to be directly implemented in this project because they are not available in the existing tmai-api library. This results in some custom API handling code that would ideally be part of the upstream library. Future updates may migrate these implementations to the official library or create a more comprehensive client package.

Experimental Code

This repository may contain traces of unused code that was previously used for experimentation and development iterations. These code fragments remain for reference purposes but may be removed in future cleanup efforts. If you encounter seemingly unused functions or modules, they likely fall into this category.

Project Background

This repository serves as a demo for the HolyMCP project developed at the Bucharest ETH 2025 Hackathon.

HolyMCP Project

Install configuration

Are you the maintainer?

Claim this server with your GitHub account to request manual ownership verification.

README Embed Badge
Markdown

Link to the catalog listing for MCP server for the TokenMetrics API from your README. This badge does not certify ownership, compatibility or security.

[![MCP catalog listing](https://img.shields.io/badge/MCP-awesome--mcp-orange?style=flat-square)](https://awesome-mcp.com/servers/tokens-mcp)

REPOSITORY STATS

GitHub StarsUnavailable
ForksUnavailable

Public repository statistics could not be verified. Check the configured source address; unavailable counts are not zero.

下载与拉取统计

来源、范围和时段分别列出;不相加,不代表安装人数、活跃用户或安全审核。

尚无已审核的包 / 镜像标识,暂不展示下载统计。

Related finance crypto MCP Servers

Alternative and complementary servers in the same category

View all in finance crypto →
USA Spending MCP Server
usaspending-mcp-server•thsmale

A stateless streamable HTTP MCP server for interacting with the official source of government spending data.

Repository stats unavailable
Finance & Analytics
Fortnox MCP server — More AI
more-ai-chatgpt-claude-mcp-fortnox•amor3

A hosted, remote MCP server for Fortnox that lets AI assistants answer questions from a company's bookkeeping and propose changes for approval before writing them.

0
Finance & Analytics

OptimistFi is a read-only remote MCP server that provides perpetual futures market data, perps prop firm rules and pricing, and US equity investment research.

Repository stats unavailable
Finance & Analytics