npm package discovery and stats viewer.

Discover Tips

  • General search

    [free text search, go nuts!]

  • Package details

    pkg:[package-name]

  • User packages

    @[username]

Sponsor

Optimize Toolset

I’ve always been into building performant and accessible sites, but lately I’ve been taking it extremely seriously. So much so that I’ve been building a tool to help me optimize and monitor the sites that I build to make sure that I’m making an attempt to offer the best experience to those who visit them. If you’re into performant, accessible and SEO friendly sites, you might like it too! You can check it out at Optimize Toolset.

About

Hi, 👋, I’m Ryan Hefner  and I built this site for me, and you! The goal of this site was to provide an easy way for me to check the stats on my npm packages, both for prioritizing issues and updates, and to give me a little kick in the pants to keep up on stuff.

As I was building it, I realized that I was actually using the tool to build the tool, and figured I might as well put this out there and hopefully others will find it to be a fast and useful way to search and browse npm packages as I have.

If you’re interested in other things I’m working on, follow me on Twitter or check out the open source projects I’ve been publishing on GitHub.

I am also working on a Twitter bot for this site to tweet the most popular, newest, random packages from npm. Please follow that account now and it will start sending out packages soon–ish.

Open Software & Tools

This site wouldn’t be possible without the immense generosity and tireless efforts from the people who make contributions to the world and share their work via open source initiatives. Thank you 🙏

© 2025 – Pkg Stats / Ryan Hefner

@token-metrics-ai/mcp

v1.5.0

Published

Model Context Protocol server for Token Metrics API - provides comprehensive cryptocurrency data, analytics, and insights

Readme

Token Metrics MCP Server

smithery badge

The Token Metrics Model Context Protocol (MCP) server provides comprehensive cryptocurrency data, analytics, and insights through function calling. This server enables AI assistants and agents to access Token Metrics' powerful API for real-time crypto market data, trading signals, price predictions, and advanced analytics.

Features

  • Real-time Crypto Data: Access current prices, market cap, volume, and other key metrics
  • Trading Signals: AI-generated trading signals for long and short positions
  • Price Predictions: Advanced price forecasting and scenario analysis
  • Technical Analysis: Support and resistance levels, correlation analysis
  • Market Analytics: Comprehensive market insights and sentiment analysis
  • Quantitative Metrics: Advanced quantitative analysis and grading systems

Quick Start

Option 1: HTTP Transport

The easiest way to get started is using our hosted HTTP transport - no installation required:

{
  "mcpServers": {
    "token-metrics": {
      "url": "https://mcp.tokenmetrics.com",
      "headers": {
        "x-api-key": "YOUR_API_KEY"
      }
    }
  }
}

Option 2: Using npx (Local Installation)

# Set environment variable and run
export TOKEN_METRICS_API_KEY=your_api_key_here
npx -y @token-metrics-ai/mcp@latest

Connection Methods

HTTP Transport (Hosted)

  • URL: https://mcp.tokenmetrics.com
  • Authentication: Use x-api-key header with your Token Metrics API key
  • Benefits:
    • No local installation required
    • Always up-to-date
    • Better performance and reliability
    • Automatic scaling
  • Usage: Perfect for production environments and users who prefer not to install packages locally

Local Installation (npx/npm)

  • Benefits:
    • Full control over the server instance
    • Works offline (after installation)
    • Can modify and extend functionality
  • Usage: Ideal for development, testing, or custom implementations

MCP Listings

You can find the Token Metrics MCP server on these popular MCP listing sites:

Setup with AI Clients

Claude Desktop or VS Code/Cursor

HTTP Transport Configuration

Add the following to your claude_desktop_config.json or mcp.json:

{
  "mcpServers": {
    "token-metrics": {
      "url": "https://mcp.tokenmetrics.com",
      "headers": {
        "x-api-key": "YOUR_API_KEY"
      }
    }
  }
}

Local Installation Configuration

Add the following to your claude_desktop_config.json or mcp.json:

{
  "mcpServers": {
    "token-metrics": {
      "command": "npx",
      "args": ["-y", "@token-metrics-ai/mcp@latest"],
      "env": {
        "TOKEN_METRICS_API_KEY": "YOUR_API_KEY"
      }
    }
  }
}

Available Tools

The Token Metrics MCP server provides the following tools:

Token Data & Prices

  • get_tokens_data - Fetch comprehensive token information
  • get_tokens_price - Get current token prices
  • get_tokens_hourly_ohlcv - Hourly OHLCV data
  • get_tokens_daily_ohlcv - Daily OHLCV data

Trading & Analysis

  • get_tokens_trading_signal - AI-generated trading signals
  • get_tokens_trader_grade - Short-term trader grades
  • get_tokens_investor_grade - Long-term investor grades
  • get_tokens_resistance_and_support - Technical support/resistance levels
  • get_tokens_correlation - Token correlation analysis

Market Intelligence

  • get_market_metrics - Overall market analytics
  • get_sentiment - Market sentiment analysis
  • get_tokens_quant_metrics - Quantitative metrics
  • get_tokens_scenario_analysis - Price prediction scenarios

Research & Reports

  • get_tokens_ai_report - AI-generated token reports
  • get_crypto_investors - Crypto investor information
  • get_top_tokens_by_market_cap - Top tokens by market cap

Indices & Portfolio

  • get_indices - Fetch active and passive crypto indices
  • get_indices_performance - Historical performance data for indices
  • get_indices_holdings - Current holdings and weights for indices

Getting Your API Key

  1. Visit Token Metrics
  2. Sign up for an account
  3. Navigate to your API Dashboard
  4. Generate a new API key
  5. Use the API key with this MCP server

Development

Prerequisites

  • Node.js 18 or higher
  • npm or yarn
  • TypeScript

Local Development

  1. Clone the repository:
git clone https://github.com/token-metrics/mcp.git
cd mcp
  1. Install dependencies:
npm install
  1. Set your API key:
export TOKEN_METRICS_API_KEY=your_api_key_here
  1. Run in development mode:
npm run start:dev

Building

npm run build

Testing with MCP Inspector

You can test the local server using the MCP Inspector:

# Build the server first
npm run build

# Run with MCP Inspector
npx @modelcontextprotocol/inspector node build/src/cli.js

Configuration

HTTP Transport Configuration

When using the hosted HTTP transport at https://mcp.tokenmetrics.com, the server accepts:

Headers:

  • x-api-key - Your Token Metrics API key (required)
  • Content-Type: application/json (for requests)

Supported Endpoints:

  • POST / - Main MCP JSON-RPC endpoint

Local Server Configuration

The local server accepts the following configuration options:

  • --help - Show help information

Environment variables:

  • TOKEN_METRICS_API_KEY - Your Token Metrics API key

Error Handling

The server includes comprehensive error handling:

  • Invalid API Key: Returns authentication error
  • Rate Limiting: Handles API rate limits gracefully
  • Network Issues: Retries failed requests
  • Invalid Parameters: Validates input parameters

Security

  • API keys are handled securely
  • No sensitive data is logged
  • Docker container runs as non-root user
  • Input validation on all parameters

Support

License

MIT License - see LICENSE file for details.