Editor and IDE Connection Guide (Cursor & VS Code)¶
This guide describes how to connect modern editor environments—specifically Cursor and Visual Studio Code—to SnatchArr's Model Context Protocol (MCP) server.
Protocol and Transport¶
SnatchArr exposes a native Model Context Protocol server over two transports:
- Streamable HTTP:
http://localhost:8080/api/v1/mcp(sessionless JSON-RPC 2.0). - Subprocess stdio:
snatcharr mcp stdio(ordocker exec -i -e SNATCHARR_URL -e SNATCHARR_API_KEY <container> /snatcharr-api mcp stdiofor container deployments), a thin proxy that delegates to/api/v1/mcpviaSNATCHARR_URLandSNATCHARR_API_KEY.
Authentication and Prerequisites¶
Connecting to SnatchArr requires:
- Enabling the MCP server on the settings page (
/settings) via the Enable MCP server (/api/v1/mcp) toggle. - Generating a scoped bearer API key on the account page (
/account) under the API keys section.
See Module Toggle Switch and Authentication and Permission Scopes for full scope descriptions, challenge behavior, and write-tool activation instructions.
Export the connection environment variables before launching your editor:
Cursor Configuration¶
Cursor reads MCP configurations from ~/.cursor/mcp.json (global) or .cursor/mcp.json (workspace root).
Option A: Subprocess stdio Transport (.cursor/mcp.json)¶
To compile and install the host snatcharr CLI binary, see Install the proxy.
Configure the stdio server using the local proxy or container:
{
"mcpServers": {
"snatcharr": {
"command": "snatcharr",
"args": ["mcp", "stdio"],
"env": {
"SNATCHARR_URL": "http://localhost:8080",
"SNATCHARR_API_KEY": "${env:SNATCHARR_API_KEY}"
}
}
}
}
For containerized deployments:
{
"mcpServers": {
"snatcharr": {
"command": "docker",
"args": ["exec", "-i", "-e", "SNATCHARR_URL", "-e", "SNATCHARR_API_KEY", "snatcharr-api", "/snatcharr-api", "mcp", "stdio"],
"env": {
"SNATCHARR_URL": "http://localhost:8080",
"SNATCHARR_API_KEY": "${env:SNATCHARR_API_KEY}"
}
}
}
}
Option B: Streamable HTTP Transport (.cursor/mcp.json)¶
Alternatively, configure the HTTP endpoint directly:
{
"mcpServers": {
"snatcharr": {
"url": "http://localhost:8080/api/v1/mcp",
"headers": {
"Authorization": "Bearer ${env:SNATCHARR_API_KEY}"
}
}
}
}
[!IMPORTANT] The
${env:SNATCHARR_API_KEY}syntax dynamically pulls the token from the host environment. Never commit plaintext tokens to version control.
Cursor Skills Installation¶
Copy the official Agent Skills bundle from skills/snatcharr/ in the repository root (ADR-0021 section 8):
- User global path:
~/.cursor/skills/snatcharr/SKILL.mdor~/.agents/skills/snatcharr/SKILL.md(verified inhttps://cursor.com/docs/context/skills) - Workspace path:
.cursor/skills/snatcharr/SKILL.mdor.agents/skills/snatcharr/SKILL.md(verified inhttps://cursor.com/docs/context/skills)
Cursor Verification¶
- In Cursor, open Settings, select Features, then navigate to MCP.
- Locate the
snatcharrserver in the list. - Verify that the indicator turns green and that the tool list displays standard read tools:
snatcharr_get_system_statussnatcharr_list_instancessnatcharr_list_runssnatcharr_get_hourly_caps
Visual Studio Code Configuration¶
Visual Studio Code supports MCP servers via workspace configuration files located at .vscode/mcp.json or through profile-level settings.
Option A: Subprocess stdio Transport (.vscode/mcp.json)¶
To compile and install the host snatcharr CLI binary, see Install the proxy.
Configure the stdio server using the local proxy:
{
"mcpServers": {
"snatcharr": {
"command": "snatcharr",
"args": ["mcp", "stdio"],
"env": {
"SNATCHARR_URL": "http://localhost:8080",
"SNATCHARR_API_KEY": "${env:SNATCHARR_API_KEY}"
}
}
}
}
For containerized deployments:
{
"mcpServers": {
"snatcharr": {
"command": "docker",
"args": ["exec", "-i", "-e", "SNATCHARR_URL", "-e", "SNATCHARR_API_KEY", "snatcharr-api", "/snatcharr-api", "mcp", "stdio"],
"env": {
"SNATCHARR_URL": "http://localhost:8080",
"SNATCHARR_API_KEY": "${env:SNATCHARR_API_KEY}"
}
}
}
}
Option B: Streamable HTTP Transport (.vscode/mcp.json)¶
Alternatively, configure the HTTP endpoint directly:
{
"mcpServers": {
"snatcharr": {
"type": "http",
"url": "http://localhost:8080/api/v1/mcp",
"headers": {
"Authorization": "Bearer ${env:SNATCHARR_API_KEY}"
}
}
}
}
[!IMPORTANT] Use the
${env:SNATCHARR_API_KEY}reference to keep credentials out of repository files. Ensure VS Code is launched from a shell whereSNATCHARR_API_KEYis exported.
Visual Studio Code Skills Installation¶
Copy the official Agent Skills bundle from skills/snatcharr/:
- User global path:
~/.copilot/skills/snatcharr/SKILL.mdor~/.agents/skills/snatcharr/SKILL.md(verified inhttps://code.visualstudio.com/docs/agent-customization/agent-skills) - Workspace path:
.github/skills/snatcharr/SKILL.mdor.agents/skills/snatcharr/SKILL.md(verified inhttps://code.visualstudio.com/docs/agent-customization/agent-skills)
Visual Studio Code Verification¶
- Open the VS Code Command Palette (
Ctrl+Shift+Pon Linux/Windows,Cmd+Shift+Pon macOS). - Run MCP: List Servers or inspect the MCP Output Channel in the Output panel.
- Confirm
snatcharris running and reports discovered tools includingsnatcharr_get_system_statusandsnatcharr_list_instances.
Official Documentation References¶
- Cursor MCP Documentation: Cursor official reference (Cursor Model Context Protocol) and (Cursor Agent Skills), checked 2026-10-24.
- Visual Studio Code MCP Documentation: Microsoft official reference (VS Code MCP Documentation) and (VS Code Agent Skills), checked 2026-10-24.
- SnatchArr Architectural Record: ADR-0021: LLM access module.