# CodeSampleX

> CodeSampleX is an open-source MCP server for developer tools. Recorded build results showing which library versions and APIs really run where. It runs locally on your machine and is started by your AI client.

- **Kind:** MCP server
- **Pricing:** Open source
- **Platforms:** CLI, Windows, macOS, Linux, API
- **Website:** https://codesamplex.dev
- **Repository:** https://github.com/r2cuerdame/codesamplex
- **MCP Registry name:** io.github.r2cuerdame/codesamplex
- **Categories:** developer tools
- **Listing updated:** 2026-11-15

## About

CodeSampleX collects what real builds did and shows where an API worked or broke, by package version, runtime and operating system. The site describes it as an execution memory for coding agents: before code is written, the agent can recall whether a given call passed on your versions, rather than relying on documentation alone.

Results are reported as rates over recorded observations, never as a verdict, and a miss is labelled NO_SAFE_MATCH instead of being guessed. Missing failure detail is shown as an evidence gap. It keeps a record of failures and successes side by side, with sanitized failure details and pinned receipts opened only on request.

The csx command line wraps a build or test run so its exit code becomes anonymous evidence, and csx search asks for a sample, for example for axios multipart upload. The installer offers a community mode that syncs in the background or a local-only mode. Code is Apache-2.0 and data is CDLA-Permissive-2.0, with a public REST API for reading without installing.

## Features

- **Compatibility evidence:** Recorded build outcomes by version, runtime and OS.
- **Failures and successes:** Separate records of what broke and what passed.
- **Sample search:** Ask csx search for a verified sample for a package.
- **Build wrapping:** csx run turns a build's exit code into anonymous evidence.
- **Local-only mode:** Disables automatic network access if you prefer.

## Good for

- Check an API works on your exact library version
- Find breaking boundaries across runtimes and platforms
- Give a coding agent verified facts before it writes code
- Contribute build results to a shared compatibility map

## Install

### Claude Code (Terminal)

```sh
claude mcp add codesamplex -- npx -y https://github.com/r2cuerdame/CodeSampleX/releases/download/v0.2.26/codesamplex-mcp.mcpb
```

### Claude Desktop (claude_desktop_config.json)

```json
{
  "mcpServers": {
    "codesamplex": {
      "command": "npx",
      "args": [
        "-y",
        "https://github.com/r2cuerdame/CodeSampleX/releases/download/v0.2.26/codesamplex-mcp.mcpb"
      ]
    }
  }
}
```

### Cursor (~/.cursor/mcp.json)

```json
{
  "mcpServers": {
    "codesamplex": {
      "command": "npx",
      "args": [
        "-y",
        "https://github.com/r2cuerdame/CodeSampleX/releases/download/v0.2.26/codesamplex-mcp.mcpb"
      ]
    }
  }
}
```

### VS Code (.vscode/mcp.json)

```json
{
  "servers": {
    "codesamplex": {
      "type": "stdio",
      "command": "npx",
      "args": [
        "-y",
        "https://github.com/r2cuerdame/CodeSampleX/releases/download/v0.2.26/codesamplex-mcp.mcpb"
      ]
    }
  }
}
```

### Windsurf (~/.codeium/windsurf/mcp_config.json)

```json
{
  "mcpServers": {
    "codesamplex": {
      "command": "npx",
      "args": [
        "-y",
        "https://github.com/r2cuerdame/CodeSampleX/releases/download/v0.2.26/codesamplex-mcp.mcpb"
      ]
    }
  }
}
```

### Other clients (your client's MCP settings (most use this shape))

```json
{
  "mcpServers": {
    "codesamplex": {
      "command": "npx",
      "args": [
        "-y",
        "https://github.com/r2cuerdame/CodeSampleX/releases/download/v0.2.26/codesamplex-mcp.mcpb"
      ]
    }
  }
}
```

## FAQ

### What does NO_SAFE_MATCH mean?

No verified match was found. It does not mean installation failed.

### Can I use it without installing?

Yes. The README points to a public REST API for reading the network.

### What licences apply?

Code is Apache-2.0 and data is CDLA-Permissive-2.0.

### Can I stay offline?

Choose local-only mode at install, which disables automatic network access.

### Is CodeSampleX free?

Yes. CodeSampleX is open source, so you can use and self-host it for free.

### How do I add CodeSampleX to Claude Code?

Run this command in your terminal: claude mcp add codesamplex -- npx -y https://github.com/r2cuerdame/CodeSampleX/releases/download/v0.2.26/codesamplex-mcp.mcpb

### What are the best alternatives to CodeSampleX?

The closest alternatives to CodeSampleX are REA, Codebase Memory, GitHub, Serena MCP: the IDE for your agent and XERJ.

## Alternatives

- [REA](https://ai-powered.com/mcp/rea): REA is an open-source MCP server for developer tools.
- [Codebase Memory](https://ai-powered.com/mcp/codebase-memory): Codebase Memory is an open-source MCP server for knowledge and memory.
- [GitHub](https://ai-powered.com/mcp/github-2): GitHub is an open-source MCP server for developer tools.
- [Serena MCP: the IDE for your agent](https://ai-powered.com/mcp/serena-mcp-the-ide-for-your-agent): Serena MCP: the IDE for your agent is an open-source MCP server for developer tools.
- [XERJ](https://ai-powered.com/mcp/xerj): XERJ is an open-source MCP server for knowledge and memory.
- [Ouroboros](https://ai-powered.com/mcp/ouroboros): Ouroboros is an open-source MCP server for developer tools.
- [Claude Code Ultimate Guide](https://ai-powered.com/mcp/claude-code-ultimate-guide): Claude Code Ultimate Guide is an open-source MCP server for ai models and llm tooling.
- [Concord MCP](https://ai-powered.com/mcp/concord-mcp): Concord MCP is a freemium MCP server for developer tools.

---
Source: https://ai-powered.com/mcp/codesamplex
