Skip to content
MCP server
Remote

Codspeed MCP Server

CodSpeed is the all-in-one performance testing toolkit. Optimize code performance and catch regressions early.

Codspeed scores 49 (Fair), licensed Apache-2.0 and written in Rust. It can be reached as a remote MCP endpoint. It does not declare tools yet. Filed under Uncategorized. GitHub shows 394 stars. Install configs are generated for 10 clients. Being listed in the registry is not the same as being vendor-official.

by codspeedhqApache-2.0Rust394 stars
Trust score
49Fair
Trust score 49 of 100, Fair

Fair trust

49 of 100 from six public signals. Nobody can buy a point.

  • OSI-style license: apache-2.0.
How we score trust
Scorecard

License, quality and maintenance

How grades work
Trust breakdown

Where the 49 comes from

0 + 20 + 8 + 10 + 4 + 7 = 49. Each factor is capped, so no single signal can carry a listing.

Registry0 / 30

Active in the official MCP registry, plus a known vendor namespace.

Registry: 0 of 30 points.
Maintenance20 / 20

How recently the repository saw a commit or release.

Maintenance: 20 of 20 points.
Popularity8 / 20

GitHub stars and weekly downloads, on a log scale.

Popularity: 8 of 20 points.
License10 / 10

A clear, OSI-style open-source license.

License: 10 of 10 points.
Security4 / 10

Not archived, a secure install path, a pinned version.

Security: 4 of 10 points.
Docs7 / 10

A real summary, a README with depth, listed tools.

Docs: 7 of 10 points.

Install

Pick your client, copy the config, paste it in.

Needs Cursor or VS Code installed on this device. The button opens the app and asks you to confirm before it adds the server.

~/Library/Application Support/Claude/claude_desktop_config.json
{  "mcpServers": {    "codspeedhq-codspeed": {      "url": "https://mcp.codspeed.io/mcp"    }  }}

Environment variables

This server does not declare environment variables.

Tools show up when the registry metadata or the repository README lists them. Public READMEs are read directly. A GitHub token is used only when one is already configured.

About

Video Demo

Key features

  • 🎯 <1% variance in measurements using CPU simulation - no more flaky benchmarks.
  • 🔥 Differential flamegraphs to pinpoint exactly what got slower, commit by commit.
  • 💬 PR comments & status checks showing performance impact directly in your workflow.
  • 🛡️ Merge protection to block PRs that degrade performance beyond your threshold.
  • 🐍 Multi-language support for Python, Rust, Node.js, Go, C/C++ and more.
  • 🏠 Run locally or in CI - works on your machine and integrates with GitHub Actions, GitLab CI, CircleCI, and more.
  • 🔌 Plug your existing benchmarks in less than 5 minutes - works with pytest, vitest, criterion, and more.

Installation

curl -fsSL https://codspeed.io/install.sh | bash

[!NOTE] The CodSpeed CLI officially supports Ubuntu 22.04, 24.04, 26.04 and Debian 12. Other Linux distributions may work, but are not officially supported.

Quick Start

First, authenticate to keep your benchmark results linked to your CodSpeed account:

codspeed auth login

The simplest way to get started is to benchmark any executable program directly:

# Benchmark a single command
codspeed exec -- ./my-binary --arg1 value

# Benchmark a script
codspeed exec -- python my_script.py

# Benchmark with specific instrument
codspeed exec --mode walltime -- node app.js

This approach requires no code changes and works with any executable. CodSpeed will measure the performance provide the instrument results.

Deeper integration with harnesses using codspeed run

For more control and integration with your existing benchmark suite, you can use language-specific harnesses. This allows you to:

  • Define multiple benchmarks and keep them versioned in your codebase
  • Scope benchmarks to specific functions or modules
  • Integrate with existing benchmark suites (pytest, criterion, vitest, etc.)
# Using the Rust harness with criterion
codspeed run cargo codspeed run

# Using the Python harness with pytest
codspeed run pytest ./tests --codspeed

# Using the Node.js harness with vitest
codspeed run pnpm vitest bench

These harnesses provide deeper instrumentation and allow you to write benchmarks using familiar testing frameworks.

Languages Integrations

CodSpeed provides first-class integrations for multiple languages and frameworks:

LanguageRepositorySupported Frameworks
Rustcodspeed-rustdivan, criterion.rs, bencher
C/C++codspeed-cppgoogle-benchmark
Pythonpytest-codspeedpytest plugin
Node.jscodspeed-nodevitest, tinybench, benchmark.js
Gocodspeed-gobuiltin testing package integration
Zig (community)codspeed-zigcustom

Need to bench another language or framework? Open an issue or let us know on Discord!

CLI Harness: codspeed.yml configuration

The CLI also offers a built-in harness that allows you to define benchmarks directly.

You can define multiple codspeed exec benchmark targets and configure options in a codspeed.yml file. This is useful when you want to benchmark several commands with different configurations.

Create a codspeed.yml file in your project root:

# Global options applied to all benchmarks
options:
  warmup-time: "0.2s"
  max-time: 1s

# List of benchmarks to run
benchmarks:
  - name: "Fast operation"
    exec: ./my_binary --mode fast
    options:
      max-rounds: 20

  - name: "Slow operation"
    exec: ./my_binary --mode slow
    options:
      max-time: 200ms

  - name: "Script benchmark"
    exec: python scripts/benchmark.py

Then run all benchmarks with:

codspeed run --mode walltime

[!TIP] For more details on configuration options, see the CLI documentation.

Performance Instruments

CodSpeed provides multiple instruments to measure different aspects of your code's performance. Choose the one that best fits your use case:

CPU Simulation

Simulates CPU behavior for <1% variance regardless of system load. Hardware-agnostic measurements with automatic flame graphs.

Best for: CPU-intensive code, CI regression detection, cross-platform comparison

codspeed exec --mode simulation -- ./my-binary

Memory

Tracks native heap allocations (peak usage, count, allocation size) with eBPF profiling.

Best for: Memory optimization, leak detection, constrained environments

Supported: Rust, C/C++, Python (3.12+), and Node.js programs that allocate through libc, jemalloc, or mimalloc.

codspeed exec --mode memory -- ./my-binary

Walltime

Measures real-world execution time including I/O, system calls, and multi-threading effects.

Best for: API tests, I/O-heavy workloads, multi-threaded applications

codspeed exec --mode walltime -- ./my-api-test

[!WARNING] Using the walltime mode on traditional VMs/Hosted Runners will lead to inconsistent data. For the best results, we recommend using CodSpeed Hosted Macro Runners, which are fine-tuned for performance measurement consistency. Check out the Walltime Instrument Documentation for more details.

[!TIP] For detailed information on each instrument, see the Instruments documentation.

Usage In CI environments

Running CodSpeed in CI allows you to automatically detect performance regressions on every pull request and track performance evolution over time.

GitHub Actions

We recommend using our official GitHub Action: @CodSpeedHQ/action.

Here is a sample .github/workflows/codspeed.yml workflow for Python:

name: CodSpeed Benchmarks

on:
  push:
    branches:
      - "main" # or "master"
  pull_request:
  workflow_dispatch:

permissions:
  contents: read
  id-token: write

jobs:
  benchmarks:
    runs-on: ubuntu-latest
    steps:
      - uses: actions/checkout@v4

      # Set up your language/environment here
      # For Python:
      - uses: actions/setup-python@v5
        with:
          python-version: "3.12"
      - run: pip install -r requirements.txt

      # Run benchmarks with CodSpeed
      - uses: CodSpeedHQ/action@v5
        with:
          mode: instrumentation
          run: pytest tests/ --codspeed

GitLab CI

Here is a sample .gitlab-ci.yml configuration for Python:

workflow:
  rules:
    - if: $CI_PIPELINE_SOURCE == 'merge_request_event'
    - if: $CI_COMMIT_BRANCH == $CI_DEFAULT_BRANCH

codspeed:
  stage: test
  image: python:3.12
  id_tokens:
    CODSPEED_TOKEN:
      aud: codspeed.io
  before_script:
    - pip install -r requirements.txt
    - curl -fsSL https://codspeed.io/install.sh | bash -s -- --quiet
  script:
    - codspeed run --mode simulation -- pytest tests/ --codspeed

CircleCI

CodSpeed supports CircleCI for repositories hosted on GitHub.

Here is a sample .circleci/config.yml configuration for Python:

version: 2.1

jobs:
  benchmarks:
    docker:
      - image: cimg/python:3.12
    steps:
      - checkout
      - run: pip install -r requirements.txt
      - run: curl -fsSL https://codspeed.io/install.sh | bash -s -- --quiet
      - run: codspeed run --mode simulation -- pytest tests/ --codspeed

workflows:
  codspeed:
    jobs:
      - benchmarks

Jobs authenticate with OpenID Connect (OIDC) automatically, so there is no token to store. Pull requests opened from a fork cannot mint an OIDC token: set the CODSPEED_TOKEN environment variable for those jobs, as described in the CircleCI configuration documentation.

[!TIP] For more CI integration examples and advanced configurations, check out the CI Integration Documentation.

Frequently asked questions

What is Codspeed MCP Server?

CodSpeed is the all-in-one performance testing toolkit. Optimize code performance and catch regressions early.

How do I install Codspeed MCP Server in Claude Desktop, Cursor, or VS Code?

Pick your client in the Install section on this page and copy the generated config into the client's config file. Step-by-step guides: Claude Desktop, Cursor, and VS Code. Codspeed MCP Server connects to the remote endpoint https://mcp.codspeed.io/mcp, so there is nothing to install locally.

Is Codspeed MCP Server free and open source?

Yes. Codspeed MCP Server is released under the Apache-2.0 license, an OSI-approved open-source license, so you can use, modify, and self-host it under those terms.

Does Codspeed MCP Server support remote (HTTP) connections?

Yes. Codspeed MCP Server offers a hosted endpoint over Streamable HTTP, so HTTP-capable clients can connect to it without running anything locally.

How is Codspeed MCP Server's trust score calculated?

Codspeed MCP Server scores 49 out of 100 (Fair). The score adds six capped public signals: registry status, maintenance, popularity, license, documentation, and security. Nobody can pay for points. Read the methodology for the full formula.

Reviews

No reviews yet

—Be the first to review

5 star0 reviews at 5 stars
4 star0 reviews at 4 stars
3 star0 reviews at 3 stars
2 star0 reviews at 2 stars
1 star0 reviews at 1 stars

No published reviews yet. Used it? Tell the next person how it went.

Add badge to your README

Paste either snippet into the repository README. The image links to this listing.

Listed on MCPpedia

Top 5 MCP servers

Daily or weekly. Confirm by email, unsubscribe any time.

How often

Manage this listing

Claim this server