Before you connect
1
A Nevermined account
Free, at nevermined.app. You never share an API key with OpenCode — the consent cap is the credential.
2
A funded wallet
A paid call draws on a spending cap you approve during connect — a commerce grant: a capped, revocable budget funded from your own wallet, not a key. Fund that wallet first with the asset the service settles in — see Fund your wallet. You approve the cap itself in Approve the spending cap.
Start on sandbox, where you use testnet funds and nothing costs real money, before you point OpenCode at live.
Add the Catalog to OpenCode
1
Add the server to your OpenCode config
Add a remote MCP server to your OpenCode config — the global For live, use
~/.config/opencode/opencode.json, or opencode.json in a project root — pointing at the environment you want. Set the OAuth client id to opencode and leave the secret out — Nevermined accepts public PKCE clients only, so there is no secret to paste:https://mcp.live.nevermined.app/mcp. You don’t need to set a redirect URI — OpenCode’s default loopback callback (http://127.0.0.1:19876/mcp/oauth/callback) is already registered for the opencode client, and Nevermined matches it on any port.2
Sign in
Run
opencode mcp auth nevermined. OpenCode opens Nevermined’s consent page in your browser — see Approve the spending cap.Approve the spending cap
OpenCode opens Nevermined’s consent page when you runopencode mcp auth. It is the one place a human is required.
1
Check who and where
The page shows the Sandbox / Live badge and who is asking. On live, the cap is real money.
2
Set the cap and validity
Set the spending cap (USDC or EURC) and how long the grant is valid for, then Grant access.
Make your first paid call
Ask for something only live data can answer, and name the connector so OpenCode reaches for it rather than answering from memory.1
Browse for free
Ask “list the Nevermined catalog categories” — a free tool call, no sign-in.
2
Ask it to buy
“Buy the service with slug
<slug> through the Nevermined connector and show me the response.” The paid call draws on the cap you approved and returns the merchant’s response.Disconnect
- Revoke the budget (Nevermined side). Open Connections and disconnect OpenCode. The credential stops working on its next call; discovery still works.
- Remove the connector (OpenCode side). Run
opencode mcp logout neverminedto clear the stored tokens (OpenCode keeps them in~/.local/share/opencode/mcp-auth.json), then remove theneverminedentry from themcpblock in youropencode.json.
Next
Using the Catalog from your web assistant
The concept and the other assistants.
Catalog MCP — full reference
Every click path, the consent details, and every refusal code.