Dev.to Security 🔐 Cybersecurity 👁 0 📖 4 min read

Before you give a remote MCP server your API key: what to check first

Before you add a remote MCP server to your editor, check two things: what happens to your API key, and what the server tells the model about its tools. I'll use AI Checker Humanizer, a hosted MCP server for AI text detec

Before you add a remote MCP server to your editor, check two things: what happens to your API key, and what the server tells the model about its tools. I'll use AI Checker Humanizer, a hosted MCP server for AI text detection and rewriting, as the example. Anyone can list its four tools without a key. Calling them needs a bearer token, and detection and rewriting are billed by the word.

1. Read the tool descriptions the way the model will

Your editor can pass tool names, descriptions and input schemas to the model without showing them to you. A description can tell the model to read a file, call another server's tool or keep something from you.

So read them yourself before you connect. The MCPTry page for this server shows each tool's inputs and runs a security check on the descriptions. It looks for hidden or reordered text, instructions that override the model, requests for credentials as tool arguments, invisible characters and encoded blobs. MCPTry gave this server 100/100 on Nov 26, 2026. The score covers tool metadata only. It can't tell you what the server does with your data.

The scan also lists one note: detect_ai_text isn't marked read-only. A check leaves your files alone, but it can spend credits: this server charges for a check when it returns a verdict. If your client asks before running tools that aren't read-only, leave that prompt on for anything that bills you.

2. Watch for description changes after you connect

A server can change its tool descriptions after you connect. MCPTry records tool changes for the servers it watches and scans each change again. For this one, it shows that humanize_text changed its description and inputs and get_humanize_result changed its description, both on Nov 26, 2026. The new wording separates two cases. To recover an accepted rewrite within 24 hours, resend the same text, options and idempotency_key. You get the same task ID without a second charge. If an English rewrite ends with not_humanized, it costs no credits, and you start a new attempt with a fresh idempotency_key or none.

If you rely on a server, check its change history now and then, and reread the descriptions after a change.

3. Find out what the key can do

Before you paste a key, find answers to three questions:

  • Where does it go? In the Codeberg mirror of the repository, open server.json and look under remotes[].headers. This server expects Authorization: Bearer <API key>, and both isRequired and isSecret are true.
  • What does it unlock? On this service, MCP and REST share one key and one credit balance. A leaked MCP key spends the same credits as a leaked REST key.
  • How much can one call cost? Detection is 1 credit per scored word, and only when there's a verdict. Each successfully rewritten chunk costs 5 credits per word of the original text, with a 10-word minimum per chunk. The LobeHub listing gives the $10 Starter rates as $0.04 per 1,000 scored words and $0.20 per 1,000 billable rewrite words. If your assistant scores the draft after every edit, you pay to score the same words again.

This service allows up to five keys per account. Use one per client so you can revoke a single editor's key without breaking the others.

4. Be careful with "try it in the browser"

On MCPTry you can call the tools without installing an MCP client. This server rejects direct browser requests from other sites, so MCPTry sends the request and your key through its own proxy. It says header values are sent for that request only and are never stored or logged.

Even so, the proxy sees your key. Every key on an account spends the same balance, so a fresh key on a paid account doesn't limit what a leak could cost. For browser tests, use a key from an account that only has trial credits, and revoke it when you're done. Here, an eligible account with a verified, non-disposable email gets 5,000 trial credits, valid for 30 days, when it creates its first key.

5. Check health before you debug your config

When a tool call fails, check whether the server is up before you start editing JSON. On MCPTry, Working means the server accepted a connection, initialized and listed its tools without credentials. The listing also shows uptime, response time and the protocol version used for the check, 2025-06-18 here. None of that tests your key, so ask the assistant to run get_balance next. A successful response confirms your key works, and the call doesn't use credits. If you get a 401, check the Authorization header format and whether the key was revoked. If your client only launches local stdio servers from a config file, you need a bridge such as mcp-remote. The LobeHub listing shows that setup for claude_desktop_config.json.

A short checklist

  • Read every tool description yourself. Use a scan as a second opinion.
  • Keep confirmation prompts on for tools that cost money or write data.
  • Check the manifest for how the key is sent and whether it's marked secret.
  • Know what one call costs and what a leaked key could spend.
  • For browser tests, use a key from a trial-only account, and revoke it afterwards.
  • Check the server's health before you debug your own setup.
📰 Read the original article on Dev.to Security

Originally published by Dev.to Security. Aggregated on AIWithGhost for educational purposes — full credit and traffic to the original publisher.