MCP.Market

Lockspec MCP server

by LockSpec·io.github.LockSpec/lockspec·v1.0.1

MCP server giving AI coding agents version-pinned API context from your OpenAPI specs.

B80/100grade B
What users say
No reviews yet
Be the first
Safety scan
B80/100

full report

Adoption
New

0 stars44 downloads/wk

Reviews

Write one

Nobody has reviewed Lockspec yet.

If you have run it, two minutes of your experience saves the next person an afternoon.

Lockspec tools (9, 1 write)

write = sends, deletes, buys or posts

Read from the package source without running it. The installed server may list more.

  • activate_version

    Set the active version for a spec (the manual cutover lever).

  • diff_versions

    Structural diff of two spec versions with breaking/non-breaking classification.

  • find_endpoint

    Lexical/structured search for operations; returns compact ranked rows.

  • find_type

    Lexical/structured search over named schemas/components; compact ranked rows.

  • get_signature

    Exact, complete contract for one operation: params, body, responses, required fields, types.

  • list_specs

    List loaded specs with their versions, active version, and index stats.

  • load_spec

    Ingest, normalize, index, and (by default) activate an OpenAPI spec version.

  • remove_specwrite action

    Remove a spec version (or the whole spec); requires confirm:true.

  • validate_call

    Deterministic structural validation of a draft request against the pinned spec:

Public scan report

scanner v0.1.9 · 2026-09-27 · same rubric, same numbers if you re-run it

no findings
  • Code scan77 source files scanned25/25
  • –Live reliabilityno gateway calls yet and no remote to proben/a
  • –Tool poisoningtools not inspected (local package is not executed); not countedn/a
  • Auth qualitylocal package, no credentials required12/15
  • Maintenancelast push 108 days ago8/15
  • Maintainer identityregistry namespace matches repository owner7/10
Overall 80/100. Components that don't apply are left out of the denominator. Any critical finding is an F.RubricAppeal a findingJSON

How Lockspec compares

Against every graded MCP server, from our own scans and uptime checks. Updated after each scan run.

Safety score
80/100
higher than 60% of 48,255 servers
Tools
9
the typical server has 7
Tools that change things
11%
typical: 0%. Fewer write tools means less an agent can break
Downloads a week
44
more than 36% of 12,191 servers with a package

What its tools let an agent do: 8 read · 1 delete

Install Lockspec in Claude Code, Cursor or VS Code

Runs npx -y lockspec on your machine. Read the scan report first; the gateway never runs local packages.

claude mcp add lockspec -- npx -y lockspec
Add to Cursor

What the publisher says

From the Lockspec repository's README, as published. We do not edit it. Read it on GitHub

LockSpec

Your AI coding agent writes code that calls your API, but it guesses parts of the contract that it can't see and doesn't know about. It invents field names, calls paths that don't exist, and gets the types wrong. LockSpec is an MCP server that gives the agent the real contract from your OpenAPI spec. When the agent needs an endpoint signature or a type, it gets the exact shape your API accepts.

Most API context tools for agents cover public libraries. LockSpec is for any API that you have a spec for, regardless of whether it's private, internal, or a third party's.

v1 supports OpenAPI 3.0 and 3.1.

Why

You might ask why the agent can't just read the spec from your repo. This works fine in many cases. But if you're working with a spec that the agent can't access (because it's not in the repo, or because it's too large to fit into context), the agent can't get accurate information about the contract it needs to fulfill. You might also want the agent pinned to a specific spec version you choose, not whatever is currently the latest version in the repo. LockSpec loads the spec you provide, indexes it, and serves answers from a pinned snapshot that you control. It returns only the slice that the agent asked for, so an agent can ground the code it writes in the actual contract rather than hallucinating it.

LockSpec can also help agents prevent API version skew. Suppose prod runs v1, a few services already moved to v2, and both are live. You want the agent to write against the right one the first time around. Writing against the wrong one breaks tests, or worse, ships a broken call. With LockSpec, you can load multiple versions of the same API spec at once. You control which one the agent uses. When more than one version of a spec is loaded, the tools that feed code-writing stop before writing code to ask which version should be used. The agent commits to a version on purpose instead of using the one that it saw most recently.

When the agent has a draft request, validate_call checks it against the pinned spec and reports any structural problems it finds. It's a check that catches structural mistakes in the draft before they fail tests and burn extra turns.

Install

Requires Node 22 or newer. Your MCP client runs it through npx:

npx lockspec

From source

git clone https://github.com/LockSpec/lockspec.git
cd lockspec
npm install
npm run build      # compiles TypeScript to dist/
node dist/index.js # starts the server over stdio

Connect your agent

LockSpec runs locally over stdio. Point your MCP client at the lockspec command:

{
  "mcpServers": {
    "lockspec": { "command": "npx", "args": ["lockspec"] }
  }
}
  • Claude Code: claude mcp add lockspec -- npx lockspec
  • Gemini CLI: gemini mcp add lockspec npx lockspec
  • Codex: codex mcp add lockspec -- npx lockspec
  • Cursor: add the block above to .cursor/mcp.json (project) or ~/.cursor/mcp.json (global).
  • Cline / Windsurf: add the block above to the client's MCP settings (clinemcpsettings.json for Cline).

To run from a source checkout instead of npm, point command/args at the built entrypoint:

{
  "mcpServers": {
    "lockspec": { "command": "node", "args": ["/absolute/path/to/lockspec/dist/index.js"] }
  }
}

The tools

Shortened. The full README is on GitHub.

Nothing above is checked by us. What we check is on the safety report.

Lockspec: common questions

Is Lockspec MCP server safe?
Mostly: it is graded B (80/100). Read the Lockspec safety report
How do I install Lockspec?
It runs on your machine. Copy the Claude Code, Cursor, VS Code or Claude Desktop config from the install section.
Does Lockspec need an API key?
Not as far as the registry entry and our scan can tell: no credentials are declared or required.
Is Lockspec maintained?
The last commit was 146 days ago (2026-06-10). The latest release is v1.0.1.
How does Lockspec compare with other MCP servers?
safety score 80/100 (higher than 60% of 48,255 servers); tools 9 (the typical server has 7); tools that change things 11% (typical: 0%. Fewer write tools means less an agent can break). Full comparison.