MCP server
Connect a writing agent to readlint.com with a local MCP server. MCP lets an agent discover named tools and call them without a shell. Agents with shell access should use the CLI. You need Node.js 22 or newer, or Python 3.11 or newer with uv, an MCP client such as Claude Code, and an authorized readlint.com account.
Install and authenticate
The npm package runs without a global installation. On macOS or Linux, sign in before starting your MCP client:
npx readlint.com login
Follow the printed URL, compare the code and approve it in your browser. Login prints {"signed_in": true} and saves a 30-day key. The MCP process uses that saved login. Python users can run uvx readlint login and then uvx readlint mcp.
For CI, Windows or a separate agent key, create an API key. Give READLINT_API_KEY to the MCP server process through your client's secret settings. Key precedence is --api-key, environment, saved login. Prefer the environment over process arguments. Never put credentials in tool arguments. The server cannot use browser cookies or start interactive login.
Configure a client
For Claude Code, save this configuration as readlint-mcp.json in your project:
{
"mcpServers": {
"readlint.com": {
"command": "npx",
"args": ["--yes", "readlint.com", "mcp"]
}
}
}
Start Claude Code with that file:
claude --mcp-config ./readlint-mcp.json
Run /mcp in Claude Code to confirm readlint.com is connected. If it cannot find npx, use its absolute path from command -v npx. For Python, set command to the absolute path to uvx and args to ["readlint", "mcp"]. Both CLIs share the same login on macOS and Linux. If you use a key instead, supply READLINT_API_KEY in the environment before starting the client.
This is local stdio MCP. Standard output carries protocol messages and diagnostics go to stderr. Installation, MCP configuration and tool calls are outside the four-client tabs because they configure or use the MCP interface itself. API operations have examples for every client.
Discover tools
Connect the server and inspect its tool list. It contains exactly four tools:
| Tool | Arguments | Result |
|---|---|---|
list_evaluations | Optional limit and offset | Summary items and next_offset. |
get_evaluation | evaluation_id (UUID) | Saved status and report. |
evaluate_article | article and idempotency_key; optional title and description | Evaluation id, status, expires_at and report. Uses account credit. |
delete_evaluation | evaluation_id (UUID) | deleted and id. Permanently deletes the report. |
First success
Ask your agent: “Use readlint.com's list_evaluations tool with limit 25 and offset 0. Tell me whether there are saved reports. Do not submit an article.”
The tool arguments are:
{"limit": 25, "offset": 0}
For an empty account, expect {"items": [], "next_offset": null} with isError: false. Tool results include the same JSON in text and structured content. Listing reports needs authentication but no evaluation allowance.
Evaluate and recover
When your account has evaluation access, ask the agent to review an approved draft with evaluate_article. It must choose and retain a unique idempotency_key with the exact source, title and description. See checks and findings before acting on a report.
For running, call get_evaluation every 15–30 seconds for up to ten minutes. Stop and retain the ID and key if it has not finished. After a timed-out submission, read the ID if known. Otherwise repeat evaluate_article with the same key and identical input. A new key starts another evaluation and can add usage.
Errors set isError: true and include error.code and a sanitized error.message. For authentication_required, log in again or replace the key. For invalid input, correct the arguments. Reads and keyed submissions retry transient failures at most twice. A stored failed evaluation is terminal. After a lost delete response, get the ID first; evaluation_not_found confirms deletion. See limits and recovery for expiry and retry details.