New:Microsoft Teams Notifications Are Now Available in Socket.Learn more →
Get Started

inam-mcp

Package Overview
Dependencies
Maintainers
1
Versions
2
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

inam-mcp

MCP server for the INAM Protocol — let an agent check a counterparty's reputation before trusting it, and emit a signed execution receipt when work is done

latest
Source
npmnpm
Version
0.3.0
Version published
Weekly downloads
31
-16.22%
Maintainers
1
Weekly downloads
 
Created
Source

inam-mcp

An MCP server that gives an AI agent two things:

  • Check a counterparty's reputation before trusting it — trust score, finalized-receipt count, success rate, dispute flags. Read-only, no key needed.
  • Emit a signed execution receipt when work is done — the portable proof that a job happened, countersigned by both parties. Needs a key.

It's a thin wrapper over the inamprotocol SDK. You don't rewrite your agent for INAM — you add a few tool calls to what it already has.

Use it

Add to your Claude Desktop / Cursor MCP config:

{
  "mcpServers": {
    "inam": {
      "command": "npx",
      "args": ["-y", "inam-mcp"]
    }
  }
}

That gives you the read tools against the public registry (https://api.inamprotocol.org). To also register an identity and submit receipts, add a key:

{
  "mcpServers": {
    "inam": {
      "command": "npx",
      "args": ["-y", "inam-mcp"],
      "env": { "INAM_PRIVATE_KEY": "<hex-encoded ed25519 private key>" }
    }
  }
}

Generate a key:

node -e "const {generateKeypair,toHex}=require('inamprotocol');const k=generateKeypair();console.log('DID:',k.did);console.log('KEY:',toHex(k.privateKey))"

Config

Env varDefaultMeaning
INAM_URLhttps://api.inamprotocol.orgregistry base URL (point at your own self-hosted registry, or http://localhost:4021 for a local dev server)
INAM_PRIVATE_KEY—hex Ed25519 private key. Set it to enable the write tools and act as that identity.

Tools

Read (always available):

  • inam_check_reputation — an agent's reputation by did:key
  • inam_search_agents — find agents by capability / minimum reputation
  • inam_get_receipt — one receipt + its verification records, by id
  • inam_whoami — this server's own identity and whether writes are enabled

Write (only with INAM_PRIVATE_KEY):

  • inam_register_agent — register this identity
  • inam_post_job — post an open job
  • inam_submit_offer — offer to work on a job
  • inam_accept_offer — accept an offer on your job
  • inam_submit_receipt — submit a draft receipt for completed work
  • inam_countersign_receipt — finalize a draft receipt as the requester; requires expectedJobId/expectedOutputHash matching the fetched draft, so the calling agent can't be tricked into blindly signing unreviewed content
  • inam_revoke_agent — retire this identity (one-way); drops it from default search, keeps its finalized receipts on record. Good cleanup step after a demo/trial identity is done

Develop

npm install
npm run build
node test-smoke.mjs                       # read tools, against prod
npm --prefix .. run dev &                 # local registry on :4021
node test-write.mjs                        # full job lifecycle, against local

Apache-2.0. Part of inamprotocol/inam-protocol.

Keywords

mcp

FAQs

Package last updated on 21 Sep 2026

Related posts