# MCP Server Grader: Tool Quality and Directory Readiness (`bodacious_mistral/mcp-server-grader`) Actor

Grades remote MCP servers for directory readiness: protocol, tool names and descriptions, input schemas, annotations and OAuth setup. Read-only: it never calls a tool.

- **URL**: https://apify.com/bodacious_mistral/mcp-server-grader.md
- **Developed by:** [Red Center Studio](https://apify.com/bodacious_mistral) (community)
- **Features:** Limited permissions
- **Stats:** 1 total users, 0 monthly users, 0.0% runs succeeded, 0 bookmarks
- **User rating**: No ratings yet

## Pricing

from $20.00 / 1,000 servers graded

This Actor is paid per event. You are not charged for the Apify platform usage, but only a fixed price for specific events.

Learn more: https://docs.apify.com/actors/store.md#pay-per-event

## What's an Apify Actor?

An Actor is a serverless cloud program that runs on the Apify platform. It has two run modes.
In Batch mode, an Actor accepts a well-defined JSON input, performs an action which can take anything from a few seconds to a few hours,
and optionally produces a well-defined JSON output, datasets with results, or files in key-value store.
In Standby mode, an Actor provides a web server which can be used as a website, API, or an MCP server.

Apify vocabulary and the platform model are defined once, in the agent quickstart at https://apify.com/agents.md.

## How to integrate an Actor?

If asked about integration, you help developers integrate Actors into their projects.
You adapt to their stack and deliver integrations that are safe, well-documented, and production-ready.

Do not guess an integration path. Every one of them is in the agent quickstart at https://apify.com/agents.md: the Apify MCP server, Agent Skills with the Apify CLI, the JavaScript and Python clients, the REST API, and the account-free path for an agent with no human to sign in. It also carries the rule on stating cost before the first paid run.

For examples already wired to this Actor's own input schema, see the [API](#api) section below.

Each client library has reference documentation the quickstart does not restate: [JavaScript/TypeScript](https://docs.apify.com/api/client/js/docs.md) (`npm install apify-client`) and [Python](https://docs.apify.com/api/client/python/docs.md) (`pip install apify-client`).

# README

## MCP Server Grader: Tool Quality and Directory Readiness

Grades remote MCP servers for directory readiness: protocol and transport, server info, tool names and descriptions, input schemas, annotations, OAuth setup and browser access. Read-only: it never calls a tool and never signs in.

### What it does

Give it the addresses of remote MCP servers. For each one it gathers facts the way an AI assistant would when it connects, then grades them: score, letter grade, a ranked list of findings with a fix each, and a list of problems per tool.

It is read-only. It never calls a tool, never reads a prompt or a resource, and never signs in by itself. The only requests it sends are:

- `initialize` (protocol version 2025-06-18) and `notifications/initialized`
- `tools/list`, following every `nextCursor` page (up to 500 tools)
- `prompts/list` and `resources/list`, only when the server says it has them
- a plain GET for OAuth metadata when the server asks for sign-in, and one CORS preflight (OPTIONS)
- when sign-in is asked for with no OAuth metadata at all, one `initialize` to an address beside yours that cannot exist (`rcs-no-such-endpoint`)
- an HTTP DELETE with the session id at the end, when the server issued one

What it checks per server:

1. Transport and protocol. A Streamable HTTP reply (JSON or an event stream), the protocol version the server answers (2025-03-26, 2025-06-18 and 2025-11-25 are accepted, 2024-11-05 is flagged as outdated) and how long initialize took. The older SSE transport is detected and reported as legacy.
2. Server info. Name, version, title, whether instructions exist and how long they are, and the capabilities the server declares.
3. Sign-in setup. When the server answers 401, it reads the `WWW-Authenticate` challenge, the protected resource metadata (RFC 9728) and the authorization server metadata (RFC 8414, then the OpenID configuration). It records the authorization servers, dynamic client registration, PKCE with S256 and client ID metadata documents. Without a token the tools are not graded and the row says "not graded: needs sign-in".
4. Tools, all pages. Per tool: the name against `^[a-zA-Z0-9_-]{1,64}$` (the tool name rule of major AI clients), description present, at least 20 characters and at most 1024, an input schema of type object, a type and a description on every property, a required list when there are properties, and the annotations title, readOnlyHint, destructiveHint, idempotentHint and openWorldHint. Connector directories ask every tool to declare whether it only reads or can change data. It also flags duplicate names and near identical descriptions (90 percent of the words shared), and counts tools with an outputSchema (optional). The context cost of the whole tool list is estimated as the JSON length divided by 4, so it is an estimate, and anything over 10,000 tokens is flagged.
5. Prompts and resources. Counts, when the server advertises them.
6. Browser clients. A CORS preflight from `https://claude.ai`: which origin is allowed and whether the `Mcp-Session-Id` header is exposed. Information with a small weight.

#### Score

The score is 0 to 100 from a fixed weight table. Each part is earned in proportion: the share of tools that pass a check times the weight, or all of it for a yes or no check.

| Category | Points | Parts |
| --- | --- | --- |
| Transport and protocol | 18 | Streamable HTTP answers 9, accepted protocol version 5 (outdated 2, unknown 3), initialize within 1.5 s 4 (within 4 s 2) |
| Server info and instructions | 10 | Name and version 5, instructions of at least 20 characters 3, title 2 |
| Tool names and descriptions | 24 | Valid, unique names 8, good unique descriptions 12, tool list under 10,000 estimated tokens 4 (under 20,000 2) |
| Input schemas | 15 | Object schema 4, property types 5, property descriptions 4, required list 2 |
| Annotations | 20 | readOnlyHint 6, destructiveHint 6, title 3, idempotentHint 3, openWorldHint 2 |
| Auth setup | 10 | A server that works without sign-in earns all 10. When it asks for sign-in: an authorization server found 4, PKCE S256 3, dynamic client registration or client ID metadata documents 3 |
| Browser clients | 3 | Allows https://claude.ai 2, exposes Mcp-Session-Id 1 |

When a category cannot be measured (the tools need sign-in, or only the older SSE transport answered), it is left out and the score is scaled to the categories that were measured. The row has a `scoreBreakdown` with the points and the points that could be measured for every category, so you can see where each point came from.

Grade: A is 90 or more, B 80, C 70, D 60, F below 60. Findings are ranked high, medium and low, and each one says what to do about it.

### Who it is for

MCP server builders who are preparing a directory listing, teams that want to compare servers before they connect them to an assistant, and agencies that audit the connectors they build or inherit.

### Input

Run it from the Console, the API, or as an agent tool. Minimal input:

```json
{
  "servers": [
    "https://redcenterstudio.com/api/tools/mcp"
  ]
}
```

Every field is described in the input form. Free to run: you pay only for the server graded you get back.

### Output

One row per input item. Rows with `status: "ok"` are results. Rows with `status: "error"` explain what went wrong and are never charged. A run summary is stored in the `OUTPUT` record.

Real output from a live run:

```json
{
  "status": "ok",
  "inputRef": "https://redcenterstudio.com/api/tools/mcp",
  "auditedAt": "2026-12-04T09:12:13.188Z",
  "server": "https://redcenterstudio.com/api/tools/mcp",
  "reachable": true,
  "transport": "streamable-http",
  "protocolVersion": "2025-06-18",
  "protocolOutdated": false,
  "latencyMs": {
    "initialize": 319,
    "toolsList": 56
  },
  "serverInfo": {
    "name": "rcs-tools",
    "version": "1.2.0",
    "title": "Red Center Studio free tools"
  },
  "instructions": {
    "present": true,
    "length": 575
  },
  "capabilities": [
    "tools"
  ],
  "auth": {
    "required": false,
    "resourceMetadataUrl": null,
    "authorizationServers": [],
    "dynamicClientRegistration": false,
    "pkceS256": false,
    "clientIdMetadataDocuments": false,
    "graded": true
  },
  "tools": {
    "count": 6,
    "graded": true,
    "note": null,
    "estimatedTokens": 1217,
    "withAnnotations": 6,
    "withOutputSchema": 0,
    "issues": [],
    "names": [
      "geo_audit",
      "spof_scan",
      "decode_error",
      "domain_health",
      "ai_crawler_check",
      "quantum_readiness"
    ]
  },
  "prompts": null,
  "resources": null,
  "cors": {
    "allowOrigin": "*",
    "exposesSessionId": false
  },
  "score": 99,
  "grade": "A",
  "scoreBreakdown": {
    "transport": {
      "points": 18,
      "outOf": 18
    },
    "serverInfo": {
      "points": 10,
      "outOf": 10
    },
    "tools": {
      "points": 24,
      "outOf": 24
    },
    "schemas": {
      "points": 15,
      "outOf": 15
    },
    "annotations": {
      "points": 20,
      "outOf": 20
    },
    "auth": {
      "points": 10,
      "outOf": 10
    },
    "browserClients": {
      "points": 2,
      "outOf": 3
    }
  },
  "findings": [
    {
      "severity": "low",
      "finding": "No tool declares an outputSchema.",
      "fix": "Optional, but an outputSchema lets clients check results and helps models read them."
    },
    {
      "severity": "low",
      "finding": "Browser clients cannot read the Mcp-Session-Id header.",
      "fix": "Add Mcp-Session-Id to Access-Control-Expose-Headers."
    }
  ],
  "nextStep": "Only minor findings are left. Grade again after each release."
}
```

### Pricing

Pay per event. No monthly fee. The platform start event is charged automatically by Apify.

| Event | Charged when | Price |
| --- | --- | --- |
| Server graded (`server-graded`) | Charged once for each MCP server that returns a graded row. Error rows, where nothing answered, are free. | $0.02 per server graded ($20 per 1,000) |

Set a maximum cost per run on the run options. The Actor stops cleanly when the limit is reached and never charges beyond it.

### Use with Apify MCP

AI assistants can call this Actor as a tool through the Apify MCP server:

`https://mcp.apify.com?tools=bodacious_mistral/mcp-server-grader`

### Limits

- Tools, prompts and resources are listed, never called or read. The grade is about how a server describes itself, not about whether its tools work.
- A server that needs sign-in gets an auth grade and no tool grade. The Actor never signs in.
- Give the full address of the MCP endpoint. A bare domain, or an address with no path, is tried at `/mcp` only. An MCP server at another path is not found.
- If nothing answers like an MCP server (a plain web page, an error, no connection) the row is an error row: it is free and the error code says why. An error counts as coming from an MCP server only when it is a JSON-RPC 2.0 message or a 401 with a bearer challenge, so an ordinary API error is not graded. A 401 with no OAuth metadata, from a service that also asks for sign-in at an address that does not exist, is a sign-in wall and is not graded either. A rate limit or gateway outage (429, 502, 503, 504) is not graded either.
- Only the first 500 tools are read, and at most 20 pages of any list. Response times are single requests from where the Actor runs and are a rough guide.
- The token estimate is the JSON length divided by 4. It is not a tokenizer count.
- The older SSE transport is detected, not tested: initialize is not sent to it, so such a server is graded on transport only.
- CORS is read from one preflight request. A server that only sets CORS headers on real responses can look closed here.
- Up to 50 servers per run, 3 at a time by default. Each server is limited to 45 seconds. Private and internal addresses are refused for safety.

### Next step

[Need an MCP server built? See what Red Center Studio builds](https://redcenterstudio.com/services/mcp-servers-ai-apps/). Built by Red Center Studio. Related: [Custom MCP server builds](https://redcenterstudio.com/services/mcp-servers-ai-apps/).

# Actor input Schema

## `servers` (type: `array`):

MCP server addresses to grade, one per line, such as https://example.com/mcp. A bare domain or an address with no path is tried at /mcp. Only public addresses are requested. No tool is ever called and nothing is signed in.

## `bearerToken` (type: `string`):

Optional. Use only for servers you own or are allowed to test. Sent as an Authorization bearer header, only over https and only after a server first asks for sign-in, only to the listed server addresses. Never logged or stored. Leave empty to grade what is public.

## `concurrency` (type: `integer`):

How many servers to grade at the same time. Lower it if you grade many servers on one host.

## Actor input object example

```json
{
  "servers": [
    "https://redcenterstudio.com/api/tools/mcp"
  ],
  "concurrency": 3
}
```

# Actor output Schema

## `results` (type: `string`):

One row per input item.

## `summary` (type: `string`):

Totals, charged events, stop reason and the next step. Stored as the OUTPUT record.

# API

You can run this Actor programmatically using our API. Below are code examples in JavaScript, Python, and CLI, as well as the OpenAPI specification and MCP server setup.

## JavaScript example

```javascript
import { ApifyClient } from 'apify-client';

// Initialize the ApifyClient with your Apify API token
// Replace the '<YOUR_API_TOKEN>' with your token
const client = new ApifyClient({
    token: '<YOUR_API_TOKEN>',
});

// Prepare Actor input
const input = {
    "servers": [
        "https://redcenterstudio.com/api/tools/mcp"
    ]
};

// Run the Actor and wait for it to finish
const run = await client.actor("bodacious_mistral/mcp-server-grader").call(input);

// Fetch and print Actor results from the run's dataset (if any)
console.log('Results from dataset');
console.log(`💾 Check your data here: https://console.apify.com/storage/datasets/${run.defaultDatasetId}`);
const { items } = await client.dataset(run.defaultDatasetId).listItems();
items.forEach((item) => {
    console.dir(item);
});

// 📚 Want to learn more 📖? Go to → https://docs.apify.com/api/client/js/docs

```

## Python example

```python
from apify_client import ApifyClient

# Initialize the ApifyClient with your Apify API token
# Replace '<YOUR_API_TOKEN>' with your token.
client = ApifyClient("<YOUR_API_TOKEN>")

# Prepare the Actor input
run_input = { "servers": ["https://redcenterstudio.com/api/tools/mcp"] }

# Run the Actor and wait for it to finish
run = client.actor("bodacious_mistral/mcp-server-grader").call(run_input=run_input)

# Fetch and print Actor results from the run's dataset (if there are any)
print(f"💾 Check your data here: https://console.apify.com/storage/datasets/{run.default_dataset_id}")
for item in client.dataset(run.default_dataset_id).iterate_items():
    print(item)

# 📚 Want to learn more 📖? Go to → https://docs.apify.com/api/client/python/docs/quick-start

```

## CLI example

```bash
echo '{
  "servers": [
    "https://redcenterstudio.com/api/tools/mcp"
  ]
}' |
apify call bodacious_mistral/mcp-server-grader --silent --output-dataset

```

## MCP server setup

```json
{
    "mcpServers": {
        "apify": {
            "type": "http",
            "url": "https://mcp.apify.com/?tools=fetch-actor-details,bodacious_mistral/mcp-server-grader"
        }
    }
}
```

The hosted server signs you in with OAuth on first connect, so no API token belongs in this config. Clients without OAuth support can send an `Authorization: Bearer <APIFY_API_TOKEN>` header instead, using a token from API & Integrations in Apify Console (https://console.apify.com/settings/integrations).

## OpenAPI specification

Download the OpenAPI definition: https://api.apify.com/v2/actors/TYJvgD1Hf4J6KrgD4/builds/23kcYCuUYtNCIq6HZ/openapi.json
