claude_run
Run a prompt through Claude using local CLI credentials. Use it from non-Claude MCP clients or to cross-check answers from other AI backends.
Instructions
Send a prompt to Claude via the local Claude Code CLI. Use this when the MCP client is NOT Claude (e.g. Cursor, Windsurf, Zed) or for cross-checking results from other AI backends. Uses cached Anthropic auth.
Tool call template
Replace each placeholder with a value matching the input schema. Only required parameters are included; add optional parameters as needed.
{
"id": 1,
"jsonrpc": "2.0",
"method": "tools/call",
"params": {
"arguments": {
"prompt": "<prompt>"
},
"name": "claude_run"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| model | No | Claude model to use, e.g. "claude-sonnet-4-6", "claude-opus-4-6", "claude-haiku-4-5". Omit to use the default model. | |
| prompt | Yes | Prompt or question to send to Claude. | |
| timeout_seconds | No | Max seconds to wait for a response. | |
| working_directory | No | Ignored for Claude (always runs from homedir to prevent agentic mode). Kept for API compatibility. |