Korzen

Blog

Bot protection for MCP servers: guard the accounts, not the calls

Every call to an MCP server comes from a program, so a bot check on the calls is no help. Where abuse starts instead, and what guards the calls.

An MCP server is made to be called by programs: Claude, ChatGPT, Cursor, an agent framework, a script. Every call to it is automated by definition. A bot check on the calls themselves would call every one of them a bot, which is true and of no use. Yet MCP servers are abused, and the abuse costs money: each tool call spends your API quota, your compute or a model's tokens.

Where the abuse starts

Abuse through an MCP server rarely starts at the server. It starts where a program gets the right to call it:

  • Farmed free accounts. A free plan that comes with an MCP key or a monthly quota of calls is claimed again and again, one fresh account at a time, until the abuser has the quota of a paying team.
  • Stuffed logins. Leaked passwords tried on your sign-in, and on the sign-in page of your OAuth flow, to take an account that already holds a token, paid credits or private data.
  • Keys made in bulk. The page where a key is created, driven by a script to make many keys for one account or for many.
  • Resold access. Accounts and keys made in bulk and sold, or put behind a proxy that serves your tools to others under your free plan.

Where to ask

Each of these is a page a person is meant to use in a browser. That is where Bot Protection belongs: your server asks before the action and acts on the class it gets back.

  • Sign-up: refuse bot; for unknown with a high bot_score, create the account with no free quota until the email is verified or a card is added. See free trial abuse.
  • Login, and the OAuth sign-in: the page a person sees when an assistant asks to connect. Ask before you sign the person in; ask for a second factor or a passkey for unknown with a high bot_score. See credential stuffing at the login.
  • The consent page: where the person approves the client. Ask before you issue its token.
  • Creating a key: ask before a new MCP key or API key is made.

Start in monitor mode: you see what block mode would do before it does anything.

What guards the calls

Once a program holds a token, its calls are guarded by what you know of the token, not by a bot check. These are your server's, or your gateway's, not Bot Protection's:

  • A token or key per account, scoped to what the person approved, and revoked when it is misused.
  • Quotas and rate limits per key, never per address: agents run in the cloud, and many share a few addresses.
  • A cost per call when tools differ in price, so the quota counts what each call spends.

The two meet at the account. An account that Bot Protection let in as a person, and that then calls within its quota, is a customer. An account that a script made is caught before it ever holds a key.

Questions

Can Bot Protection check each MCP call?

No. A call to an MCP server comes from a program, with no page, so a check on it would only say what you already know. Bot Protection judges the actions your server asks about, such as a sign-up, a login or a key created, which a person makes in a browser.

Will people who connect an assistant be blocked?

A person who signs in and approves the connection in a browser is judged as any other visitor. Being on a VPN, a mobile network or a shared office connection never makes a person a bot on its own. The calls the assistant then makes are not judged at all.

Does Korzen have an MCP server?

Yes, for reading your own Bot Protection data from an assistant. It is a different thing from this page: see the MCP server, in the docs.