Skip to main content
Glama
Delete404

Delete404

This server has been deprecated

This servers is no longer maintained. NEW: https://glama.ai/mcp/connectors/dev.turva/turva-mcp

turva-mcp

A public, read-only Model Context Protocol server for turva.dev, written in TypeScript. It lets an AI client look up the site's published information, including contact details and dated measurement evidence.

For example, a client can use get_contact when someone asks how to reach me. The reply explains how to start. The server answers questions about turva.dev itself. It does not scan another domain, run an audit or perform transactions.

Connect

Streamable HTTP endpoint:

https://mcp.turva.dev/mcp

Connect to the hosted server directly. No npm installation, authentication or API key is required. Set the endpoint in an MCP client with Streamable HTTP support. Clients that use a URL-based mcpServers configuration commonly accept this shape:

{
  "mcpServers": {
    "turva": {
      "url": "https://mcp.turva.dev/mcp"
    }
  }
}

The endpoint expects MCP POST requests. Opening /mcp in a browser returns 405. Check reachability through the discovery document instead:

curl https://mcp.turva.dev/

In Windows PowerShell, use curl.exe if curl resolves to Invoke-WebRequest.

The server is listed in the official MCP registry as dev.turva/turva-mcp and in the Glama MCP directory.

Related MCP server: agentic-os-mcp

Try a tool

Once connected, call get_contact with an empty argument object. In an MCP client SDK, the call is:

const result = await client.callTool({ name: "get_contact", arguments: {} });
const contact = result.structuredContent;
console.log(contact.email, contact.first_reply);

Here client is your connected MCP client. The same JSON is also in result.content[0].text for clients that read text only. This excerpt from the response shows the contact fields maintained in src/index.ts:

{
  "email": "info@turva.dev",
  "location": "Tampere, Finland",
  "engagement": "async_only",
  "first_reply": "Within one business day, in writing, by email or Signal. LinkedIn messages have no set reply time."
}

The full response also includes the other contact channels, the steps for starting an engagement and an operator object that says who runs turva.dev.

Without an SDK, a request on the current protocol lane needs five things beside the JSON-RPC body:

  • The Content-Type: application/json header.

  • The MCP-Protocol-Version header.

  • The Mcp-Method header.

  • The Mcp-Name header on tools/call.

  • A _meta object in params that names the protocol version and the client's capabilities.

The MCP specification also requires a client to send Accept: application/json, text/event-stream. This server does not check it on the current lane, but the call below sends it, as a standard client does.

The same call with curl:

curl https://mcp.turva.dev/mcp \
  -H "Content-Type: application/json" \
  -H "Accept: application/json, text/event-stream" \
  -H "MCP-Protocol-Version: 2026-07-28" \
  -H "Mcp-Method: tools/call" \
  -H "Mcp-Name: get_contact" \
  -d '{"jsonrpc":"2.0","id":1,"method":"tools/call","params":{"name":"get_contact","arguments":{},"_meta":{"io.modelcontextprotocol/protocolVersion":"2026-07-28","io.modelcontextprotocol/clientCapabilities":{}}}}'

The answer is one JSON-RPC response, and the contact data is in result.structuredContent.

Tools

Seven read-only tools, each idempotent. Each returns its data as structuredContent, which the tool's outputSchema describes, and as the same JSON in a text block. Six tools take no arguments: the input schema allows none, and a call that passes one returns a tool error. get_page takes one argument, a path on turva.dev, and a call with any other argument returns a tool error. There are no write tools or transaction tools.

Tool

Returns

get_services

The engagement terms, the service catalog (audit, advisory, implementation, MCP server security test, agent operations and MCP server design) and pricing (three fixed list prices and three on request), plus one implementation add-on that carries a fixed price and is sold only with the audit it follows, and active security testing, an add-on to the audit priced by quote. Also the contract terms of the legal page, quoted in full, and the outline of the published sample audit report

get_agent_readiness

turva.dev's agent-readiness score, category scores, measurement date and a link to the scanner start page

get_security_evidence

Public Hardenize and Internet.nl results for turva.dev, with their measurement date

get_principles

The principles covering written work, access and verification

get_contact

Who runs turva.dev, its business details and legal page, the contact channels, the first-reply time, the first steps to start an audit and every privacy section of the legal page

get_page_index

The pages of turva.dev, read from the site's /llms.txt when the tool is called: the main pages, the sample report, the guides and the blog posts, grouped by the index's own sections, each with its title and a path that get_page accepts as it stands. Also the number of pages listed and of links not listed. It takes no arguments

get_page

The markdown of one page on turva.dev, read from the site when the tool is called, by path. Find the paths with get_page_index; a call with /llms.txt returns the raw index. The result holds the path, the HTTP status, the content type, the text and its size in bytes

Evidence

The responses of the five tools that return fixed data come from static TypeScript objects bundled with the Worker. They do not depend on a live upstream request. get_page and get_page_index are the exception: they read turva.dev through a service binding to the main turva.dev Worker when they are called, so their answer is the page, or the index of pages, as the site serves it at that moment. The measurement tools include a measured_at date and public verification links, so compare the recorded values with a fresh scan when current status matters.

The bundled snapshot records 100/100, Level 5 Agent-Native on isitagentready.com, 98/100 on the Internet.nl website test and 90/100 on its email test. It also records that all 24 categories passed on Hardenize. The isitagentready.com reading is dated 2026-11-25, and the Hardenize and Internet.nl readings are dated 2026-11-15. They come from third parties. This server did not produce any of the scores.

Endpoints

Method and path

Behavior

POST /mcp

MCP over Streamable HTTP. A body over 64 KiB receives 413, and a JSON-RPC batch receives 400 with error -32600

GET /mcp, DELETE /mcp

405 with Allow: POST, OPTIONS. No GET stream or session teardown

OPTIONS /mcp

200 for an accepted MCP preflight, 403 when the browser Origin is not allowed

/mcp/

308 to /mcp, keeping the method and the query string. A preflight OPTIONS is answered as the one for /mcp, because a browser does not follow a redirect on a preflight

GET /

Minimal discovery JSON with the server name, transport and endpoint

GET /.well-known/mcp

The same discovery JSON

GET /.well-known/glama.json

Glama domain-verification document

OPTIONS on any other path

204 discovery CORS preflight

POST, PUT, DELETE or PATCH on any path other than /mcp and /mcp/

405 with Allow: GET, HEAD, OPTIONS

GET or HEAD on any other path

404

HEAD on a discovery document returns its headers without a body. The discovery documents carry Cache-Control: public, max-age=3600, the same hour that tools/list and server/discover declare on the current lane.

The main site serves the full signed MCP server card at turva.dev/.well-known/mcp/server-card.json.

Protocol and implementation

A single Cloudflare Worker built on the Cloudflare Agents SDK serves the endpoint through createMcpHandler from agents/mcp/server, and it creates a fresh McpServer from @modelcontextprotocol/server for each request. There is no Durable Object or persistent MCP session.

The current protocol lane uses revision 2026-07-28. A legacy lane at the same endpoint serves 2025-era clients. That lane is an adapter in the Agents SDK, and it answers through the web-standard server transport of @modelcontextprotocol/server.

The server also negotiates revision 2025-03-26, which requires a server to accept JSON-RPC batches. This endpoint refuses every batch with 400 and error -32600 on both lanes. One POST must not carry many tools/call requests past the rate limit.

A request is on the current lane only when MCP-Protocol-Version is exactly 2026-07-28. A request without that header, with an older revision or with an unknown version is on the legacy lane for the error code and the id. A refusal at the transport layer, such as an oversized body, a disallowed Origin, a body that is not declared as JSON or a method the endpoint does not serve, carries error -32600 on the current lane and -32000 on the legacy lane. On the current lane an error carries the request's id only when it is a string or a safe integer and otherwise leaves the field out, while on the legacy lane the Worker's own errors carry id: null in that case. A request with an unknown version that passes the Worker's own validation is refused with 400, except an initialize whose header version sorts before 2026-07-28 as a string, which the SDK answers without checking the header.

An error that the server answers before it has read a request id leaves out the id member on the current lane. On the legacy lane it sends "id": null, as JSON-RPC 2.0 requires. An OPTIONS preflight carries no version header and is answered as the legacy lane.

On the current lane every request must carry MCP-Protocol-Version and Mcp-Method, plus Mcp-Name for tools/call, and a request without one of them receives 400 with error -32020. A request that lacks MCP-Protocol-Version is on the legacy lane and is not refused for that alone. It receives the same 400 and error -32020 only when it also carries an Mcp-Method header or the _meta protocol-version key, and the Worker's own validation answers first. An Mcp-Method or Mcp-Name header that disagrees with the body is refused with the same error. On this lane that check comes before the Worker's own validation of the request body, which answers with -32602 or a tool error. A params object that fails the Worker's checks, an unknown tool name, an argument named __proto__, an argument list of more than five keys and a key longer than 64 characters all fall under that validation. On tools/call a params value that is not an object goes to the SDK, which answers 400 and error -32600. On the current lane a tools/call or tools/list request without a _meta object in params, or with a _meta object that lacks the protocol-version key or the client-capabilities key, receives 400 with error -32602 and the request's id. A _meta that is not an object receives 400 with error -32600 and the same id. Both come before the Mcp-Method and Mcp-Name check, so a request that fails one of them and that check gets the _meta error.

On the legacy lane, and with an unknown protocol version, the Worker's own validation answers first. A request whose params object fails those checks, or with an unknown tool name, receives that -32602 or tool error, not the header error. A request without "jsonrpc": "2.0", or with an id that is not a string or a safe integer, skips the Worker's own validation. It is answered with 400 and error -32600, and on the legacy lane that answer repeats the id as the SDK parsed it. Any other unexpected argument is checked after the headers, and the SDK answers it with a tool error.

A JSON-RPC notification is passed to the SDK without this header check. The exception is a notification whose params are nested more than 64 levels deep, which the Worker answers with 400 and error -32600 before the SDK sees it. The same limit applies to any request whose id is not a string or a safe integer. For a request with a well-formed JSON-RPC envelope on the current lane, the Worker runs the header classifier of @modelcontextprotocol/server, classifyInboundRequest, and then the Mcp-Method and Mcp-Name check itself, before its own validation of the request. The SDK therefore sees only requests that no Worker check has answered.

On the current lane nothing checks Accept, while the legacy lane answers 406 unless Accept lists both application/json and text/event-stream. The legacy 406 is the SDK's answer, so it comes after every refusal the Worker makes itself. A JSON-RPC batch receives 400 and error -32600, and a request that fails the Worker's own validation or the -32020 check above gets that answer instead. A notification with no usable Accept header receives the 406.

server/discover is supplied by @modelcontextprotocol/server. It declares the tools capability with listChanged: false, because the tool set changes only on deploy and the server sends no change notifications. It also returns short instructions that say which tool answers which question.

The discovery documents and the data of the five tools that return fixed data are compiled into the Worker. This Worker is separate from the main turva.dev Worker, so changes here do not change the website. The only call this Worker makes to another Worker is the read of the site by get_page and get_page_index, through the SITE service binding in wrangler.jsonc.

Dependencies

The code imports @modelcontextprotocol/server, agents and zod. package.json also lists @modelcontextprotocol/client and @modelcontextprotocol/sdk, which the code does not import. The agents version pinned in package.json declares all three MCP packages as peer dependencies at exact versions. Only @modelcontextprotocol/client is a required peer. @modelcontextprotocol/sdk and @modelcontextprotocol/server are marked optional in the peerDependenciesMeta of agents 0.33.0. They are listed directly because the Worker imports the server package and the lockfile pins the sdk package on purpose. Neither @modelcontextprotocol/client nor @modelcontextprotocol/sdk is in the built Worker.

Security and operating limits

This server has no write path and returns only public data. What it has to withstand is abuse of the endpoint itself. That means load from one address, requests built to be expensive and a page on another site that calls it from a visitor's browser.

  • Public and unauthenticated by design. Every exposed value is already public.

  • Read-only MCP annotations on every tool. No destructive or open-world operation is declared, and only get_page takes an argument.

  • get_page can read turva.dev and nothing else. It calls the site only through the SITE service binding, which stays inside Cloudflare and cannot be pointed at another host, and it sends a GET request with Accept: text/markdown and a fixed CF-Connecting-IP value, so nothing from the caller's request and no caller address is passed on. The path must start with a single slash, hold printable ASCII only and no backslash, query string or fragment, and the URL parser must return it unchanged under https://turva.dev. The tool does not follow a redirect, answers a status other than 2xx as a tool error with the status, accepts only a text/markdown or text/plain answer, refuses an answer over 262144 bytes instead of cutting it, and gives up after 8 seconds. All get_page calls share one rate-limit bucket on the site, so a burst from anyone can make the next calls answer 429.

  • get_page_index reads /llms.txt and nothing else, through the same SITE service binding and the same code path as get_page: the same two headers, no redirect followed, the same 262144-byte cap and 8-second limit, and the same shared rate-limit bucket. It takes no argument. It lists only links to https://turva.dev with no query string or fragment whose path get_page accepts, so every listed path can be passed to get_page unchanged, lists a page once, and stops at 500 pages.

  • Rate limit: about 100 requests per 60 seconds per client IP, with 429 and Retry-After: 60 after it. An IPv6 client is counted by its /64 prefix and an IPv4 client by its full address. Cloudflare's rate-limiting binding keeps a separate, approximate count in each location, so a burst can pass more requests before the first 429. The endpoint fails open if the rate-limiter binding is missing or errors.

  • Request size: a body over 64 KiB receives 413 before the handler reads it. A JSON-RPC batch receives 400 on both lanes, so one request cannot carry many tool calls past the rate limit.

  • Browser CORS on /mcp accepts an Origin whose hostname is turva.dev, whatever the scheme or port, and refuses every other origin with 403. A batch sent as JSON and an oversized body are refused before the origin check. A present Origin must also be a serialized origin. A value with a path, user information, a fragment or a trailing slash is refused with 403, and so is an empty value. The response always carries Access-Control-Allow-Origin: https://turva.dev. A browser page on another scheme or port of turva.dev therefore passes this check, and the browser's own CORS check then refuses it. Non-browser MCP clients normally send no Origin header and can connect directly. Discovery documents use open CORS so directories can read them.

  • The code does not store request bodies, client identities or tool inputs. Cloudflare Workers observability is disabled. A rate-limiter failure writes a diagnostic error, and a missing rate-limiter binding writes one warning per Worker instance, both without request data.

  • Security headers are applied to MCP and discovery responses.

For private vulnerability reports, see SECURITY.md or email info@turva.dev.

The two checks below are separate tools. They are not MCP tools, and this server does not run them. For checks against another website, use the standalone npm packages:

Both run with npx. Both need Node.js 22 or newer. Their validator instructions and comparison instructions explain the arguments and exit codes.

Develop and test

The Worker needs Node.js ^22.18.0 || >=24.11.0, the range in the engines field of package.json. The entry point is src/index.ts. There is no build step: Wrangler bundles the TypeScript when you run or deploy it, and Node runs the tests by stripping types.

npm ci
npm run dev
npm test
npm run typecheck
  • npm run dev starts wrangler dev for a local copy of the Worker.

  • npm test runs node --experimental-strip-types --test over test/catalog.test.ts, test/claims.test.ts and test/protocol.test.ts.

  • npm run typecheck runs tsc --noEmit twice, once for src with tsconfig.json and once for test with tsconfig.test.json.

  • The two overrides in package.json are deliberate. One keeps @hono/node-server on a patched release, as SECURITY.md explains, and the other points every copy of the Workers types at the direct dependency. Run npm ci and npm audit again before removing either.

The workflow runs on every push and pull request with read-only permissions. It has one job, test, on Node.js 22, 24 and 26. The job runs npm ci, then npm audit --omit=dev --audit-level=moderate, then npm test and npm run typecheck. A runtime dependency with a moderate or worse advisory fails the build at the audit step. Nothing in the workflow deploys.

The last JavaScript files in this repository were the two test files. They moved to TypeScript on 20 October 2026, the day the site Worker was renamed, and tsconfig.test.json has type-checked them since then. The server source in src/index.ts was already TypeScript.

Deploy your own copy

This repository is MIT licensed and can be adapted for another site. Before deploying a fork:

  1. Replace the static service and evidence objects in src/index.ts with your own published data.

  2. Replace the hard-coded turva.dev domain, MCP endpoint, browser origin and verification links with values you control.

  3. Point the SITE service binding in wrangler.jsonc at the Worker of your own site and change SITE_ORIGIN in src/index.ts, or remove get_page and get_page_index.

  4. Give the Worker a unique name and a rate-limit namespace_id that is not shared with another Worker in your Cloudflare account.

  5. Attach your own custom domain. workers_dev and preview_urls are disabled in wrangler.jsonc.

Run the checks from Develop and test, starting with npm ci, on the commit you deploy, because Wrangler builds the bundle from your own working tree and node_modules, not from a CI run. Then deploy with your Cloudflare account:

npm run deploy

Configure the custom domain under Workers & Pages, your Worker, Settings, Domains & Routes. Use your own hostname and update the discovery endpoint in src/index.ts to match it.

Maintainer

Built by Erik Rekola at turva.dev. Questions about the implementation can go to info@turva.dev. I work in writing. turva.dev builds servers like this one for other sites as a service, MCP server design.

The business registration is available in the Finnish Business Information System.

License

MIT.

Tool Schema Changelog

Recent tool additions, removals, and schema changes observed during successful MCP inspections.

Loading tool schema changelog…

    Related MCP Connectors

    Related MCP Servers

    • A
      license
      A
      quality
      B
      maintenance
      Read-only MCP server that exposes the agentic-os governance, SDLC, and Quality Engineering methodology to any MCP host. It never writes to your repository and never executes code — it serves the methodology, plans an install, and verifies it, handing any commands back to the host to run.
      7
      2
      Apache 2.0
    • A
      license
      A
      quality
      D
      maintenance
      Read-only MCP server exposing a W3C PROV knowledge graph of verified facts with provenance, enabling AI agents to list, search, and check facts while enforcing that writes remain CLI-only.
      5
      MIT