Nestor MCP Server
The @nestor/mcp package exposes Nestor's agent, workflow, and skill surface as a Model Context Protocol server. Any MCP-compatible client can list agents, kick off workflows, or install skills without touching the CLI.
Overview
The Model Context Protocol (MCP) is Anthropic's open standard for connecting LLM clients to external tools and data. Nestor ships a first-party MCP server that wraps the same primitives used by the CLI and Studio — agents, workflows, skills — so you can drive Nestor directly from Claude Desktop, Cursor, Continue, Cline, or any client that speaks MCP over stdio.
The server is implemented in packages/mcp/src/server.ts with tool modules under packages/mcp/src/tools/. It shares the NestorStore SQLite database with the rest of the stack, so a workflow kicked off from Claude Desktop shows up in Studio the moment you refresh.
Why MCP matters
Without MCP, using Nestor from an IDE means shelling out to npx nestor-sh and copy-pasting output back. MCP turns Nestor into a set of first-class tools inside the assistant:
- Claude Desktop — ask Claude to "run the code-review workflow on this PR", and Nestor executes it under the assistant's supervision.
- Cursor / Continue / Cline — same tools inside your editor. No context switch to the terminal.
- Shared memory — the MCP server reads and writes the same SQLite store as the CLI. One knowledge graph, multiple front-ends.
- Governance — every tool call flows through the same Rust security core, guardrails, and trust scoring as a direct CLI invocation.
The 15 tools
The server currently exposes 15 tools across three functional groups. The canonical list is assembled in packages/mcp/src/tools/index.ts by concatenating agentTools, workflowTools, skillTools, and metaTools.
Agent ops (5)
| Tool | Purpose |
|---|---|
nestor_list_agents | List all registered agents. Filter by trust level. |
nestor_create_agent | Create a new agent with an LLM adapter (claude, openai, ollama…) and model. |
nestor_run_agent | Run an agent with a prompt and return the response. |
nestor_get_agent_status | Inspect an agent's current run state and recent activity. |
nestor_delete_agent | Remove an agent from the store. |
Workflow ops (4)
| Tool | Purpose |
|---|---|
nestor_list_workflows | List registered workflow definitions. |
nestor_create_workflow | Register a new workflow (name + description). |
nestor_run_workflow | Start an execution with optional JSON-encoded input. |
nestor_get_run_status | Poll the state of a running or completed workflow. |
Skill ops (6)
| Tool | Purpose |
|---|---|
nestor_list_skills | List installed skills, optionally filtered by tag. |
nestor_install_skill | Install a skill from a local path or a git URL (depth 1, hooks disabled). |
nestor_scan_skill | Run the static-analysis scanner on a skill before trusting it. |
nestor_build_agent | Meta-tool: scaffold a new agent from a prompt description. |
nestor_build_skill | Meta-tool: scaffold a new skill (SKILL.md + tests) from a spec. |
nestor_translate_skill | Convert a skill between Nestor, MCP, LangChain, CrewAI, and OpenAI function formats. |
Install in Claude Desktop
Claude Desktop loads MCP servers from claude_desktop_config.json. On macOS the file lives at ~/Library/Application Support/Claude/claude_desktop_config.json; on Windows it lives at %APPDATA%\Claude\claude_desktop_config.json.
Add Nestor to the mcpServers object (the npm package is nestor-sh, not nestor):
{
"mcpServers": {
"nestor": {
"command": "npx",
"args": ["-y", "nestor-sh", "mcp"],
"env": {
"NESTOR_HOME": "~/.nestor"
}
}
}
}
Restart Claude Desktop. The 15 tools appear under the plug icon. Ask Claude to "list Nestor agents" to confirm the handshake.
Heads up: the MCP server writes to the same SQLite store as the CLI. Don't run npx nestor-sh start and the MCP server against the same NESTOR_HOME on Windows without WAL mode enabled — concurrent writers will serialize.
Other clients
- Cursor — add the same JSON block to
~/.cursor/mcp.json. - Continue — declare an
mcpServersentry in~/.continue/config.json. - Cline — open the MCP panel, paste the JSON snippet, toggle the server on.
- Custom clients — any stdio MCP client works. The tool schema is the exported
NESTOR_TOOLSconstant.
For more on the underlying primitives, see the documentation overview, or dive into agents, workflows, and skills.