OpenSend has an MCP server built in. Give Gemini CLI the address and a key, and the methods of the API become tools it can call.
What to paste
119 tools
Each one is a method of the API.
One address
/v1/mcp, on your own API.
A key, no sign-in
It goes in the Authorization header.
Plain JSON
One request in, one answer out.
Make a key, give Gemini CLI the address, and ask.
Each of these runs one tool. The name on a card is the tool Gemini CLI calls.
domains_create
Add updates.example.com and tell me which DNS records to publish.
Returns the domain with its records.
Add domainemails_send
Send a test email from hello@mail.example.com to me.
Returns the id of the queued email.
Send emailemails_list
Which emails bounced this week?
Returns the emails with that status.
List emailslogs_list
Show the API requests that failed today and what was wrong.
Returns each failed request with its error.
List logswebhooks_create
Post bounces and complaints to https://example.com/hooks/mail.
Returns the webhook and its signing secret, once.
Add webhookcontacts_create
Add grace@example.com to the Beta testers audience.
Returns the contact, in that audience.
Add contactGemini CLI asks for its tools and gets the ones its key may use, and no others. A call the key may not make is refused.
Sending key
Sees 8 of the 119 tools: enough to send.
One domain
A sending key can be held to a single domain.
Revoke
Remove the key and Gemini CLI is cut off.
Logs
Every tool call is listed with its name and its error.
curl -X POST "$OPENSEND_API_URL/v1/mcp" \ -H "Authorization: Bearer $OPENSEND_API_KEY" \ -H "Content-Type: application/json" \ -d '{"jsonrpc":"2.0","id":1,"method":"tools/call","params":{"name":"domains_create","arguments":{"name":"updates.example.com"},"_meta":{"opensend/check":true}}}'These steps follow the documentation of Gemini CLI as it read on 28 Nov 2026. If a label has moved since, their page is right.
httpUrl, not url
httpUrl is the setting for a server that speaks HTTP. url is for SSE.
The key is written out
The documentation of Gemini CLI does not say that a variable is filled in inside headers, so the file holds the key itself. Keep it out of version control.
What people ask before they connect Gemini CLI.
No. The key is the credential. It goes in the Authorization header as a Bearer token, like on every other request, and there is no OAuth step.
Yes. Give it a key of its own. A sending key sees only the few tools a sender needs, and it can be held to one domain. A full key sees every tool.
In Logs. Every request a key makes is listed, and a tool call shows the name of the tool and, when it failed, the reason. Filter the list by the key you gave Gemini CLI.
Yes. A tool call can be sent as a check. The server makes sure the key may use the tool and that the input is valid, runs nothing, and answers.
No. Closing a workspace is not a tool, so a mistake of a model cannot wipe one.
Yes. Gemini CLI runs on your machine, so any address it can reach works, localhost included.
Create a key and send, or clone the repository and run it yourself.