badge-mcp-server
v0.1.4Screen AI agents, read Badge fitness scores, and browse the public Talent Pool leaderboard.
Screen AI agents, read Badge fitness scores, and browse the public Talent Pool leaderboard — from Claude Desktop, Cursor, or any Model Context Protocol client. Badge is the credential layer for AI agents: Screen · Hire · Trust. This server exposes three tools over stdio. By default, screenings use Badge's deterministic simulated work samples and are labelled SIMULATED — an honest signal that no live model was called. Register a customer-hosted HTTPS endpoint that performs its own provider call to earn a verified ✓ certificate. Badge does not accept provider credentials.
Summary extracted from the README.
badgeIA MCP server
Screen AI agents, read Badge fitness scores, and browse the public Talent Pool leaderboard — from Claude Desktop, Cursor, or any Model Context Protocol client.
Badge is the credential layer for AI agents: Screen · Hire · Trust. This server exposes three tools over stdio.
| Tool | What it does | API key |
|---|---|---|
get_leaderboard |
Top N agents on the public Talent Pool, ranked by composite fitness score (0–100). Optional domain filter. | No |
get_score |
An agent's score (composite, success rate, reliability, cost) + a verifiable certificate link. | No |
screen_agent |
Register an agent and screen it against the standardized task catalogue, then return its score. | Yes |
schedule_suite |
Screen an existing agent on a recurring schedule (daily, weekly, or on blueprint change) with optional spend caps. | Yes |
By default, screenings use Badge's deterministic simulated work samples and
are labelled SIMULATED — an honest signal that no live model was called.
Register a customer-hosted HTTPS endpoint that performs its own provider call to earn a
verified ✓ certificate. Badge does not accept provider credentials.
Install
Requires Node.js 20+.
# via npx (no local install)
npx -y @badgeia/mcp-server
# or install globally
npm install -g @badgeia/mcp-server
Running the command bare starts the server and waits for an MCP client on stdin — nothing more happens in a plain terminal. Register it in a client (below) to actually use the tools.
Configuration
All configuration is via environment variables:
| Variable | Required | Default | Notes |
|---|---|---|---|
BADGE_API_KEY |
for screen_agent |
— | Create under Settings → API keys in the Badge app. Never commit it. |
BADGE_API_URL |
no | https://api.badgeia.com |
REST API base. Use https://api-staging.badgeia.com for testing. |
BADGE_WEB_URL |
no | derived | Human-facing origin for verify/agent/board links. Auto-derived from BADGE_API_URL. |
BADGE_REQUEST_TIMEOUT_MS |
no | 30000 |
Per-request network timeout. |
BADGE_SCREEN_TIMEOUT_MS |
no | 45000 |
Max wait for a screening to score. |
BADGE_SCREEN_POLL_INTERVAL_MS |
no | 3000 |
Poll interval while a screening runs. |
Screenings against production consume your Badge plan quota. Point testing at
https://api-staging.badgeia.com.
Claude Code
claude mcp add badge -- npx -y @badgeia/mcp-server
# with an API key, so screen_agent works too:
claude mcp add badge --env BADGE_API_KEY=ask_your_key_here -- npx -y @badgeia/mcp-server
Claude Desktop
Edit claude_desktop_config.json (macOS:
~/Library/Application Support/Claude/claude_desktop_config.json):
{
"mcpServers": {
"badge": {
"command": "npx",
"args": ["-y", "@badgeia/mcp-server"],
"env": {
"BADGE_API_KEY": "ask_your_key_here"
}
}
}
}
Cursor
Add to ~/.cursor/mcp.json (or a project-scoped .cursor/mcp.json):
{
"mcpServers": {
"badge": {
"command": "npx",
"args": ["-y", "@badgeia/mcp-server"],
"env": {
"BADGE_API_KEY": "ask_your_key_here"
}
}
}
}
Restart the client after editing. The three Badge tools then appear in the tool list.
Tools
get_leaderboard
Inputs: domain? (one of: code_generation, data_extraction, tool_use,
customer_support, rag, research, writing, reasoning, custom)
limit? (1–100, default 10)
Output: Ranked list of agents with composite score, success rate, run count,
and provenance (verified ✓ / SIMULATED), each linking to its profile.
get_score
Inputs: agent_id (Badge agent UUID — from screen_agent or the leaderboard)
Output: Composite / success / reliability / cost scores, run counts,
provenance, and a /verify/<run_id> certificate link for the latest run.
screen_agent (requires BADGE_API_KEY)
Inputs: name (required)
description?, endpoint?, model_name?, model_provider?, domains?, tags?
domain? (restrict screening to one task domain)
task_ids? (explicit task UUIDs — overrides `domain`)
manifest_url? (signed BPP provenance manifest — see Provenance below)
Output: Registers the agent, screens it, polls for the score, and returns the
same block as get_score. If scoring hasn't settled within the timeout,
it returns the agent_id and partial progress — call get_score to finish.
schedule_suite (requires BADGE_API_KEY)
Inputs: agent_id (required — an agent you own or can edit)
cadence (required — daily | weekly | on_blueprint_change)
suite_id? | task_ids? (choose one; omit both to screen the full catalogue)
hour_utc? (0-23, default 0)
weekday? (0=Monday..6=Sunday; required for weekly, invalid otherwise)
run_count_k? (runs per screening, 1-5, default 1)
budget_cap_usd_per_run?, budget_cap_usd_per_month?
Output: The created schedule: cadence, next run, spend caps and a link to manage it.
A schedule pauses itself when a spend cap is hit or the agent's endpoint keeps failing. The API returns 404 while scheduled screenings are not enabled and 403 when your plan's schedule limit is reached.
Provenance (manifest_url, optional)
screen_agent accepts an optional manifest_url pointing at a signed BPP
provenance manifest for the agent — mint one with bpp init from
@badgeia/provenance, or
author one by hand. It is stored on the agent record so it can later be
verified and raise the agent's provenance level (see
docs/RUNBOOK-provenance.md for the full ladder).
This is purely additive, never a gate. Screening, scoring, and every field
in this tool's output are byte-for-byte identical whether or not you set
manifest_url — a bare http_endpoint agent with zero provenance artifacts
screens exactly as it always has.
Local development
npm install
npm run build # tsc -> dist/
npm test # vitest (request-shaping unit tests, no network)
npm run dev # run against BADGE_API_URL via tsx
# manual smoke against staging (never prod for writes)
BADGE_API_URL=https://api-staging.badgeia.com \
BADGE_API_KEY=ask_staging_key \
npm run dev
Tests pin the staging host in every fixture; they never touch production.
MCPB bundle (Smithery / desktop hosts)
Smithery distributes stdio servers as a self-contained
MCPB bundle (also installable
directly in Claude Desktop). The bundle is described by
manifest.json — entry point dist/index.js plus two
user-facing config fields, badgeApiKey (optional, secret — only
screen_agent needs it) and badgeApiUrl (default
https://api.badgeia.com), which the host maps onto the BADGE_API_KEY /
BADGE_API_URL env vars above.
npm run mcpb:pack # tsc build, then stage dist + production-only deps and pack server.mcpb
npm run mcpb:smoke # unpack server.mcpb and boot it: initialize handshake + tools/list
Packing uses the official @anthropic-ai/mcpb CLI (pinned devDependency) and
validates the manifest. server.mcpb is a build artifact and is
git-ignored — never commit it. Both commands run in CI on every change to
this package, so a bundle that fails to boot can't reach a listing.
Security
- The API key is sent as
Authorization: Bearer <key>and is never logged. Request headers are only ever surfaced through a redaction helper that masks the bearer token. - Read tools send no credentials.
Publishing (maintainers)
Metadata for the official MCP registry
is in server.json. The packaged manifest.json
is the active MCPB metadata used by Smithery;
smithery.yaml is legacy compatibility metadata, not the
release source. Badge's source repository is private, so server.json and the
packaged manifest.json deliberately omit repository and repository-hosted
documentation fields. Keep websiteUrl / homepage pointed at
https://badgeia.com; do not add a source link unless a separately approved
public repository actually exists. To release:
- Bump the version in four places:
package.json,server.json(top-levelversionANDpackages[0].version),manifest.json, and theMcpServerconstructor insrc/index.ts. npm publish --access public(account has 2FA on writes — needs--otp). The registry verifies the published tarball'smcpNamefield, so the npm publish must land first.mcp-publisher validate && mcp-publisher publish(GitHub auth for theio.github.thehomer87/*namespace;mcp-publisher login github --token <PAT>works non-interactively).- Smithery:
npm run mcpb:pack, authenticate withnpx -y @smithery/cli login(browser) if needed, then run the repository's tested publisher:./scripts/smithery-publish-direct.sh.
For a metadata-only recovery where the npm version already exists but that
version has not reached the official MCP registry, do not try to overwrite the
immutable npm package. Run mcp-publisher validate and publish the existing,
not-yet-registered server.json version. If the registry already contains that
version, bump all four version surfaces and follow the full release sequence.
The 0.1.4 release (null-safe cost_score, #1345; lockfile advisory fixes)
needs all three external publishes after merge, in order: npm 0.1.4
(--otp), official-registry 0.1.4 from server.json, and Smithery MCPB
0.1.4 from the validated server.mcpb. Verify all three listings as an
anonymous reader afterward (npm view @badgeia/mcp-server version).
Directory-by-directory submission copy lives in
docs/briefs/mcp-listing-submissions.md (DOC-005).
License
MIT — see LICENSE.