writ
Allow, deny or step-up checks on AI agent writes, with a tamper-evident log
- Pricing
- Freemium
- Platforms
- CLI, API
- Runs
- Locally
- Version
- 0.2.5
- Listing updated
- 3 days ago
About writ
writ is a freemium MCP server for security. It runs locally on your machine and is started by your AI client.
Writ is aimed at the moment an agent is about to refund a payment, change a permission, send an email or delete something. The scanner (writ scan .) finds likely write sites in Python, TypeScript and JavaScript code, such as Stripe calls and database mutations, maps them to verbs, and can insert a writ_check() per Python function with --apply.
A check posts five fields (sponsor, agent, verb, target, purpose) and policy returns ALLOW, DENY or STEP_UP. An allowed grant is spent on use. Each decision lands in an HMAC-SHA256 chained audit log, and writ verify-chain shows whether any record was altered. The MCP package exposes 19 tools, including writ_check, writ_lease, writ_execute, writ_receipts and a writ_sandbox demo that needs no key.
Sponsor tools (writ_grant, writ_revoke, writ_reinstate) need a separate sponsor token, and the package is MIT licensed.
Install
Run in a terminal
claude mcp add writ --env WRIT_API_KEY='<WRIT_API_KEY>' --env WRIT_SPONSOR_TOKEN='<WRIT_SPONSOR_TOKEN>' -- uvx writ-mcpAdd to claude_desktop_config.json
{
"mcpServers": {
"writ": {
"command": "uvx",
"args": [
"writ-mcp"
],
"env": {
"WRIT_API_KEY": "<WRIT_API_KEY>",
"WRIT_SPONSOR_TOKEN": "<WRIT_SPONSOR_TOKEN>"
}
}
}
}Add to ~/.cursor/mcp.json
{
"mcpServers": {
"writ": {
"command": "uvx",
"args": [
"writ-mcp"
],
"env": {
"WRIT_API_KEY": "<WRIT_API_KEY>",
"WRIT_SPONSOR_TOKEN": "<WRIT_SPONSOR_TOKEN>"
}
}
}
}Add to .vscode/mcp.json
{
"servers": {
"writ": {
"type": "stdio",
"command": "uvx",
"args": [
"writ-mcp"
],
"env": {
"WRIT_API_KEY": "<WRIT_API_KEY>",
"WRIT_SPONSOR_TOKEN": "<WRIT_SPONSOR_TOKEN>"
}
}
}
}Add to ~/.codeium/windsurf/mcp_config.json
{
"mcpServers": {
"writ": {
"command": "uvx",
"args": [
"writ-mcp"
],
"env": {
"WRIT_API_KEY": "<WRIT_API_KEY>",
"WRIT_SPONSOR_TOKEN": "<WRIT_SPONSOR_TOKEN>"
}
}
}
}Add to your client's MCP settings (most use this shape)
{
"mcpServers": {
"writ": {
"command": "uvx",
"args": [
"writ-mcp"
],
"env": {
"WRIT_API_KEY": "<WRIT_API_KEY>",
"WRIT_SPONSOR_TOKEN": "<WRIT_SPONSOR_TOKEN>"
}
}
}
}Configuration
WRIT_API_KEYWrit API key (get one free at https://withwrit.com)RequiredWRIT_SPONSOR_TOKENWrit sponsor token, only required for sponsor tools (grant, revoke, reinstate)WRIT_BASE_URLOptional custom Writ API base URL (default: https://api.withwrit.com)
Tools this server provides (10)
Taken from the project documentation; the running server may differ.
- writ_check
- Returns ALLOW, DENY or STEP_UP and a 90 second purpose-bound token.
- writ_verify_token
- Verifies a token at the point of action.
- writ_lease
- Converts an ALLOW token into a single-use gated lease.
- writ_execute
- Runs one gated upstream request.
- writ_grant
- Approves a STEP_UP with a one-time grant.
- writ_revoke
- Turns on the kill switch for a principal.
- writ_reinstate
- Turns the kill switch off.
- writ_receipts
- Returns the audit trail of decisions.
- writ_policy
- Shows the tenant verb policy.
- writ_sandbox
- Free 90-second demo grant.
What it does
- Write-site scanner
- Finds risky writes in Python, TypeScript and JavaScript.
- Three outcomes
- ALLOW, DENY or STEP_UP per request.
- Chained audit log
- HMAC-SHA256 chain that verify-chain can check.
- Single-use leases
- Convert an allow into a gated execution lease.
- Sponsor kill switch
- Revoke and reinstate a principal.
Good for
- Require approval before an agent issues a refund
- Audit every agent decision in a SIEM stream
- Try the gate in a 90-second sandbox
- Block an agent's deletes until a human approves
Pricing
Freemium
10,000 receipts/month free, then $1 per 1,000 receipts
Prices change. Check withwrit.com before you buy.
writ FAQ
What does it cost?
10,000 receipts a month are free with no credit card, then $1 per 1,000 receipts.
How do I try it with no key?
Call `writ_sandbox`, then `writ_check` with verb demo_write.
Which key is required?
WRIT_API_KEY; WRIT_SPONSOR_TOKEN is only for sponsor tools.
Does it claim compliance?
The site says it supports NIST SP 800-53 AU-9 and your assessor determines compliance.
Is writ free?
writ has a free plan, with paid plans for more usage or features.
How do I add writ to Claude Code?
Run this command in your terminal: claude mcp add writ --env WRIT_API_KEY='<WRIT_API_KEY>' --env WRIT_SPONSOR_TOKEN='<WRIT_SPONSOR_TOKEN>' -- uvx writ-mcp
What are the best alternatives to writ?
The closest alternatives to writ are REA, Codebase Memory, GitHub, Serena MCP: the IDE for your agent and XERJ.
Alternatives to writ

REA
MCP serverCLI and MCP server that lets coding agents reverse engineer apps and binaries
Runs locally- Open source
- 464K GitHub stars
- Developer tools

Codebase Memory
MCP serverLocal MCP server that builds a code knowledge graph for AI coding agents
Runs locally- Open source
- 48.7K GitHub stars
- Knowledge and memory

GitHub
MCP serverOfficial MCP server connecting AI assistants to GitHub repos, issues and workflows
Not checked yet- Remote
- Open source
- 34.5K GitHub stars
- Developer tools

Serena MCP: the IDE for your agent
MCP serverMCP toolkit giving coding agents symbol-level code retrieval and editing
Runs locally- Open source
- 31.5K GitHub stars
- Developer tools

XERJ
MCP serverLocal search engine for AI agents with cited answers over your code and docs
Runs locally- Open source
- 19.2K GitHub stars
- Knowledge and memory

Ouroboros
MCP serverSpec-first layer that pins requirements and verifies results of AI coding agent work
Runs locally- Open source
- 6.4K GitHub stars
- Developer tools