mcpField
A
Artificial Analysis

Artificial Analysis

Local
github.com/davidhaririAI & Agents9Updated 41w ago

About Artificial Analysis

Artificial Analysis is an MCP server that provides AI assistants with LLM pricing, speed, and benchmark data from Artificial Analysis. It supports filtering and sorting model listings, as well as retrieving details for a specific model.

Key features

  1. 01Look up LLM input and output prices
  2. 02Compare generation speed and time to first token
  3. 03View multiple benchmark scores
  4. 04Filter models by provider
  5. 05Sort models by metric

Use cases

  1. 01Compare prices across models
  2. 02Find models with higher speed
  3. 03Assess models using benchmark scores
  4. 04Retrieve metrics for a specific model

MCP support

The MCP server exposes tools to list and inspect models, including filtering by provider and sorting by metric. It provides pricing, speed, and benchmark data and requires an Artificial Analysis API key.

Configuration

Local server config is the same for every client. Copy it into your client’s MCP config file.

mcp.json · Universal config
{
"mcpServers": {
"artificial-analysis": {
"command": "npx",
"args": [
"-y",
"artificial-analysis-mcp"
],
"env": {
"AA_API_KEY": "<AA_API_KEY>"
}
}
}
}
Run commandnpx -y artificial-analysis-mcp
Environment variables to set
AA_API_KEYSecret

Local servers need a runtime on your machine (e.g. Node.js 18+). Config file locations differ by client; see your client’s docs.

Packages
npmartificial-analysis-mcp

Tools

2

Saved tool list · updated 3w ago

ParameterTypeRequiredDescription
creatorstringNoFilter by model creator (e.g., "OpenAI", "Anthropic", "Google")
sort_byenumNoField to sort byprice_input | price_output | price_blended | speed | ttft | intelligence_index | coding_index | math_index | mmlu_pro | gpqa | release_date
sort_orderenumNoSort order (default: desc)asc | desc
limitnumberNoMaximum number of results to return

Details

From the project README

Artificial Analysis MCP Server

An MCP (Model Context Protocol) server that provides LLM model pricing, speed metrics, and benchmark scores from Artificial Analysis.

Features

  • Get real-time pricing for 300+ LLM models (input/output/blended rates)
  • Compare speed metrics (tokens/sec, time to first token)
  • Access benchmark scores (Intelligence Index, Coding Index, MMLU-Pro, GPQA, and more)
  • Filter by provider (OpenAI, Anthropic, Google, etc.)
  • Sort by any metric

Installation

Claude Code
claude mcp add artificial-analysis -e AA_API_KEY=your-key -- npx -y artificial-analysis-mcp

Or install from GitHub:

claude /mcp add https://github.com/davidhariri/artificial-analysis-mcp
Manual Configuration

Add to your Claude settings (~/.claude/settings.json):

{
  "mcpServers": {
    "artificial-analysis": {
      "command": "npx",
      "args": ["-y", "artificial-analysis-mcp"],
      "env": {
        "AA_API_KEY": "your-api-key"
      }
    }
  }
}

Configuration

Environment VariableRequiredDescription
AA_API_KEYYesYour Artificial Analysis API key

Get your API key at artificialanalysis.ai.

Tools

list_models

List all available LLM models with optional filtering and sorting.

Parameters:

NameTypeRequiredDescription
creatorstringNoFilter by model creator (e.g., "OpenAI", "Anthropic")
sort_bystringNoSort field (see below)
sort_orderstringNo"asc" or "desc" (default: "desc")
limitnumberNoMaximum results to return

Sort fields: price_input, price_output, price_blended, speed, ttft, intelligence_index, coding_index, math_index, mmlu_pro, gpqa, release_date

Example usage:

  • "List the top 5 fastest models"
  • "Show me Anthropic models sorted by price"
  • "What are the cheapest models with high intelligence scores?"
get_model

Get detailed information about a specific model.

Parameters:

NameTypeRequiredDescription
modelstringYesModel name or slug (e.g., "gpt-4o", "claude-4-5-sonnet")

Returns: Complete model details including pricing, speed metrics, and all benchmark scores.

Example usage:

  • "Get pricing for GPT-4o"
  • "What are Claude 4.5 Sonnet's benchmark scores?"

Model Data

Each model includes:

  • Pricing: Input/output/blended rates per 1M tokens (USD)
  • Speed: Output tokens per second, time to first token
  • Benchmarks: Intelligence Index, Coding Index, Math Index, MMLU-Pro, GPQA, LiveCodeBench, and more

Development

# Install dependencies
npm install

# Build
npm run build

# Run locally
AA_API_KEY=your-key node dist/index.js

License

MIT

Comments

Markdown supported

New to MCP?

From what the protocol is to installing your first server, these answers cover most first questions.

An open protocol that defines how AI applications connect to external tools and data in a uniform way. Clients talk to the model; MCP servers provide tools, resources and prompt templates. They exchange standard messages, so one server can be reused by many clients.