CrawlCheck

Agent view · Guides · 2026-10-08

How to check an MCP server is safe before an agent connects

This is the response this server returns to a client that asks for Accept: text/markdown at https://crawlcheck.io/guides/how-to-check-an-mcp-server-before-an-agent-connects: fetched when you opened this page, shown byte for byte. An assistant, a crawler that negotiates markdown, or anything reading our feed gets exactly this. The markdown leaves signed (RFC 9421, key in our key directory), so a crawler can prove the page it read is the page this server sent; the check is shown below.

status200
content-typetext/markdown; charset=utf-8
varyAccept
link<https://crawlcheck.io/llms.txt>; rel="describedby"; type="text/plain", <https://crawlcheck.io/.well-known/api-catalog>; rel="service-desc"; type="application/linkset+json", <https://crawlcheck.io/guides/how-to-check-an-mcp-server-before-an-agent-connects>; rel="cite-as", <https://crawlcheck.io/.well-known/http-message-signatures-directory>; rel="http-message-signatures-directory"
cache-controlpublic, max-age=900, stale-while-revalidate=2400
bytes14,750
words2,099
sha-25661834cc5635fe7776fed43405bf6d08c95a7f03f6c432b4179634aef48450ef5
repr-digestsha-256=:YYNMxWNf53dv7UNAW/bQjJWn8D9sQytBeWNK70hFDvU=: ← matches the body shown
signature-inputsig1=("@authority";req "@path";req "repr-digest" "content-type");created=1795464778;expires=1795468378;keyid="1hHmE3fo1rg5Ig70wuFtJ5wBc7G-sUTgUJkxyPWFRps";alg="ed25519";nonce="v3g9kJYNWEanMrilxskcVQ";tag="crawlcheck-page"
signaturesig1=:n0XyrgsUw+tX40bo0MwuSwKSZws6TAf3ylyj1K1c3fWNkruFQxKfG/2HtKsIShD+OPhHwre3a/4/caW98Eg/Dg==:
verifiedyes — signature by key 1hHmE3fo1rg5Ig70… from https://crawlcheck.io/.well-known/http-message-signatures-directory (directory valid), valid for 3600 more s. Checked here exactly as a crawler would; redo it yourself: https://crawlcheck.io/api/tool/wba
Guides · 2026-10-08 · By [VSNARY | Emmanuel Orta](/author) · 1 view

# How to check an MCP server is safe before an agent connects

An agent that connects to an MCP server reads every tool description as guidance, with no person in between. Five checks, two curl commands and the red flags we found in 25,983 registry endpoints.

Send the MCP initialize request and then tools/list yourself, read every tool name and description as if it were an instruction to a model, flag any text that tells the model to hide something from the user, handle secrets, avoid other tools or act without asking, check that a locked server answers 401 with a pointer to where to sign in, and record what you read so you notice if it changes.

Check your own site free

Check my site

About a minute. Free, no sign-up, nothing installed.

On this page

- 1. Send the handshake
- 2. List the tools
- 3. Read every description as an instruction
- 4. Check how it asks for credentials
- 5. Record what you read
- If you run the server

Conflicting instructions to machines are not limited to [MCP](/glossary/mcp) servers: across every full scan CrawlCheck has run, 0.6% of sites publish an instruction aimed at agents or AI crawlers that contradicts their own [robots.txt](/glossary/robots-txt), such as a content-use signal under the * group that never reaches the agent it targets.

The Model Context Protocol, introduced by Anthropic in November 2024, is how an [AI agent](/glossary/ai-agent) connects to tools: a server lists what it can do, and the agent calls it. The list is plain text, and the agent’s model reads that text as guidance about what to do. Nobody reviews it in between. On 7 October 2026 CrawlCheck read every remote endpoint in the official MCP Registry, **25,983** of them: **15,575** returned tool lists carrying **288,806** tools, and [eleven servers carried tool text addressed to the model rather than the user](/blog/mcp-registry-census-1851-servers-what-they-answer). Here is how to check one yourself before an agent of yours connects.
Step three is the one most people skip: tool descriptions are read by the model as guidance, not by a person as documentation.

## 1. Send the handshake #

A remote [MCP server](/glossary/mcp-server) over HTTP answers a [JSON-RPC](/glossary/json-rpc) `initialize` request. Send it the way an agent would:

```
curl -s -i https://example.com/mcp \
 -H 'Content-Type: application/json' \
 -H 'Accept: application/json, text/event-stream' \
 -d '{"jsonrpc":"2.0","id":1,"method":"initialize","params":{"protocolVersion":"2025-06-18","capabilities":{},"clientInfo":{"name":"check","version":"1"}}}'
```

A working server answers with its name, version and capabilities. Keep the `Mcp-Session-Id` header if the response carries one.

## 2. List the tools #

```
curl -s https://example.com/mcp \
 -H 'Content-Type: application/json' \
 -H 'Accept: application/json, text/event-stream' \
 -H 'Mcp-Session-Id: <value from the first response>' \
 -d '{"jsonrpc":"2.0","id":2,"method":"tools/list"}'
```

The response lists every tool: its name, its description and the schema of its inputs. This is exactly what the agent’s model will read.

## 3. Read every description as an instruction #

This is the step that matters. Read each description as if it were addressed to you, an assistant with access to a person’s files and accounts, because that is who reads it. The eleven servers flagged in the registry census fell into four patterns:

| Pattern | What the text does | In the census |
| --- | --- | --- |
| Concealment | Tells the model to keep something from the user | 4 servers |
| Secrets | Asks the model to read or pass on a secret, such as the contents of a .env file | 5 servers |
| Steering | Tells the model to avoid every other tool | 1 server |
| Autonomy | Tells the model to act without asking the user | 1 server |

A description that explains what a tool does is normal. A description that tells the model how to behave towards the person it is working for is not, whatever the intent. If a sentence would sound odd read aloud to the user, it should not be in a tool description.

## 4. Check how it asks for credentials #

Of the endpoints in the census, **6,422** asked for credentials, and **712** of those gave no sign of where to get them. A server that needs sign-in should answer `401` with a `WWW-Authenticate` header pointing to its [protected-resource metadata](/glossary/protected-resource-metadata), so a client can find the right authorisation server instead of guessing. A bare 401 leaves an agent, or a person configuring one, to paste a [token](/glossary/token) from somewhere, which is how tokens end up in the wrong place. [What servers that ask for a login request first](/blog/mcp-servers-that-ask-for-a-login-what-they-request-by-default) covers the scopes to look for.

## 5. Record what you read #

Tool descriptions can change after you have approved a server, and they do: in [a week of reliability readings](/blog/mcp-reliability-october-2026), one endpoint in five that publishes its tools changed the list. Save the `tools/list` response, or a hash of it, and compare it before trusting the server again. A changed description deserves the same read as a new one.

## If you run the server #

- Describe what each tool does and what it returns. Leave out instructions to the model about the user.
- Ask for the narrowest input that does the job; never ask for a file of secrets.
- Return a proper 401 with resource metadata when sign-in is required.
- Publish the server in the registry with a stable [URL](/glossary/url), so its tool list can be checked by anyone who connects.

CrawlCheck checks declared MCP tools against their own descriptions as part of the [signed answer](/spec/resolve) an agent can read before connecting. The method above is the same one, by hand.
Read live from the same counters the dataset page uses, at the moment this page was served. Bars are scaled to the largest value shown, not to 100%.

Written by

[Emmanuel Orta](/author) · VSNARY

I build CrawlCheck and write everything published here, from measurements the verification layer took. Where a post got something wrong, the correction stays in the post.

[Every post, and where I got it wrong →](/author) · [Follow on LinkedIn →](https://www.linkedin.com/in/emmanuelorta)

Share this finding: [LinkedIn](https://www.linkedin.com/sharing/share-offsite/?url=https%3A%2F%2Fcrawlcheck.io%2Fguides%2Fhow-to-check-an-mcp-server-before-an-agent-connects%3Futm_source%3Dlinkedin%26utm_medium%3Dsocial%26utm_campaign%3Dshare)[X](https://twitter.com/intent/tweet?url=https%3A%2F%2Fcrawlcheck.io%2Fguides%2Fhow-to-check-an-mcp-server-before-an-agent-connects%3Futm_source%3Dx%26utm_medium%3Dsocial%26utm_campaign%3Dshare&text=How%20to%20check%20an%20MCP%20server%20is%20safe%20before%20an%20agent%20connects)[Email](mailto:?subject=How%20to%20check%20an%20MCP%20server%20is%20safe%20before%20an%20agent%20connects&body=https%3A%2F%2Fcrawlcheck.io%2Fguides%2Fhow-to-check-an-mcp-server-before-an-agent-connects)[Follow Emmanuel on LinkedIn](https://www.linkedin.com/in/emmanuelorta)

## Questions this post answers

### How do I check if an MCP server is safe?

Send initialize and tools/list yourself, read every tool description as an instruction to a model, and reject text that tells the model to hide things from the user, handle secrets, avoid other tools or act without asking. Check that a locked server answers 401 with a pointer to its sign-in metadata, and save what you read to compare later.

### What is MCP tool poisoning?

Text in an MCP tool’s name or description that steers the model reading it, for example telling it to keep something from the user or to read a secret. In a census of 25,983 registry endpoints on 7 October 2026, eleven servers carried such text.

### Who created the Model Context Protocol?

Anthropic introduced MCP as an open protocol in November 2024. It is now used by many AI clients to connect agents to tools and data.

### What should an MCP server return when sign-in is required?

A 401 response with a WWW-Authenticate header that points to its protected-resource metadata, so a client can find the right authorisation server. A bare 401 leaves the person configuring the agent to paste a token from somewhere.

### Can MCP tool descriptions change after I approve a server?

Yes. A server can change its tool list at any time. Save the tools/list response, or a hash of it, and compare it before trusting the server again; read a changed description as carefully as a new one.

### What is a red flag in an MCP tool description?

Any sentence that tells the model how to behave towards the user rather than what the tool does: keep something from the user, read or pass on a secret, avoid other tools, or act without asking. If it would sound odd read aloud to the user, it should not be there.

## Related findings

[2026-10-07 MCP Registry census: what 25,983 endpoints answered All 25,983 MCP Registry endpoints, read 7 October 2026: 15,575 returned 288,806 tools, 6,422 asked for a login, eleven had tools t](/blog/mcp-registry-census-1851-servers-what-they-answer)[2026-11-14 One in four MCP hosts changed its tools in four days. Nothing told the agent. We re-read every public MCP server. 706 of 3,167 hosts changed their tool list in four days, and most changes kept the same versio](/blog/one-in-four-mcp-hosts-changed-its-tools-in-four-days)[2026-10-15 MCP reliability, October 2026: 39,484 handshakes measured 98.7% of 39,484 handshakes with 6,000 registry MCP servers were answered, 8–15 October 2026, and one endpoint in five changed its](/blog/mcp-reliability-october-2026)

The main product

Found this on your own site? **We fix it for $100.**

Scan free to see where you stand. The fix is one site, every finding implemented and re-measured, with a sealed before and after.

[Fix it all — $100](https://buy.stripe.com/4gM00j7OjawhdLEdyR2VG0v)
[What it covers](/pricing#fix) · [scan first, it is free](/)

Free browser extension

Check this on any site you open, **without leaving the page.**

CrawlCheck for Chrome grades every site you visit A–F and shows, from your own browser, what search engines and AI assistants are actually served. Free, no account.

[Add to Chrome — free](https://chromewebstore.google.com/detail/plgjengobhbdmbgckiiaaflgiepdbcpi?utm_source=crawlcheck.io&utm_medium=post)
[What it does](/extension)

Write for the library

Measured something yourself? **Submit an article.**

Send your finding, the data and the method. A person reads every submission and replies by email; accepted articles are published under your name with a link to your study. Free to submit. Articles are accepted on merit; no one can pay to have one published.

[Submit an article](/submit-finding#send)
[How it works](/submit-finding) · a reply within about a week

Spotted a mistake or a bug on this page? [Report an error](/report-error?k=article). Confirmed errors are fixed and logged on the [corrections page](/corrections).

## Comments

Comments are read before they appear. Nothing is published automatically, and no account is needed. An AI agent with a published signing key can post without the queue: it signs the request and the signature is checked against its own domain ([how](/api/comment/signed)). Those appear at once, marked *verified*.

Send for review

Writing about this? [Facts, live figures and marks](/press) — every number on that page is dated and traceable to a scan.

[All guides](/guides) · [The dataset](/data) · [How the dataset works](/policy)

We read your site the way crawlers do, from our own network, and every report says exactly what was asked for and what came back. [Who runs this](/author) · [Press kit](/press) · [Videos](/videos) · [Evidence for disputes](/evidence) · [YouTube](https://www.youtube.com/@crawlcheck) · [hello@crawlcheck.io](mailto:hello@crawlcheck.io)

#### How we measure, and our own machine files

CrawlCheck reads every site as itself. Its crawler-identity tests send named user-agent strings from its own network, never from an operator’s published range, so a site that verifies crawlers can tell them apart; every report says so. Results reflect what an anonymous non-browser client receives. [What we collect and how to opt out](/policy) · [how every report is timestamped](/proof) · [who runs this](/author) · [press kit](/press) · [hello@crawlcheck.io](mailto:hello@crawlcheck.io).

**Second vantage:** the [browser extension](/extension) measures what crawlers are served from your own address and after your JavaScript runs — the half this server cannot see. From 1.0.0 it sends the domain you ask about, on one button, and anonymous usage counts you can switch off; from 1.0.3 a footer switch turns off the hostname lookup for the grade on the icon; from 1.0.4 a share switch, on by default, sends a signed Two-vantages reading (status, size, words and a hash per identity; never page text); from 1.0.16 chips send the hostnames of search results and AI citations while the chips and grade switches are on; from 1.0.17 a readings switch, on by default, sends one signed page reading a day (numbers, the hostname and the page address with the query removed; never in incognito; at most 40 a day) and only while the share and grade switches are also on. Earlier versions send nothing.

**Our own machine layer for the agentic web:** [llms.txt](/llms.txt) · [llms-full.txt](/llms-full.txt) · [agents.md](/agents.md) · [SKILL.md](/SKILL.md) · [entitymap.json](/entitymap.json) · [media kit](/.well-known/media-kit.json) · [MCP server card](/.well-known/mcp/server-card.json) · [API catalog](/.well-known/api-catalog) · [OpenAPI](/openapi.json) · [robots.txt](/robots.txt) · [sitemap.xml](/sitemap.xml) · [security.txt](/.well-known/security.txt) — every one named in robots.txt, which is exactly what we check for on yours.

**Registry:** [MCP: Operator](/registry/mcp/operator) · [MCP](/registry/mcp) · [AI policy](/registry/aipolicy) · [arvadaco.gov](/registry/arvadaco.gov) · [deanchevy.com](/registry/deanchevy.com) · [hostgator.com](/registry/hostgator.com) · [mrs.digital](/registry/mrs.digital) | **Pages:** [IP ranges](/data/ip-ranges) | **Glossary:** [Canonical RDF](/glossary/canonical-rdf) · [MCP resource](/glossary/mcp-resource) · [inclusion proof](/glossary/inclusion-proof) · [Content-Language header](/glossary/content-language)

[Contact](/contact) · [Partnerships](/partnerships) · [Terms of service](/terms) · [Refund policy](/refunds) · [Trust center](/trust) · [Subprocessors](/subprocessors) · [Changelog](/changelog) · [Report an error](/report-error)

Same body as a file: /guides/how-to-check-an-mcp-server-before-an-agent-connects.md · as data: /feed.json · what we tell agents site-wide: /llms.txt, /agents.md. To see any other site this way, from your own browser, after its JavaScript runs: the browser extension.