I run Neckrez, a hosting service where you pay in crypto. This week we put a remote MCP server behind OAuth, so an AI assistant can sign in to your account without an API key ever being pasted into a chat. This post explains how it works, how to connect Claude, ChatGPT or Claude Code, and the limits that keep an agent from running up a bill.
The problem with API keys in agents
The usual way to give an assistant access to a service is to paste an API key into its config. That key often has the same power as your login. If the assistant misreads a request, it can delete a server or spend your balance, and the key stays in a config file or a chat history.
We wanted three things instead:
- No key to paste. The assistant signs in through a page on our site.
- Permissions you pick. The assistant gets only what you tick.
- A spending cap. Even with permission to deploy, it cannot spend more than a limit you set per hour.
How it works
The server address is https://neckrez.tech/mcp. It speaks OAuth 2.1 with PKCE and supports dynamic client registration, so clients that implement the MCP authorization flow register themselves. The first time the assistant needs your account, it opens a Neckrez page. You sign in, tick the permissions, set the cap and press Allow.
The permissions are the same five that API keys have:
- read - list servers, plans, prices, balance
- deploy - create, reinstall and resize servers
- destroy - delete servers
- support - read and write support tickets
- billing - create top-ups
Read is always on. If you tick deploy or billing, a field for an hourly spending cap appears. While the assistant creates paid things, your whole account may cost at most that much per hour.
Tokens are short-lived (an hour) and refresh quietly. A sign-in expires 30 days after its last use. Every connected app is listed under API keys -> Connected apps in the dashboard, where you can change its cap or disconnect it at once.
Connect it
Claude Code:
claude mcp add --transport http neckrez https://neckrez.tech/mcp Then run /mcp in a session and sign in.
Claude (claude.ai, Desktop, mobile): Settings -> Connectors -> Add custom connector, name it Neckrez, paste https://neckrez.tech/mcp, press Connect.
ChatGPT: Settings -> Apps -> Advanced settings, turn on developer mode, create an app with that URL and OAuth as the authentication, then sign in.
If your client cannot do OAuth, use an API key against https://neckrez.tech/api/mcp instead. Keys carry the same five permissions.
What you can ask it
Start with read only. Ask:
Which of my servers are running, and how many days does my balance last at the current hourly rate?
When you trust it, give it deploy with a small cap, for example $1 per hour, and ask:
Create the cheapest Ubuntu server in Frankfurt and tell me its IP.
The server comes back in about a minute with root access and a dedicated IPv4. Hourly billing means a test costs cents.
What I would watch
- Start narrow. Read only first, then add deploy with a low cap.
- Destroy is separate for a reason. Leave it off unless you want the assistant to delete things.
- The cap limits the rate, not your balance. A prepaid balance is the ultimate limit: nothing can spend more than you have topped up.
- It is real money. A server created through the assistant is billed like any other.
Why a prepaid balance helps here
Neckrez is pay-as-you-go from a prepaid crypto balance, with no card on file. That makes it a natural fit for agents: the balance is the hard ceiling, and the hourly cap is a second one on top.
The MCP docs have the full tool list, and the API docs describe the permissions. The server code is open at github.com/Sauberr/neckrez-mcp.
If you try it and something is unclear, tell me in the comments.
