@defarm/mcp
Click on "Install Server".
Wait a few minutes for the server to deploy. Once ready, it will show a "Started" state.
In the chat, type
@followed by the MCP server name and your instructions, e.g., "@@defarm/mcpVerify the provenance seal on this shipment."
That's it! The server will respond to your query, and you can continue using it as needed.
Here is a step-by-step guide with screenshots.
@defarm/mcp
MCP server for DeFarm — lets an AI agent seal, open, verify and ingest
verifiable agri-traceability data by description, no code required. Built on
@defarm/sdk: sealed fields are encrypted
client-side and the DeFarm server is structurally blind to them.
Open source (MIT) for the same reason the SDK is: don't trust DeFarm — audit the client.
Security posture (the part to read first)
Credentials never flow through the model. Auth is server configuration (environment variables below). There is no login tool; no tool accepts a password, API key, or key material — and the test suite enforces that.
Private keys never leave the local keystore. No tool returns private material; the agent sees ids and fingerprints only.
Safe defaults are inherited from the SDK: sealing is private and self-addressed unless explicitly addressed; the crypto suite is fixed, never a choice.
Related MCP server: Wallet4Agent MCP Server
Setup
// e.g. Claude Desktop / Claude Code MCP config
{
"mcpServers": {
"defarm": {
"command": "npx",
"args": ["-y", "github:defarm-repo/defarm-mcp"],
"env": {
"DEFARM_GATEWAY": "<your test-environment gateway>",
"DEFARM_EMAIL": "<workspace login>",
"DEFARM_PASSWORD": "<workspace password>",
"DEFARM_API_KEY": "<partner key, only if the agent should ingest>",
"DEFARM_KEYSTORE": "~/.defarm/keys.json"
}
}
}
}Point DEFARM_GATEWAY at a test environment first; production is an explicit decision.
Tools
Tool | What it does |
| user + workspace of the configured credentials |
| generate (locally) + register the workspace key pairs — returns ids/fingerprints only |
| export this workspace's public recipient bundle for out-of-band sharing |
| partner ingestion, with |
| seal a field for addressed recipients — DeFarm stays blind; bindings re-verified |
| decrypt a sealed field locally; authorship re-verified locally |
| public verification (anchor, RFC3161, sealed commitments) — no account needed |
| membership-gated / public reads (uniform 404) |
| resolve by SISBOV/chip/… |
Blocked-on-backend operations (grant, grantLink, revoke — engines#584/#574) are NOT
exposed as tools: an agent should not see tools that always fail.
Development
Dependency: @defarm/sdk via semver (^0.2.0) from npm — the SHA-pin era (and its
"pin follows the latest SDK squash" rule) ended with the 0.2.0 publish, as promised.
npm install
npm test # tool-table contract tests (no network, fake gateway)
npm run build && DEFARM_GATEWAY=... node dist/index.js # stdio serverLicense
This server cannot be installed
Maintenance
Resources
Unclaimed servers have limited discoverability.
Looking for Admin?
If you are the server author, to access and configure the admin panel.
Related MCP Servers
- AlicenseAqualityDmaintenanceEnables AI agents to certify their creations with verifiable, timestamped proof anchored to Bitcoin, and to verify certificates.3MIT
- AlicenseNot gradedqualityDmaintenanceProvides AI agents with a DID-based identity, secure wallet, and cloud KMS-backed signing keys, enabling trusted interactions with persons, companies, and other agents via standards like OIDC4VCI, OIDC4VP, and SD-JWT.Apache 2.0
- FlicenseAqualityCmaintenanceEnables AI agents to discover verifiable DeFi yield opportunities, generate algorithmic portfolio plans, and track cryptographic proof receipts, bridging LLMs with blockchain yield protocols.9
- AlicenseNot gradedqualityAmaintenanceEnables AI agents to query cryptographically verified facts with zero-knowledge proofs, selective disclosure, and tamper-evident provenance.1791Apache 2.0
Related MCP Connectors
Trust infrastructure for AI agents: read a verifiable Trust Rating, claim an identity, earn a badge.
Issue signed receipts for AI agent actions; verify any receipt offline - free, no account.
Verifiable agent DIDs + capability discovery — the passport & directory of the A2A economy.
Latest Blog Posts
- Who's Calling? MCP Hosts Are an Identity Blind Spot (And the Spec Knows It)By Om-Shree-0709 on .mcpAgent IdentityOAuth 2.1
- Your AI Chatbot Just Exposed Your CEO's Salary to an InternBy Om-Shree-0709 on .Agent IdentityMCP SecurityOAuth Delegation
- Why MCP Servers Need Execution Sandboxing (And Why Your Current Stack Isn't Enough)By Om-Shree-0709 on .Agentic AiPrompt InjectionWebAssembly
MCP directory API
We provide all the information about MCP servers via our MCP API.
curl -X GET 'https://glama.ai/api/mcp/v1/servers/defarm-repo/defarm-mcp'
If you have feedback or need assistance with the MCP directory API, please join our Discord server