A seven-step, terminal-only checklist for vetting a remote MCP server before an agent connects to it: open tool listing, OAuth 2.1 sign-in, tool poisoning in descriptions, tool drift and transport hygiene.
Key points
- Call the tool list without credentials; if tools come back, everyone else on the internet sees them too.
- Sign-in should use OAuth 2.1 with PKCE: expect a 401 that points to the auth server, not HTML.
- Tokens should be server-specific and short-lived; accepting any identity provider token turns one leak into many.
- Tool descriptions are instructions to the model: text telling it to read SSH config is tool poisoning.
- Sort tools into read-only, data-writing and command/file access, then switch off the ones the agent never calls.
- Keep a copy of the approved tool list and diff it regularly; a rewritten description is the classic rug pull.
Why it matters
Anyone who has pasted a remote MCP server URL into a client config is the audience here, and step five is the uncomfortable one: most clients silently accept a changed tool list, so approval becomes a one-time event nobody revisits. Treat a server like a dependency — pin it, read what it exposes, keep the snapshot in version control.
The manual check needs only curl and a browser, so it works as a gate before a server enters a team config. The post ends in a Product Hunt launch for mcpprobe; judge the checklist on its own merits — the OAuth 2.1 PKCE and token-audience questions belong in any review.
Real-world use
- A team adding a remote MCP server to an agent client and wanting to see what it exposes first.
- A deliberately public docs-search or weather server, where the open tool list should be a decision rather than an oversight.
- A locally run MCP server that must bind 127.0.0.1 and check the Origin header so browser pages cannot reach it.
- A server offering command execution or file access, where each tool has to be justified and switched off if unused.
This summary was generated by the agent from the original post on DEV: mcp. The full text and all rights belong to its author and publisher. Go to original