Call From your AI 03 / 07
Connect an AI assistant
Give Claude, ChatGPT, Cursor or any MCP client your Writ APIs and Writ’s tools.
On this page
Connect Writ to your AI assistant and it can read pages, run the APIs you saved, sign in to sites as you, and build new APIs while you chat. Writ is an MCP server: any client that speaks the Model Context Protocol can use it.
Connect Writ Cloud
Pick your client and follow its tab. The address is https://api.usewrit.app/mcp. The
first time a Writ tool runs, your client opens a Writ page where you approve access with your own
login. There is no key to create or paste.
Settings → Connectors → Add custom connector
URL: https://api.usewrit.app/mcp
Click Add, then sign in to Writ when Claude asks. Settings → Connectors → Create (developer mode)
MCP server URL: https://api.usewrit.app/mcp
Authentication: OAuth
Then sign in to Writ when ChatGPT asks. claude mcp add --transport http writ-cloud https://api.usewrit.app/mcp
# Then type /mcp in Claude Code, pick writ-cloud and sign in to Writ. Settings → Connectors → Add custom connector
URL: https://api.usewrit.app/mcp
Click Add, then sign in to Writ when Claude asks. ~/.cursor/mcp.json
{
"mcpServers": {
"writ-cloud": {
"type": "http",
"url": "https://api.usewrit.app/mcp"
}
}
} .vscode/mcp.json
{
"servers": {
"writ-cloud": {
"type": "http",
"url": "https://api.usewrit.app/mcp"
}
}
} ~/.codex/config.toml
[mcp_servers.writ-cloud]
url = "https://api.usewrit.app/mcp"
# Then sign in from a terminal:
# codex mcp login writ-cloud ~/.codeium/windsurf/mcp_config.json
{
"mcpServers": {
"writ-cloud": {
"serverUrl": "https://api.usewrit.app/mcp"
}
}
} The same setups, with a ready-to-copy snippet for each client, are in the app under Developers → Endpoints → MCP tools: choose All Writ tools in 1. Server scope, then pick your client in 2. Pick a client.
Use an API key instead
Some clients only run local commands, and some setups prefer a fixed key. Create a key in Developers → API Keys (it starts with wt_ and is shown once), then run Writ’s
open-source bridge writ-mcp. It reads the key from the WRIT_API_KEY environment variable, so the key never appears in your shell history or process list.
claude mcp add writ-cloud -e WRIT_API_KEY=wt_... -- npx -y writ-mcp codex mcp add writ-cloud --env WRIT_API_KEY=wt_... -- npx -y writ-mcp claude_desktop_config.json
{
"mcpServers": {
"writ-cloud": {
"command": "npx",
"args": ["-y", "writ-mcp"],
"env": { "WRIT_API_KEY": "wt_..." }
}
}
} ~/.cursor/mcp.json
{
"mcpServers": {
"writ-cloud": {
"command": "npx",
"args": ["-y", "writ-mcp"],
"env": { "WRIT_API_KEY": "wt_..." }
}
}
} ~/.codeium/windsurf/mcp_config.json
{
"mcpServers": {
"writ-cloud": {
"command": "npx",
"args": ["-y", "writ-mcp"],
"env": { "WRIT_API_KEY": "wt_..." }
}
}
} .vscode/mcp.json
{
"servers": {
"writ-cloud": {
"type": "stdio",
"command": "npx",
"args": ["-y", "writ-mcp"],
"env": { "WRIT_API_KEY": "wt_..." }
}
}
}
A client that speaks HTTP can also send the key directly to https://api.usewrit.app/mcp as an Authorization: Bearer wt_... header. The key’s
scopes decide which tools work: see API keys and OAuth.
Install the Writ plugin
The plugin usewrit/writ-plugins connects Writ Cloud over OAuth and adds 10 skills that
teach your agent when to use each tool (reading pages, signed-in sites, building APIs, fixing a
workflow, monitors, automations and more). It runs no local code.
/plugin marketplace add usewrit/writ-plugins
/plugin install writ@usewrit codex plugin marketplace add usewrit/writ-plugins gemini extensions install https://github.com/usewrit/writ-plugins copilot plugin install usewrit/writ-plugins cursor://anysphere.cursor-deeplink/mcp/install?name=writ-cloud&config=eyJ1cmwiOiAiaHR0cHM6Ly9hcGkudXNld3JpdC5hcHAvbWNwP3BheW1lbnRzPW9mZiJ9
In Claude.ai, Claude Desktop and ChatGPT, use their plugin directory or the connector setup above.
The plugin connects with ?payments=off, so it never places an order (see the URL
options below).
URL options
Add these to the server address when you need them:
https://api.usewrit.app/mcp?tools=all
https://api.usewrit.app/mcp?payments=off
https://api.usewrit.app/mcp?tools=all&payments=off ?tools=all: your client receives every tool’s full reference up front. By default it gets a short index, and the full reference of a tool arrives when the assistant needs it. The full list costs many more tokens on every turn.?payments=off: removeswrit_paymentand every purchase option. A purchase asked for in the chat is sent back to the Writ app for you to finish there.
Writ Cloud or Writ Desktop
There are two Writ servers. They have the same kind of tools; what changes is where the work runs and what it costs.
| Writ Cloud | Writ Desktop | |
|---|---|---|
| Server name | writ-cloud | writ |
| Address | https://api.usewrit.app/mcp | A local command, or http://127.0.0.1:8131/mcp |
| Where browsers run | On Writ’s servers, while your computer is off | On your computer, over your own connection |
| Cost | Credits, as in the app | Free |
| Works from Claude.ai and ChatGPT | Yes | Through a linked account, or a public URL on paid plans |
| Pick it when | Jobs must run on a schedule or from anywhere | Sites block servers, or data must stay on your machine |
Connect Writ Desktop
-
Open the MCP tools card
In Writ Desktop, open MCP & APIs, tab Endpoints, section MCP tools. Keep All Writ tools on this computer in 1. Server scope.
-
Pick your client
Claude Code, Claude Desktop, Codex, Cursor, Windsurf and VS Code have One-click install. Pick yours in 2. Pick a client.
-
Add it
Click Add to {client} in 3. Copy the configuration. Writ writes the entry into the client’s own config file. Restart the client to load the tools.
For any other client, copy the command shown under Local command: it is the full
path of the Writ engine followed by mcp. This local connection needs no key, because the
client starts the engine itself.
{
"mcpServers": {
"writ": {
"command": "/path/to/writ-agentd",
"args": ["mcp"]
}
}
}
A client that speaks HTTP can use http://127.0.0.1:8131/mcp instead. It signs in with
OAuth (Writ asks you to approve it), or sends a local key from MCP & APIs → API Keys with the Run automations preset.
{
"mcpServers": {
"writ": {
"url": "http://127.0.0.1:8131/mcp",
"headers": { "Authorization": "Bearer wlk_..." }
}
}
} Reach Writ Desktop from Claude.ai or ChatGPT
Web assistants run on their own servers, so they cannot reach 127.0.0.1 on your
computer. You have two ways in:
- Link Writ Desktop to your Writ account and connect Writ Cloud as above. Your assistant lists your computer with
writ_devicesand sends runs to it. This is included on every plan: see Link Desktop to Writ Cloud. - Start a public URL in Writ Desktop and add
https://<words>.trycloudflare.com/mcpas a connector. Every call needs OAuth or a key. Starter and up See Writ Desktop.
What to ask your assistant
Ask in plain words. The assistant picks the tool; you don’t need to name it. A few examples and what happens:
| You say | Tool it uses |
|---|---|
| “Summarize the top 5 stories on Hacker News right now.” | writ_scrape reads the front page and its top items in one call. |
| “Turn books.toscrape.com into an API that returns books by category and page.” | writ_website_to_api opens a browser for the build; the assistant finds the site’s calls and saves the API. |
| “Email me when the price on this product page drops below 400.” | writ_create_monitor, then writ_wire_monitor with a price threshold. |
| “Run my top stories API for 10 stories and show a table.” | writ_list_workflows finds it, writ_run_workflow runs it. |
| “Check the status of my last order on store.example.com.” | writ_personas finds your sign-in, then writ_browser_use and writ_browser_act open your account. |
To collect a whole site or a section into a dataset, ask for it: the assistant uses writ_crawl_site. Every tool is described on MCP tools.
Sign-ins, CAPTCHAs, blocks and payments
Writ runs on your own accounts, with your own credentials and data, on sites you are authorized to use. Your assistant never sees a password, a code or a card number. When it needs one of them, it gives you a link instead.
Sign-ins
The assistant first looks for a saved sign-in (a persona) for the site. If there is none, it sends you a link to a small Writ window with only the sign-in form. You enter the login there, and the assistant waits until you save it. Never type a password into the chat. More in Sign-ins and secrets.
CAPTCHAs and verification codes
When a page shows a security check Writ cannot pass, the assistant uses writ_browser_ask_user. You get a link to the live browser, solve the check there, and the session
goes on. For a one-time code, you paste it in the Writ app and Writ types it into the page. On Pro and
up, Writ Cloud can also pass a CAPTCHA with a paid solver, for 10 credits; a check Writ passes by itself
costs nothing.
Sites that refuse Writ’s servers
Some sites refuse connections from servers. The answer then carries a message for you with what gets past it on your account, in this order: upgrade your plan, do it from your computer with Writ Desktop (free), or buy credits. Details in Blocks, CAPTCHAs and hand-offs.
Payments
To pay on a site, the assistant uses writ_payment. It sends you a link where you pick a
card and approve the purchase with its maximum amount. The card number is typed only on that store’s
site and never reaches the chat. Connect with ?payments=off to remove this tool.
Continue a build
A build that Writ’s own AI started can pause before it finishes. This happens when your plan’s included AI for the month is used up, when your credit balance cannot cover more of Writ’s AI, or when the build reaches the limit one build may use. Writ keeps everything it found so far: the pages, the site’s calls and the functions already tested. A build your assistant was driving also pauses this way if its browser closes before the save.
Your own assistant, connected to Writ Cloud or Writ Desktop over MCP, can finish it. Its own model does the thinking, so continuing does not use Writ’s AI.
-
Copy the prompt
Open the paused build in the Writ app. The card Continue in your AI assistant shows a prompt with the build number. Click Copy.
Prompt Continue my Writ build 4703 for books.toscrape.com. The goal: title, price and stock for every book in a category, with a page input. -
Paste it into your assistant
If your assistant is not connected yet, click Connect an assistant on the same card first.
-
Let it finish
The assistant reads the build with
writ_discovery_status, then callswrit_website_to_apiwith itsbuild_id. A browser opens on the same build, with its map and the functions already defined. The assistant defines and tests the rest, then saves withwrit_browser_save. The API is callable at once.
You can also ask “What is the status of my Writ build 4703?” at any time. With wait=true, writ_discovery_status holds one call for up to 75 seconds and answers when the build is
done or paused. The browser a build uses is part of the build and is never charged on top of it.
One API as its own server
The account server gives your assistant all your APIs and all of Writ’s tools. To hand one API to a person or an agent without giving them your account, give that API its own server.
-
Turn on MCP for the API
Open the API, tab Call, and click Enable MCP. Writ creates a server that exposes only that API’s functions.
-
Copy its address
The address has the form
https://mcp.usewrit.app/mcp/{ref}/{slug}, where{ref}is your organization’s id. In Developers → Endpoints → MCP tools, pick this server in 1. Server scope to get the setup for each client.Per-API server https://mcp.usewrit.app/mcp/your-org/top-stories
A client connects to it with OAuth or a wt_ key, the same way as the account server.
Pin an API as its own tool
On the account server, every saved API runs through writ_run_workflow. You can also pin
up to 20 APIs as their own tools, named run_<name>, with the API’s inputs as
parameters. Ask your assistant “Pin my top stories API as a tool”; it uses writ_pin_workflow_tool. Pinning is off by default, because every tool listed costs tokens
on every turn.