Connect
MCP server grade
If your product has an MCP server, AI apps and agents use it to act for your users. Byname grades it against the MCP spec essentials and tells you what to fix. Add your server’s URL under Settings > MCP server and Byname scores it from 0 to 100, gives it a letter, scores each of six categories, and lists every check with what it saw and, when it falls short, how to fix it.
The grade reads the server’s metadata and its tool list. It never calls a tool. It is free: no model reads anything, and nothing goes through Treg. A model can also review each tool’s documentation on request. That review is paid, shown beside the grade and never part of its score. See AI review of tool docs.
Grade your server
- Open Settings > MCP server.
- Paste the server’s Streamable HTTP endpoint, such as
https://mcp.example.com/mcp, and press Save and grade. - Wait up to 30 seconds. Most servers take a few.
Press Grade again after a deploy to see the new score. Byname grades only when someone asks. It does not grade on a schedule, so the page says when the grade it shows was made.
The URL must use https. Plain http works only for localhost and other loopback addresses, which Byname reaches only when SOURCES_ALLOW_PRIVATE_IPS is set (see Configuration). Do not put a key in the URL, as a query parameter or a user name: anyone who can read results sees the URL. For a server that asks for sign-in, sign in to it instead.
Who can do what:
| Viewer | Editor | Admin | |
|---|---|---|---|
| See the grade | Yes | Yes | Yes |
| Set or remove the URL | Yes | Yes | |
| Grade again | Yes | Yes | |
| Review tool docs | Yes | Yes | |
| Sign in to the server or sign out | Yes |
An agent does the same with an API key or over MCP. See Agents.
Servers behind sign-in
A server that answers 401 to a client that has not signed in is graded in two parts.
- Before an admin signs in, Byname grades the connection, the sign-in itself (the Authorization category) and discoverability. It cannot open a session, so it cannot read the server metadata or the tools. Those three categories count as 0 with the note “Needs sign-in to grade”, and the page marks the grade as partial.
- Once an admin has signed in, Byname opens a session as that admin and grades the rest.
To sign in, an admin presses Sign in under the server URL on Settings > MCP server. Byname asks them to confirm their own sign-in if it is more than 15 minutes old, then signs in to the server the way an MCP client does:
- It sends
initializewithout credentials and reads theWWW-AuthenticateBearer challenge in the401. A server that does not answer401with one has nothing to sign in to, and the page says so. - It reads the server’s protected resource metadata, from the challenge’s
resource_metadataor the well-known URLs, and checks that it names the server URL as its resource and at least one authorization server. - It reads the first authorization server’s metadata. The server must offer PKCE with
S256. An authorization server with no metadata gets the default/authorize,/tokenand/registerendpoints the 2025-03-26 spec gave. - It registers as a client named Byname. When the authorization server accepts client ID metadata documents and
PUBLIC_URLishttpson a public host, Byname’s client ID is<PUBLIC_URL>/oauth/mcp-client.json, a document Byname serves to anyone. Otherwise Byname uses dynamic client registration, as a public client with no secret. An authorization server that offers neither cannot sign in a client it has not met, and the page says so. - It sends the browser to the server’s own sign-in page, asking for the scopes the challenge names, else every scope the protected resource metadata lists, and
offline_accesswhen the authorization server offers it, so it also gets a refresh token. The request carries the server URL as theresourceand a PKCE challenge. - The server sends the browser back to
<PUBLIC_URL>/auth/mcp/callback. Byname checks that the same admin finished within 15 minutes, checks theissthe server sent back when it says it sends one, trades the code for tokens and returns to Settings > MCP server, which grades the server once.
When a step fails, the page says which one and what the server sent. A server that fails a step fails it for every MCP client, so the Authorization category of the grade usually names the same problem.
Byname keeps the sign-in, its registration and tokens, encrypted with ENCRYPTION_KEY. It sends the access token as Authorization: Bearer <token> to the server URL and to no other address, and never shows it or returns it from any API. When the access token has expired, the next grade trades the refresh token for a new one at the authorization server first. When the server refuses that, the sign-in is over: Byname deletes it, the grade runs as before sign-in and says it needs sign-in, and an admin signs in again. Byname sends the resource with the authorization request and the code, but not with a refresh, which the OAuth library it uses cannot do.
Sign in with an account that can only read. The grade lists tools and never calls one, but the sign-in can do whatever the server lets that account do. Sign out deletes the sign-in from Byname. It does not revoke it at the server, so to end it there too, remove Byname’s access in the server’s own settings.
The sign-in checks always run signed out, so signing in never hides a broken sign-in. A sign-in finishes only if the server URL is still the one the admin started from. Changing the URL to another host, port or scheme signs out, so the token never reaches a server it was not made for. Removing the server signs out too.
How the score works
Each check earns all, part or none of its weight: pass, partial or fail. A check that does not apply is skipped and leaves the sums. A category’s score is the weight its checks earned over the weight of the checks that applied, from 0 to 100.
The overall score is the mean of the categories that count, each weighing the same. Connection, server metadata, tool definitions and tool documentation always count. Authorization counts only when the server asks for sign-in. Discoverability would be left out if none of its checks could run, but the manifest and setup page checks run on every grade, so it counts too. When a category that always counts has no check that could run, such as when sign-in blocked the session, it counts as 0, and the grade says it is partial. Its partial field says why: needs_sign_in when the server asks for sign-in and no admin has signed in, no_session when no session started for another reason, and no_tools when the server listed no tools. It is empty when the grade is complete.
| Letter | Score |
|---|---|
| A+ | 95 to 100 |
| A | 85 to 94 |
| B | 70 to 84 |
| C | 55 to 69 |
| D | 40 to 54 |
| F | Below 40 |
Checks that judge each tool give partial credit by share: when 3 of 4 tools have titles, the check earns three quarters of its weight, and its finding names up to five tools that fell short. Tool documentation scores each tool from 0 to 100 on its five checks and averages the tools, and the tools table shows each tool’s score.
How long the session took to start is shown but not scored, so the same server gets the same grade from anywhere.
Byname keeps the newest 50 grades and draws their scores under History. Each grade records the version of the check list it used, such as 2026-11, so a score that moved because the rules changed can be told apart from one that moved because the server did.
Checks
Each check has an ID that never changes. The REST API and MCP tools return it with each result.
Connection
How a client reaches the server and starts a session. A server that only speaks the older HTTP with SSE transport gets half the transport check. The protocol version check gives full credit for 2026-07-28, three quarters for 2025-11-25, half for 2025-06-18 and none for older versions. The last three checks need a session and are skipped without one.
| Check | Weight | What it looks for | Fix |
|---|---|---|---|
connection.https |
10 | Served over HTTPS | Serve the endpoint over https. |
connection.transport |
10 | Speaks Streamable HTTP | Serve MCP over Streamable HTTP: answer a POST to this URL with JSON or an event stream. |
connection.negotiate |
10 | Session starts | Answer server/discover or initialize with serverInfo and capabilities. |
connection.version |
6 | Current protocol version | Support protocol version 2026-07-28. |
connection.bad_version |
3 | Rejects an unknown protocol version | Answer HTTP 400 when MCP-Protocol-Version names a version you do not support. |
connection.unknown_method |
3 | Rejects unknown methods | Answer an unknown method with JSON-RPC error -32601 (method not found). |
connection.origin |
2 | Refuses foreign origins | Answer HTTP 403 when the Origin header names a site you do not trust. |
Authorization
Whether a client can sign in on its own, following the MCP authorization spec. Skipped, and left out of the score, when the server does not ask for sign-in.
| Check | Weight | What it looks for | Fix |
|---|---|---|---|
authorization.www_authenticate |
2 | Sign-in challenge names its metadata | Send WWW-Authenticate: Bearer resource_metadata="<url>" with every 401. |
authorization.resource_metadata |
3 | Protected resource metadata | Serve RFC 9728 metadata at /.well-known/oauth-protected-resource with resource set to this URL and your authorization_servers. |
authorization.as_metadata |
2 | Authorization server metadata | Serve RFC 8414 metadata at the authorization server’s /.well-known/oauth-authorization-server. |
authorization.pkce |
3 | PKCE with S256 | List S256 in code_challenge_methods_supported. |
authorization.registration |
2 | Clients can register themselves | Support Client ID Metadata Documents or dynamic client registration (registration_endpoint). |
Server metadata
What the server says about itself when a session starts. Clients show it when people add the server, and agents read the instructions to decide when to use it.
| Check | Weight | What it looks for | Fix |
|---|---|---|---|
metadata.name |
10 | Server name | Set serverInfo.name. |
metadata.title |
10 | Server title | Set serverInfo.title to the name people should see. |
metadata.description |
20 | Server description | Set serverInfo.description to one sentence on what the server does. |
metadata.version |
10 | Server version | Set serverInfo.version. |
metadata.website |
10 | Website | Set serverInfo.websiteUrl to the server’s home page. |
metadata.icon |
10 | Icon | Add serverInfo.icons with an SVG, or an image with sizes of at least 64x64. |
metadata.instructions |
20 | Instructions | Return instructions that tell an agent when and how to use the server. |
metadata.capabilities |
10 | Capabilities declared | Declare the capabilities you serve: tools, resources or prompts. |
Tool definitions
Whether each tool is defined so every client accepts it. Byname reads the tool list as the server sent it, so a tool a client library would drop silently is still graded.
| Check | Weight | What it looks for | Fix |
|---|---|---|---|
definitions.listed |
3 | Lists tools | Declare the tools capability and list at least one tool. |
definitions.name_chars |
3 | Tool names use safe characters | Use only A-Z a-z 0-9 _ . - in tool names, 1 to 128 long. |
definitions.name_unique |
3 | Tool names are unique | Give every tool a distinct name. |
definitions.name_64 |
1 | Tool names fit 64 characters | Keep tool names to 64 characters; many clients cut or refuse longer ones. |
definitions.input_schema |
3 | Input schemas are valid | Give every tool an inputSchema of type object, with x-mcp-header only on string, integer or boolean properties and each header name unique. |
definitions.output_schema |
2 | Output schemas are objects | Make every outputSchema a JSON Schema of type object. |
definitions.descriptions |
2 | Tools have descriptions | Give every tool a description. |
definitions.titles |
1 | Tools have titles | Give every tool a title. |
definitions.annotations |
1 | Tools declare every hint | Declare readOnlyHint, destructiveHint, idempotentHint and openWorldHint on every tool. |
definitions.desc_2kb |
1 | Descriptions fit 2 KB | Keep each tool description under 2 KB and move detail into the input descriptions. |
definitions.hidden_chars |
3 | No hidden characters | Remove invisible, control and bidirectional characters from tool names, descriptions and schemas. |
definitions.tool_budget |
1 | Tool count fits an agent | Serve 40 tools or fewer; merge or split the rest into other servers. |
definitions.declared_lists |
2 | Declared lists answer | Answer resources/list and prompts/list when you declare those capabilities. |
Tool documentation
Whether an agent can tell from the definition alone what each tool does and how to call it. A tool with no inputs passes the inputs check.
| Check | Weight | What it looks for | Fix |
|---|---|---|---|
documentation.title |
15 | Titled for people | Give each tool a title that says more than its name. |
documentation.description |
35 | Described in full | Describe each tool in at least 40 characters: what it does, when to use it and what it returns. |
documentation.inputs |
30 | Inputs described | Give every input property a type and a description. |
documentation.annotations |
10 | Behavior hints | Declare the four behavior hints on each tool. |
documentation.output |
10 | Output described | Add an outputSchema describing what each tool returns. |
Discoverability
Whether people and agents can find the server. The manifest check also looks at /mcp.json on the endpoint’s origin, and passes in part when the manifest it finds does not name this URL. The registry check is skipped, not failed, when the registry does not answer.
| Check | Weight | What it looks for | Fix |
|---|---|---|---|
discoverability.manifest |
1 | Manifest names the endpoint | Serve /.well-known/mcp.json on the endpoint’s origin naming this URL. |
discoverability.setup_page |
1 | Setup page | Answer a browser (Accept: text/html) at this URL with a page on how to connect. |
discoverability.registry |
1 | Listed in the MCP Registry | Publish the server to registry.modelcontextprotocol.io with this URL as a remote; a name under io.github.* may not be found by domain. |
AI review of tool docs
The rules check that a title, a description and input descriptions are there. They cannot tell whether an agent would understand them. The AI review asks a model. Press Review tool docs under the tools table on Settings > MCP server, or call POST /v1/mcp-server/review. It needs a Treg token and the runs:write scope.
For each tool, a model scores three parts from 0 to 100 and says in one sentence what to change:
- Title: a short name for people that says more than the tool name.
- Description: what the tool does, when to use it and what it returns.
- Inputs: each input’s meaning, format and limits. A tool with no inputs scores 100.
A tool’s AI score weighs the three parts as the rules weigh the same checks: 15 for the title, 35 for the description and 30 for the inputs. The review’s score is the mean of the reviewed tools. The page shows it beside the rules’ score on the tool documentation tile, as in “Rules 64 · AI 63”, and each tool’s AI score and reasons in the tools table. It is advisory. The grade’s score, letter and categories never change with it.
What the model sees is the tool as the newest grade stored it: its name, title, description, each input with its type, whether it is required and its description, the behavior hints it declares and whether it has an output schema. Byname does not connect to your server again, and the sign-in is never sent. The system prompt tells the model that the definition is third-party data to judge and never instructions to follow. A definition longer than about 5,000 characters is cut at the end, and the model is told so.
Each tool is one call to Claude Haiku through Treg’s DataForSEO route, about $3.00 per 1,000 tools, so a server with 30 tools costs about $0.09. The card says what reviewing the tools left would cost before you start, from the price of past reviews. A review:
- Starts within a minute in the background, and shows in Check history as Reviewing MCP tool docs. Asking again while one is queued or running returns that one.
- Reads at most 100 tools, worst rule score first.
- Checks the monthly spend cap before every call and stops at it with the status
capped. Its spend counts toward the cap, inmonth.mcp_review_usdfromGET /v1/costs. - Stops with the status
refusedwhen Treg refuses a call, such as for an empty balance. A refused call costs nothing. - Records a reply that is not the scores asked for as a failed review of that tool. The call was paid, so it counts toward the cap, and the review moves on to the next tool.
Reviews are kept by tool definition, not by grade. A tool whose name, title, description, inputs, hints and output schema are unchanged keeps its review on every later grade and is never paid for twice. Change the definition and grade again, and only that tool is left to review. When Byname changes the review’s instructions, every tool can be reviewed again. A review that stopped early, at the cap, on a refusal or because Byname restarted, carries on from where it stopped the next time you start one.
What the grade sends
The grade makes at most 40 requests, reads at most 8 MiB in all and 2 MiB from any one response, and stops after 30 seconds. Each request carries User-Agent: Byname/<version>. The grade sends:
- One
initializerequest signed out, to find the transport and whether the server asks for sign-in. - When it does, requests for the protected resource metadata and the authorization server metadata it names.
- Unless the server asks for sign-in and no admin has signed in, a session, with the access token when an admin has:
initialize, thentools/listpage by page, thenresources/listandprompts/listwhen the server declares them. Then four requests on that session: one with an unknown protocol version, one with an unknown method, and the same harmless request with and without a foreignOrigin. When no session starts, one request for the older HTTP with SSE transport. - At the same time, signed out: a browser-style request to the URL,
/.well-known/mcp.jsonand then/mcp.jsonon its origin, and a search of the official MCP Registry for the server’s domain name.
It never sends tools/call, so no tool runs. Byname refuses private and loopback addresses after DNS, as it does for every address someone else chose, unless SOURCES_ALLOW_PRIVATE_IPS is set.