# Let Claude or ChatGPT rent your servers: an MCP server with OAuth and a spending cap

> Source: <https://dev.to/sauberr/let-claude-or-chatgpt-rent-your-servers-an-mcp-server-with-oauth-and-a-spending-cap-26i4>
> Published: 2026-11-28 11:07:15+00:00

**Key takeaway:** Neckrez's MCP server uses OAuth 2.1 with PKCE, dynamic client registration, one-hour tokens and a per-account hourly spending cap so agents can deploy servers without long-lived API keys.

I run [Neckrez](https://neckrez.tech/), 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 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:

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 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.

**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.

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.

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](https://neckrez.tech/docs/mcp) have the full tool list, and the [API docs](https://neckrez.tech/docs/api) describe the permissions. The server code is open at [github.com/Sauberr/neckrez-mcp](https://github.com/Sauberr/neckrez-mcp).

If you try it and something is unclear, tell me in the comments.
