claude-async
Click on "Install Server".
Wait a few minutes for the server to deploy. Once ready, it will show a "Started" state.
In the chat, type
@followed by the MCP server name and your instructions, e.g., "@claude-asyncstart a long background job to refactor the codebase"
That's it! The server will respond to your query, and you can continue using it as needed.
Here is a step-by-step guide with screenshots.
claude-async
A fire-and-poll MCP server that lets Claude Code run long background jobs without hitting the Claude app's tool-call timeout.
Requirements: Node.js 18+ (20+ recommended) and the claude CLI installed and authenticated.
License: MIT
The problem
The Claude desktop app caps how long any single MCP tool call can run — roughly 60s per call, with a ~4–5 minute transport ceiling. A long Claude Code task (a big refactor, a multi-step build) outlives that window, the call drops, and you lose the in-flight work and start over.
Related MCP server: taskqueue-mcp
The fix
claude-async spawns Claude Code as a detached background process and hands back a jobId in milliseconds. You poll for results whenever you like.
No single tool call lives long enough to time out.
Jobs are detached, so they survive a bridge restart — reconnect with the same
jobId.Output and exit status are written to disk per job, so nothing is lost.
Three tools: claude_start, claude_check, claude_jobs.
Set it up with Claude
Paste this prompt to Claude Code, or to Claude in the desktop app with this repo open. It stands the server up end to end and verifies it:
You're installing the `claude-async` MCP server from this repository. Work through
these steps in order and report the result of each. If any step fails, stop and show
me the exact error — do not continue.
1. Confirm prerequisites: `node -v` (must be 18+) and `claude --version` (the Claude
CLI must be installed and authenticated).
2. From the repo root, run `npm install`.
3. Verify the fire-and-poll plumbing without needing a live model:
`node claude-async-server.mjs --selftest`. It must report the detach → poll → exit
cycle passing.
4. Register the server with Claude Desktop by running `node register-desktop.mjs`.
(On Windows Store / MSIX installs this writes to the virtualized config path that
the in-app "Edit Config" button does NOT open — that mismatch is a known
silent-failure trap.) If you are not on Windows, add the config block from the
"Manual setup" section of the README instead.
5. Tell me to fully quit and relaunch Claude Desktop, then confirm `claude-async`
appears with status `running` under Settings → Connectors.
6. Smoke-test the round trip: call `claude_start` with the prompt "print hello world",
take the returned `jobId`, and poll `claude_check` until `status` is `completed`
and `exitCode` is 0. Show me the output.Manual setup
If you'd rather not use the prompt above, or you're not on Windows:
Install dependencies:
npm installVerify the plumbing:
node claude-async-server.mjs --selftestRegister the server by adding it to your Claude Desktop config file:
Windows (Store / MSIX install):
%LOCALAPPDATA%\Packages\Claude_pzs8sxrjxfjjc\LocalCache\Roaming\Claude\claude_desktop_config.json(The in-app "Edit Config" button opens%APPDATA%\Claude\instead, which the Store build does not read. Edit the path above, or just runnode register-desktop.mjs.)Windows (standard install):
%APPDATA%\Claude\claude_desktop_config.jsonmacOS:
~/Library/Application Support/Claude/claude_desktop_config.json
Add:
{
"mcpServers": {
"claude-async": {
"command": "node",
"args": ["/absolute/path/to/claude-async/claude-async-server.mjs"]
}
}
}Fully quit and relaunch Claude Desktop — closing the window is not enough. The server should then show as
running.
Tools
Tool | Input | Returns |
|
|
|
|
|
|
| — | every known job with its current status |
status is one of running | completed | failed | orphaned | unknown. completed is
reported only when the job exited with code 0; a non-zero exit is failed.
Field names are camelCase throughout — it's
jobId, notjob_id.
Configuration
Optional environment variables:
Variable | Default | Purpose |
|
| Path to the |
|
| Where per-job logs and exit codes are stored |
|
| Default working directory for jobs |
How it works
claude_start writes a small job record and spawns a detached worker
(job-runner.mjs) that runs the claude CLI, streaming stdout/stderr to that job's
log files and recording the exit code when it finishes. The parent returns the jobId
immediately and the worker is unref'd, so it keeps running even if the MCP bridge is
recycled. claude_check simply reads that job's status and log tail from disk — also
instant. Because state lives on disk rather than in the live connection, a dropped or
restarted bridge never costs you a running job.
Gotchas
Server shows
runningbut tools don't respond: fully quit and relaunch the app; closing the window doesn't reload MCP servers.Windows Store install, config edits ignored: you're editing the wrong file — see the MSIX path under Manual setup, or run
register-desktop.mjs.Very large
claude_startprompts fail on Windows (ENAMETOOLONG): the prompt is passed as a CLI argument, so keep it modest and have the job read large inputs from a file instead.
License
MIT — see LICENSE.
Maintenance
Resources
Unclaimed servers have limited discoverability.
Looking for Admin?
If you are the server author, to access and configure the admin panel.
Latest Blog Posts
MCP directory API
We provide all the information about MCP servers via our MCP API.
curl -X GET 'https://glama.ai/api/mcp/v1/servers/icey2488/claude-async'
If you have feedback or need assistance with the MCP directory API, please join our Discord server