@realhandles/mcp
v0.6.0
Published
MCP server to look up and cryptographically verify RealHandles identities.
Maintainers
Readme
@realhandles/mcp
An MCP server that lets an AI agent look up a RealHandles identity and cryptographically verify its signed proof.
The signature check runs locally (via
@realhandles/verify), so whether a
manifest is authentic never depends on trusting realhandles.com. That decision is
the math, done on your side.
Whether an account inside that manifest was ever actually checked is a
different question, and it is not one a signature can answer: platform,
handle and method are whatever the signer typed, so a flawless signature over
{platform: "github", handle: "torvalds", method: "oauth"} is a flawless
signature over a lie. Only the party that performed a verification holds a record
of it, so the verified/claimed split comes from the RealHandles directory, which
intersects the signed manifest against its own proof rows. Both halves are
required and neither is enough alone. Anything the directory does not back is
reported as claimed, including when an older deployment returns no split at all,
in which case the result says so rather than promoting the accounts.
Tools
verify_identity(handle)- resolve a handle (aliases and renames included), verify its signed manifest, and return the accounts split into verified and claimed, the key fingerprint, thedid:key, and the trust score (which counts verified accounts only).check_link(url)- check whether a URL is a mutually confirmed account of a RealHandles identity (for rendering a "verified" badge).
Use it
Hosted (no install)
The server runs as a stateless HTTP endpoint, so most clients just need the URL:
https://mcp.realhandles.com/mcpNothing to install, no account, no key. Under the 2026-07-28 spec there is no session to establish, so a client can call it directly:
curl -X POST https://mcp.realhandles.com/mcp \
-H "Content-Type: application/json" \
-d '{"jsonrpc":"2.0","id":1,"method":"tools/list"}'Local (stdio)
Still supported and unchanged. For Claude Desktop, in
claude_desktop_config.json:
{
"mcpServers": {
"realhandles": {
"command": "npx",
"args": ["-y", "@realhandles/mcp"]
}
}
}Either way, ask things like "verify the RealHandles identity for david" or "is https://example.com a confirmed account of a RealHandles user?"
Both transports serve the same two tools from the same definitions in
src/tools.ts, and the signature check is local to whoever runs it in both
cases. The hosted endpoint reads the directory exactly like the local one does,
so running it yourself does not put you in a weaker position than using ours.
To point it at a different deployment, set REALHANDLES_ORIGIN (defaults to
https://realhandles.com).
Develop
pnpm install
pnpm build
pnpm testTests run on Node's own test runner and Node's own TypeScript stripping, so there
is no test dependency to install. They need Node 22.18 or newer for that; the
engines floor stays at 18 because it describes the published dist, which is
plain JavaScript.
License
MIT
Why the @realhandles/verify range is not a caret
package.json asks for ">=0.10.0 <1.0.0" rather than ^0.10.0, and that is
deliberate.
A caret on a 0.x version does NOT cross a minor: ^0.6.0 will never install
0.7.0. This package has been silently stranded by that twice, and the second
time it went three minors behind before anybody noticed, because nothing breaks
loudly. A manifest carrying a field the pinned verifier does not know still
verifies, since verifySignedManifest checks the signature over the payload
bytes and re-parses without rejecting unknown properties. So a stale pin does not
fail; it just quietly stops being able to SURFACE things the product publishes.
While @realhandles/verify is pre-1.0 and is maintained in lockstep with the
site (it is src/lib/manifest.ts, didkey.ts and handles.ts copied verbatim,
guarded by pnpm check:verify-sync over there), tracking the newest 0.x is what
we actually want. Revisit when it reaches 1.0.
