
CodeSampleX
Recorded build results showing which library versions and APIs really run where
- Pricing
- Open source
- Platforms
- CLI, Windows, macOS
- Runs
- Locally
- Version
- 0.2.26
- Listing updated
- 2 days ago
About CodeSampleX
CodeSampleX is an open-source MCP server for developer tools. It runs locally on your machine and is started by your AI client.
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.
Install
Run in a terminal
claude mcp add codesamplex -- npx -y https://github.com/r2cuerdame/CodeSampleX/releases/download/v0.2.26/codesamplex-mcp.mcpbAdd to claude_desktop_config.json
{
"mcpServers": {
"codesamplex": {
"command": "npx",
"args": [
"-y",
"https://github.com/r2cuerdame/CodeSampleX/releases/download/v0.2.26/codesamplex-mcp.mcpb"
]
}
}
}Add to ~/.cursor/mcp.json
{
"mcpServers": {
"codesamplex": {
"command": "npx",
"args": [
"-y",
"https://github.com/r2cuerdame/CodeSampleX/releases/download/v0.2.26/codesamplex-mcp.mcpb"
]
}
}
}Add to .vscode/mcp.json
{
"servers": {
"codesamplex": {
"type": "stdio",
"command": "npx",
"args": [
"-y",
"https://github.com/r2cuerdame/CodeSampleX/releases/download/v0.2.26/codesamplex-mcp.mcpb"
]
}
}
}Add to ~/.codeium/windsurf/mcp_config.json
{
"mcpServers": {
"codesamplex": {
"command": "npx",
"args": [
"-y",
"https://github.com/r2cuerdame/CodeSampleX/releases/download/v0.2.26/codesamplex-mcp.mcpb"
]
}
}
}Add to your client's MCP settings (most use this shape)
{
"mcpServers": {
"codesamplex": {
"command": "npx",
"args": [
"-y",
"https://github.com/r2cuerdame/CodeSampleX/releases/download/v0.2.26/codesamplex-mcp.mcpb"
]
}
}
}What it does
- 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
Pricing
Open source
Free; Apache-2.0 code, CDLA-Permissive-2.0 data
Prices change. Check codesamplex.dev before you buy.
CodeSampleX 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 to CodeSampleX

REA
MCP serverCLI and MCP server that lets coding agents reverse engineer apps and binaries
Runs locally- Open source
- 464K GitHub stars
- Developer tools

Codebase Memory
MCP serverLocal MCP server that builds a code knowledge graph for AI coding agents
Runs locally- Open source
- 48.7K GitHub stars
- Knowledge and memory

GitHub
MCP serverOfficial MCP server connecting AI assistants to GitHub repos, issues and workflows
Not checked yet- Remote
- Open source
- 34.5K GitHub stars
- Developer tools

Serena MCP: the IDE for your agent
MCP serverMCP toolkit giving coding agents symbol-level code retrieval and editing
Runs locally- Open source
- 31.5K GitHub stars
- Developer tools

XERJ
MCP serverLocal search engine for AI agents with cited answers over your code and docs
Runs locally- Open source
- 19.2K GitHub stars
- Knowledge and memory

Ouroboros
MCP serverSpec-first layer that pins requirements and verifies results of AI coding agent work
Runs locally- Open source
- 6.4K GitHub stars
- Developer tools