Catalog PyPI
PACKAGE EXPLORERView in registry

aa-mcp

PyPI

MCP server wrapping the Artificial Analysis API for LLM and multimodal model data queries

aiartificial-analysisbenchmarkllmmcpmodel-comparison
Versions collected1
Direct dependencies2From release 0.1.2
Last observed20 Oct, 16:58 UTC

README

Version 0.1.2 documentation

aa-mcp

MCP server wrapping the Artificial Analysis public API. Enables AI agents to query LLM and multimodal model benchmarks, pricing, speed data, and track model updates via structured diffs.

The PyPI package is aa-mcp; it installs the aa-mcp console command.

Requirements

  • Python 3.10+
  • uv (for installation and running)
  • An Artificial Analysis API key (get one free)

Installation & Running

Use uvx as the standard runtime path:

export ARTIFICIAL_ANALYSIS_API_KEY="aa_your_key_here"
uvx aa-mcp

Environment Variables

VariableRequiredDefaultDescription
ARTIFICIAL_ANALYSIS_API_KEYYes-Your AA API key
AA_MCP_SNAPSHOT_DIRNo~/.local/share/aa-mcp/snapshots/Directory for update snapshots
AA_MCP_LOG_LEVELNoINFOLog level (DEBUG, INFO, WARNING, ERROR)

Official API Coverage

This server wraps the current free Artificial Analysis API endpoints documented at https://artificialanalysis.ai/api-reference:

Artificial Analysis endpointMCP tool
GET /api/v2/data/llms/modelsaa_list_llms, aa_get_model, aa_compare_models, aa_list_recent_updates, aa_healthcheck
GET /api/v2/data/media/text-to-imageaa_list_media_models(modality="text-to-image")
GET /api/v2/data/media/image-editingaa_list_media_models(modality="image-editing")
GET /api/v2/data/media/text-to-speechaa_list_media_models(modality="text-to-speech")
GET /api/v2/data/media/text-to-videoaa_list_media_models(modality="text-to-video")
GET /api/v2/data/media/image-to-videoaa_list_media_models(modality="image-to-video")
POST /api/v2/critpt/evaluateaa_evaluate_critpt

MCP Tools

aa_list_llms

List LLM models with filtering and sorting.

  • Filters: creator, name, slug (substring match)
  • Sort by: intelligence (default), price, speed, ttft, coding, math
  • limit: Max results (default 20)

aa_get_model

Get full details for a single model by id, slug, or name.

  • Returns candidates if multiple matches found
  • Supports partial/fuzzy matching

aa_compare_models

Side-by-side comparison of 2+ models.

  • Compares: intelligence, coding, math, pricing, speed, latency
  • Returns rankings across all metrics
  • Input: list of identifiers (ids, slugs, or names)

aa_list_recent_updates

Detect changes since the last local snapshot.

  • New models: present in current data but not in snapshot
  • Removed models: present in snapshot but gone from current data
  • Changed models: field-level diffs for pricing, speed, intelligence scores, etc.
  • First run creates a baseline snapshot
  • Float changes below 0.01 threshold are ignored (noise filtering)

aa_list_media_models

Query multimodal / media model rankings.

  • Modalities: text-to-image, image-editing, text-to-speech, text-to-video, image-to-video
  • top_n: Limit results (default 10)
  • include_categories: Per-category Elo breakdown where the upstream endpoint supports it

aa_evaluate_critpt

Submit a complete CritPt benchmark batch to the official evaluation endpoint.

  • Requires submissions for the full public CritPt problem set
  • Validates required fields before sending: problem_id, generated_code, model, generation_config
  • Optional batch_metadata object is passed through to Artificial Analysis
  • The upstream endpoint is rate-limited separately and may take substantial time to complete

aa_healthcheck

Verify API key and upstream connectivity.

  • Returns masked key preview, model count, rate limit info
  • Reports specific error types (auth, rate limit, server error)

Snapshot / Update Tracking

The aa_list_recent_updates tool uses a local JSON snapshot mechanism:

  1. First call: Fetches all LLM models, saves a normalized snapshot to disk, reports "baseline created"
  2. Subsequent calls: Fetches fresh data, diffs against the latest snapshot, reports changes
  3. Snapshot location: ~/.local/share/aa-mcp/snapshots/llm_models_YYYYMMDDTHHMMSSZ.json
  4. Noise filtering: Float fields use a 0.01 threshold to avoid reporting insignificant fluctuations
  5. Tracked fields: name, slug, creator, all evaluation scores, all pricing fields, speed/latency

opencode Integration

Add to your opencode.json:

{
  "mcp": {
    "servers": {
      "artificial-analysis": {
        "command": "uvx",
        "args": ["aa-mcp"],
        "env": {
          "ARTIFICIAL_ANALYSIS_API_KEY": "aa_your_key_here"
        }
      }
    }
  }
}

For MCP client examples, see docs/mcp-client-config.md.

Example Usage (via MCP client)

# List top 5 most intelligent LLMs
aa_list_llms(sort_by="intelligence", limit=5)

# Get details on Claude 3.5 Sonnet
aa_get_model("claude-3-5-sonnet")

# Compare GPT-4o vs Claude 3.5 Sonnet vs Gemini 1.5 Pro
aa_compare_models(["gpt-4o", "claude-3-5-sonnet", "gemini-1.5-pro"])

# Check for recent model changes
aa_list_recent_updates()

# Top 5 text-to-image models
aa_list_media_models(modality="text-to-image", top_n=5)

# Submit CritPt benchmark results
aa_evaluate_critpt(
  submissions=[
    {
      "problem_id": "Challenge_1_main",
      "generated_code": "def solution(): return 42",
      "model": "example-model",
      "generation_config": {"temperature": 0}
    }
  ],
  batch_metadata={"run_id": "local-test"}
)

# Verify API connectivity
aa_healthcheck()

Development Checks

For development, run the release checks from a source checkout:

uv sync --dev
uv run pytest
uv run ruff check .
uv build
uv run twine check dist/*

Known Limitations

  • Free API tier: 1000 requests/day rate limit
  • No explicit "updated_at" field: Update detection relies on snapshot diffs, not API metadata
  • LLM data only for snapshots: Media model snapshot tracking is not yet implemented
  • CritPt completeness: The upstream evaluation API requires submissions for the full public problem set; this server validates object shape but cannot verify set completeness locally
  • No pagination: The free API returns all models in a single response; no cursor/offset support
  • Snapshot storage: Local filesystem only; no cloud sync

Attribution

Artificial Analysis

This project uses data and benchmark resources from Artificial Analysis.

Attribution is required for all use of the Artificial Analysis free API. If you publish outputs, dashboards, reports, or derivative analysis using data returned by this MCP server, include attribution to artificialanalysis.ai.

CritPt benchmark evaluation data should also include attribution to the CritPt project.

Downloads & popularity

7downloads
1-day window · source-reported counts20 Oct 2026
54270
2026-07-23: 2 · observed 2026-10-21T10:36:05.8050684Z · period 2026-07-23–2026-07-232026-07-24: 1 · observed 2026-10-21T10:36:05.8050684Z · period 2026-07-24–2026-07-242026-07-27: 1 · observed 2026-10-21T10:36:05.8050684Z · period 2026-07-27–2026-07-272026-07-29: 12 · observed 2026-10-21T10:36:05.8050684Z · period 2026-07-29–2026-07-292026-08-01: 1 · observed 2026-10-21T10:36:05.8050684Z · period 2026-08-01–2026-08-012026-08-02: 1 · observed 2026-10-21T10:36:05.8050684Z · period 2026-08-02–2026-08-022026-08-03: 16 · observed 2026-10-21T10:36:05.8050684Z · period 2026-08-03–2026-08-032026-08-04: 7 · observed 2026-10-21T10:36:05.8050684Z · period 2026-08-04–2026-08-042026-08-06: 1 · observed 2026-10-21T10:36:05.8050684Z · period 2026-08-06–2026-08-062026-08-08: 4 · observed 2026-10-21T10:36:05.8050684Z · period 2026-08-08–2026-08-082026-08-09: 5 · observed 2026-10-21T10:36:05.8050684Z · period 2026-08-09–2026-08-092026-08-11: 5 · observed 2026-10-21T10:36:05.8050684Z · period 2026-08-11–2026-08-112026-08-13: 2 · observed 2026-10-21T10:36:05.8050684Z · period 2026-08-13–2026-08-132026-08-14: 10 · observed 2026-10-21T10:36:05.8050684Z · period 2026-08-14–2026-08-142026-08-17: 8 · observed 2026-10-21T10:36:05.8050684Z · period 2026-08-17–2026-08-172026-08-18: 54 · observed 2026-10-21T10:36:05.8050684Z · period 2026-08-18–2026-08-182026-08-19: 2 · observed 2026-10-21T10:36:05.8050684Z · period 2026-08-19–2026-08-192026-08-20: 1 · observed 2026-10-21T10:36:05.8050684Z · period 2026-08-20–2026-08-202026-08-21: 6 · observed 2026-10-21T10:36:05.8050684Z · period 2026-08-21–2026-08-212026-08-22: 1 · observed 2026-10-21T10:36:05.8050684Z · period 2026-08-22–2026-08-222026-08-23: 3 · observed 2026-10-21T10:36:05.8050684Z · period 2026-08-23–2026-08-232026-08-24: 14 · observed 2026-10-21T10:36:05.8050684Z · period 2026-08-24–2026-08-242026-08-28: 2 · observed 2026-10-21T10:36:05.8050684Z · period 2026-08-28–2026-08-282026-08-29: 2 · observed 2026-10-21T10:36:05.8050684Z · period 2026-08-29–2026-08-292026-08-30: 2 · observed 2026-10-21T10:36:05.8050684Z · period 2026-08-30–2026-08-302026-08-31: 5 · observed 2026-10-21T10:36:05.8050684Z · period 2026-08-31–2026-08-312026-09-01: 1 · observed 2026-10-21T10:36:05.8050684Z · period 2026-09-01–2026-09-012026-09-02: 1 · observed 2026-10-21T10:36:05.8050684Z · period 2026-09-02–2026-09-022026-09-03: 2 · observed 2026-10-21T10:36:05.8050684Z · period 2026-09-03–2026-09-032026-09-04: 2 · observed 2026-10-21T10:36:05.8050684Z · period 2026-09-04–2026-09-042026-09-05: 8 · observed 2026-10-21T10:36:05.8050684Z · period 2026-09-05–2026-09-052026-09-06: 1 · observed 2026-10-21T10:36:05.8050684Z · period 2026-09-06–2026-09-062026-09-07: 1 · observed 2026-10-21T10:36:05.8050684Z · period 2026-09-07–2026-09-072026-09-08: 1 · observed 2026-10-21T10:36:05.8050684Z · period 2026-09-08–2026-09-082026-09-09: 5 · observed 2026-10-21T10:36:05.8050684Z · period 2026-09-09–2026-09-092026-09-10: 2 · observed 2026-10-21T10:36:05.8050684Z · period 2026-09-10–2026-09-102026-09-11: 1 · observed 2026-10-21T10:36:05.8050684Z · period 2026-09-11–2026-09-112026-09-12: 8 · observed 2026-10-21T10:36:05.8050684Z · period 2026-09-12–2026-09-122026-09-14: 2 · observed 2026-10-21T10:36:05.8050684Z · period 2026-09-14–2026-09-142026-09-17: 1 · observed 2026-10-21T10:36:05.8050684Z · period 2026-09-17–2026-09-172026-09-18: 10 · observed 2026-10-21T10:36:05.8050684Z · period 2026-09-18–2026-09-182026-09-19: 3 · observed 2026-10-21T10:36:05.8050684Z · period 2026-09-19–2026-09-192026-09-20: 1 · observed 2026-10-21T10:36:05.8050684Z · period 2026-09-20–2026-09-202026-09-23: 1 · observed 2026-10-21T10:36:05.8050684Z · period 2026-09-23–2026-09-232026-09-24: 5 · observed 2026-10-21T10:36:05.8050684Z · period 2026-09-24–2026-09-242026-09-25: 5 · observed 2026-10-21T10:36:05.8050684Z · period 2026-09-25–2026-09-252026-09-26: 6 · observed 2026-10-21T10:36:05.8050684Z · period 2026-09-26–2026-09-262026-09-27: 2 · observed 2026-10-21T10:36:05.8050684Z · period 2026-09-27–2026-09-272026-09-28: 2 · observed 2026-10-21T10:36:05.8050684Z · period 2026-09-28–2026-09-282026-09-29: 4 · observed 2026-10-21T10:36:05.8050684Z · period 2026-09-29–2026-09-292026-09-30: 3 · observed 2026-10-21T10:36:05.8050684Z · period 2026-09-30–2026-09-302026-10-01: 3 · observed 2026-10-21T10:36:05.8050684Z · period 2026-10-01–2026-10-012026-10-03: 1 · observed 2026-10-21T10:36:05.8050684Z · period 2026-10-03–2026-10-032026-10-06: 2 · observed 2026-10-21T10:36:05.8050684Z · period 2026-10-06–2026-10-062026-10-07: 3 · observed 2026-10-21T10:36:05.8050684Z · period 2026-10-07–2026-10-072026-10-08: 6 · observed 2026-10-21T10:36:05.8050684Z · period 2026-10-08–2026-10-082026-10-09: 2 · observed 2026-10-21T10:36:05.8050684Z · period 2026-10-09–2026-10-092026-10-10: 4 · observed 2026-10-21T10:36:05.8050684Z · period 2026-10-10–2026-10-102026-10-11: 8 · observed 2026-10-21T10:36:05.8050684Z · period 2026-10-11–2026-10-112026-10-12: 3 · observed 2026-10-21T10:36:05.8050684Z · period 2026-10-12–2026-10-122026-10-13: 3 · observed 2026-10-21T10:36:05.8050684Z · period 2026-10-13–2026-10-132026-10-14: 1 · observed 2026-10-21T10:36:05.8050684Z · period 2026-10-14–2026-10-142026-10-15: 2 · observed 2026-10-21T10:36:05.8050684Z · period 2026-10-15–2026-10-152026-10-16: 12 · observed 2026-10-21T10:36:05.8050684Z · period 2026-10-16–2026-10-162026-10-17: 6 · observed 2026-10-21T10:36:05.8050684Z · period 2026-10-17–2026-10-172026-10-18: 2 · observed 2026-10-21T10:36:05.8050684Z · period 2026-10-18–2026-10-182026-10-19: 2 · observed 2026-10-21T10:36:05.8050684Z · period 2026-10-19–2026-10-192026-10-20: 7 · observed 2026-10-21T10:36:05.8050684Z · period 2026-10-20–2026-10-20
23 Jul20 Oct

pypistats · 68 observations shown. Missing days are unknown. Source category: overall: without mirrors.

View observed values
Date / source periodValueObserved at
2026-10-20 – 2026-10-2072026-10-21T10:36:05.8050684Z
2026-10-19 – 2026-10-1922026-10-21T10:36:05.8050684Z
2026-10-18 – 2026-10-1822026-10-21T10:36:05.8050684Z
2026-10-17 – 2026-10-1762026-10-21T10:36:05.8050684Z
2026-10-16 – 2026-10-16122026-10-21T10:36:05.8050684Z
2026-10-15 – 2026-10-1522026-10-21T10:36:05.8050684Z
2026-10-14 – 2026-10-1412026-10-21T10:36:05.8050684Z
2026-10-13 – 2026-10-1332026-10-21T10:36:05.8050684Z
2026-10-12 – 2026-10-1232026-10-21T10:36:05.8050684Z
2026-10-11 – 2026-10-1182026-10-21T10:36:05.8050684Z
2026-10-10 – 2026-10-1042026-10-21T10:36:05.8050684Z
2026-10-09 – 2026-10-0922026-10-21T10:36:05.8050684Z
2026-10-08 – 2026-10-0862026-10-21T10:36:05.8050684Z
2026-10-07 – 2026-10-0732026-10-21T10:36:05.8050684Z
2026-10-06 – 2026-10-0622026-10-21T10:36:05.8050684Z
2026-10-03 – 2026-10-0312026-10-21T10:36:05.8050684Z
2026-10-01 – 2026-10-0132026-10-21T10:36:05.8050684Z
2026-09-30 – 2026-09-3032026-10-21T10:36:05.8050684Z
2026-09-29 – 2026-09-2942026-10-21T10:36:05.8050684Z
2026-09-28 – 2026-09-2822026-10-21T10:36:05.8050684Z
2026-09-27 – 2026-09-2722026-10-21T10:36:05.8050684Z
2026-09-26 – 2026-09-2662026-10-21T10:36:05.8050684Z
2026-09-25 – 2026-09-2552026-10-21T10:36:05.8050684Z
2026-09-24 – 2026-09-2452026-10-21T10:36:05.8050684Z
2026-09-23 – 2026-09-2312026-10-21T10:36:05.8050684Z
2026-09-20 – 2026-09-2012026-10-21T10:36:05.8050684Z
2026-09-19 – 2026-09-1932026-10-21T10:36:05.8050684Z
2026-09-18 – 2026-09-18102026-10-21T10:36:05.8050684Z
2026-09-17 – 2026-09-1712026-10-21T10:36:05.8050684Z
2026-09-14 – 2026-09-1422026-10-21T10:36:05.8050684Z
2026-09-12 – 2026-09-1282026-10-21T10:36:05.8050684Z
2026-09-11 – 2026-09-1112026-10-21T10:36:05.8050684Z
2026-09-10 – 2026-09-1022026-10-21T10:36:05.8050684Z
2026-09-09 – 2026-09-0952026-10-21T10:36:05.8050684Z
2026-09-08 – 2026-09-0812026-10-21T10:36:05.8050684Z
2026-09-07 – 2026-09-0712026-10-21T10:36:05.8050684Z
2026-09-06 – 2026-09-0612026-10-21T10:36:05.8050684Z
2026-09-05 – 2026-09-0582026-10-21T10:36:05.8050684Z
2026-09-04 – 2026-09-0422026-10-21T10:36:05.8050684Z
2026-09-03 – 2026-09-0322026-10-21T10:36:05.8050684Z
2026-09-02 – 2026-09-0212026-10-21T10:36:05.8050684Z
2026-09-01 – 2026-09-0112026-10-21T10:36:05.8050684Z
2026-08-31 – 2026-08-3152026-10-21T10:36:05.8050684Z
2026-08-30 – 2026-08-3022026-10-21T10:36:05.8050684Z
2026-08-29 – 2026-08-2922026-10-21T10:36:05.8050684Z
2026-08-28 – 2026-08-2822026-10-21T10:36:05.8050684Z
2026-08-24 – 2026-08-24142026-10-21T10:36:05.8050684Z
2026-08-23 – 2026-08-2332026-10-21T10:36:05.8050684Z
2026-08-22 – 2026-08-2212026-10-21T10:36:05.8050684Z
2026-08-21 – 2026-08-2162026-10-21T10:36:05.8050684Z
2026-08-20 – 2026-08-2012026-10-21T10:36:05.8050684Z
2026-08-19 – 2026-08-1922026-10-21T10:36:05.8050684Z
2026-08-18 – 2026-08-18542026-10-21T10:36:05.8050684Z
2026-08-17 – 2026-08-1782026-10-21T10:36:05.8050684Z
2026-08-14 – 2026-08-14102026-10-21T10:36:05.8050684Z
2026-08-13 – 2026-08-1322026-10-21T10:36:05.8050684Z
2026-08-11 – 2026-08-1152026-10-21T10:36:05.8050684Z
2026-08-09 – 2026-08-0952026-10-21T10:36:05.8050684Z
2026-08-08 – 2026-08-0842026-10-21T10:36:05.8050684Z
2026-08-06 – 2026-08-0612026-10-21T10:36:05.8050684Z
2026-08-04 – 2026-08-0472026-10-21T10:36:05.8050684Z
2026-08-03 – 2026-08-03162026-10-21T10:36:05.8050684Z
2026-08-02 – 2026-08-0212026-10-21T10:36:05.8050684Z
2026-08-01 – 2026-08-0112026-10-21T10:36:05.8050684Z
2026-07-29 – 2026-07-29122026-10-21T10:36:05.8050684Z
2026-07-27 – 2026-07-2712026-10-21T10:36:05.8050684Z
2026-07-24 – 2026-07-2412026-10-21T10:36:05.8050684Z
2026-07-23 – 2026-07-2322026-10-21T10:36:05.8050684Z

Versions 1

Collected releases
VersionPublishedDirect dependenciesOpen version
0.1.221 May 20262

Package advisories

0
No matching advisories collected

This describes our collected data; it is not a security assessment.

Repository

ACCESSIBLE
leev1s/aa-mcp

Shared repository data · GitHub

License detected in repository
MIT
License branch / ref
main
Last push
21 May 2026
Archived
No
Contributor identities
— · partial collection

Public sponsor counts have not been collected. These signals belong to the repository owner.

Downloads & popularity

2count
Gauge · observed snapshots22 Oct 2026
210
2026-10-22: 2 · observed 2026-10-22T16:49:50.8510140Z
22 Oct22 Oct

github · 1 observations shown. Missing days are unknown.

View observed values
Date / source periodValueObserved at
2026-10-2222026-10-22T16:49:50.8510140Z

Metadata history

Meaningful changes
Current collected state Current

Observed since 20 Oct, 16:58 UTC

No superseded metadata states collected. Unchanged observations do not create new revisions.

Record identity

package:283d28583cdd43966f314dc7c9604203667ccfe0dbe8d3510048da10d7ce46f0