{"slug": "let-claude-or-chatgpt-rent-your-servers-an-mcp-server-with-oauth-and-a-spending", "title": "Let Claude or ChatGPT rent your servers: an MCP server with OAuth and a spending cap", "summary": "Neckrez, a crypto-paid hosting service, launched a remote MCP server at neckrez.tech/mcp that uses OAuth 2.1 with PKCE and dynamic client registration, letting AI assistants like Claude, ChatGPT and Claude Code sign in without pasting API keys into chat. The server offers five scoped permissions, short-lived one-hour tokens, and an optional hourly spending cap that limits what an agent can spend on paid resources. The server code is open-sourced on GitHub.", "body_md": "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.\n\nThe 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.\n\nWe wanted three things instead:\n\nThe 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.\n\nThe permissions are the same five that API keys have:\n\nRead 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.\n\nTokens 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.\n\n**Claude Code:**\n\n```\nclaude mcp add --transport http neckrez https://neckrez.tech/mcp\n```\n\nThen run `/mcp` in a session and sign in.\n\n**Claude (claude.ai, Desktop, mobile):** Settings -> Connectors -> Add custom connector, name it Neckrez, paste `https://neckrez.tech/mcp`, press Connect.\n\n**ChatGPT:** Settings -> Apps -> Advanced settings, turn on developer mode, create an app with that URL and OAuth as the authentication, then sign in.\n\nIf your client cannot do OAuth, use an API key against `https://neckrez.tech/api/mcp` instead. Keys carry the same five permissions.\n\nStart with read only. Ask:\n\nWhich of my servers are running, and how many days does my balance last at the current hourly rate?\n\nWhen you trust it, give it deploy with a small cap, for example $1 per hour, and ask:\n\nCreate the cheapest Ubuntu server in Frankfurt and tell me its IP.\n\nThe server comes back in about a minute with root access and a dedicated IPv4. Hourly billing means a test costs cents.\n\nNeckrez 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.\n\nThe [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).\n\nIf you try it and something is unclear, tell me in the comments.", "url": "https://wpnews.pro/news/let-claude-or-chatgpt-rent-your-servers-an-mcp-server-with-oauth-and-a-spending", "canonical_source": "https://dev.to/sauberr/let-claude-or-chatgpt-rent-your-servers-an-mcp-server-with-oauth-and-a-spending-cap-26i4", "published_at": "2026-11-28 11:07:15+00:00", "updated_at": "2026-11-28 11:13:56.111171+00:00", "lang": "en", "topics": ["ai-agents", "agent-protocols", "ai-tools", "ai-infrastructure"], "entities": ["Neckrez", "Claude", "ChatGPT", "Claude Code", "Anthropic", "OpenAI", "Sauberr"], "also_reported_by": [], "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.", "recommendation": null, "alternates": {"html": "https://wpnews.pro/news/let-claude-or-chatgpt-rent-your-servers-an-mcp-server-with-oauth-and-a-spending", "markdown": "https://wpnews.pro/news/let-claude-or-chatgpt-rent-your-servers-an-mcp-server-with-oauth-and-a-spending.md", "text": "https://wpnews.pro/news/let-claude-or-chatgpt-rent-your-servers-an-mcp-server-with-oauth-and-a-spending.txt", "jsonld": "https://wpnews.pro/news/let-claude-or-chatgpt-rent-your-servers-an-mcp-server-with-oauth-and-a-spending.jsonld"}}