Softwareheritage
liveTechnologySoftware Heritage MCP, the archive of public source code: which repositories have been archived, when each was last successfully captured, and the commits inside them, addressed by SWHID (the intrinsic identifier that keeps resolving after a repository is renamed, moved or deleted).
Tools
origin_searchSearch the Software Heritage archive for archived origins (repository URLs) whose URL matches a substring or pattern. Returns each matching origin with its visit count and the date it was last capture
No parameters required.
Try it
origin_statusReport whether one repository URL is archived, and as of when. Returns the most recent visit that produced a usable snapshot: the visit date, the snapshot id, and the visit type (git, hg, svn, npm, py
No parameters required.
Try it
origin_visitsList the archive's visit history for one repository URL, newest first: when each capture ran, what it produced, and whether it succeeded ("full"), partially succeeded, or failed ("not_found", the orig
No parameters required.
Try it
revisionFetch one archived commit by its Software Heritage revision id (the 40-hex id, which for a git repository is the git commit sha). Returns the commit message, author and committer with their dates, the
No parameters required.
Try it
snapshotFetch one archived snapshot by its id (the 40-hex id that origin_status returns): the list of branches and tags the repository had at that capture, each with the id and type of what it points at (revi
No parameters required.
Try it
Test with curl
The gateway speaks JSON-RPC 2.0 over HTTP POST. You can test any pack directly from the terminal.
curl -X POST https://gateway.pipeworx.io/softwareheritage/mcp \
-H "Content-Type: application/json" \
-d '{"jsonrpc":"2.0","id":1,"method":"tools/list"}'curl -X POST https://gateway.pipeworx.io/softwareheritage/mcp \
-H "Content-Type: application/json" \
-d '{"jsonrpc":"2.0","id":2,"method":"tools/call","params":{"name":"origin_search","arguments":{}}}'Use with the SDK
Install @pipeworx/sdk to call tools from any TypeScript/Node project.
import { Pipeworx } from '@pipeworx/sdk';
const px = new Pipeworx();
const result = await px.call("origin_search", {});// Or ask in plain English:
const answer = await px.ask("software heritage mcp, the archive of public source code: which repositories have been archived, when each was last successfully captured, and the commits inside them, addressed by swhid (the intrinsic identifier that keeps resolving after a repository is renamed, moved or deleted)");