Local MCP Servers
Local MCP servers run on your machine as child processes, communicating over stdio. This is an alternative to Bolt for users who prefer to run tools directly on their system.
Tip
Prefer Bolt for security tools. Local MCP requires installing each tool yourself. See Bolt for the recommended approach with pre-installed security-tool plugins.
πΈ SCREENSHOT: local-mcp-config.png
Local MCP server configuration in cyberstrike.json
When to Use Local MCP
- Offline environments β no network access required
- Low latency β direct process communication over stdio
- Custom tools β your own MCP servers
- Privacy β data never leaves your machine
Cyberstrike also ships a few local MCP servers enabled by default: github-security, cve, and osint. Your config is merged on top of these.
Configuration Schema
A local server is one entry in the flat mcp map, keyed by server name:
{ "mcp": { "my-tools": { "type": "local", "command": ["npx", "-y", "my-mcp-server"], "environment": { "API_KEY": "{env:MY_API_KEY}" }, "enabled": true, "timeout": 5000 } }}| Field | Type | Description |
|---|---|---|
type | "local" | Required. Selects a stdio child-process server. |
command | string[] | Required. The command and its arguments as one array. |
environment | object | Optional. Extra environment variables for the process. |
enabled | boolean | Optional. Start the server on launch (default: true). |
timeout | number | Optional. Request timeout in ms (default: 5000). |
Caution
The mcp object is a flat map keyed by server name β there is no servers wrapper. command is a single array (command + args together); there is no separate args, cwd, autoStart, or restart field. Unknown keys are rejected.
Adding via the TUI
The easiest way to add a local server is from the TUI with the /mcps command.
Type /mcps to open the MCP manager. It lists configured servers with their status (β enabled / β disabled). Press space to toggle a server, a to add one, Enter to act on the selection.
To add a local server: press a β choose Local β enter the command (e.g. npx my-mcp-server) β optionally add environment variables (KEY=VALUE, KEY2=VALUE2) β confirm the auto-derived name. Cyberstrike tests the connection before saving; if it fails, the server is not added.
The TUI writes exactly the schema shown above.
Examples
Node.js server
{ "mcp": { "filesystem": { "type": "local", "command": ["npx", "-y", "@modelcontextprotocol/server-filesystem", "/path/to/allow"] } }}Python server
{ "mcp": { "python-tools": { "type": "local", "command": ["python", "-m", "mcp_server"] } }}Binary or Docker
Because command is the full argv, you can run a binary directly or wrap it in Docker β no special fields needed:
{ "mcp": { "docker-tools": { "type": "local", "command": ["docker", "run", "-i", "--rm", "--network=none", "mcp-tools:latest"] } }}Environment Variables
Pass variables to the server process with environment. Use {env:VAR} to reference a variable from your shell instead of hard-coding secrets:
{ "mcp": { "api-tools": { "type": "local", "command": ["node", "server.js"], "environment": { "API_KEY": "{env:MY_API_KEY}", "DEBUG": "mcp:*" } } }}Enabling & Disabling
Set enabled: false to keep a server configured but inactive (or toggle it in the /mcps dialog):
{ "mcp": { "heavy-tools": { "type": "local", "command": ["node", "server.js"], "enabled": false } }}Slow-Starting Servers
Raise timeout (milliseconds) for servers that take longer than the 5-second default to respond:
{ "mcp": { "slow-tools": { "type": "local", "command": ["node", "server.js"], "timeout": 30000 } }}Troubleshooting
- Server wonβt start β verify the first element of
commandexists and is executable, and that its dependencies are installed. Inspect the connection withcyberstrike mcp debug <name>. - Connection timeout β increase
timeout, or check that the server responds totools/listquickly. - Config rejected β the
mcpschema is strict; make sure you used the flat map withtype+command(array) and no unknown keys.
Related Documentation
- Bolt / MCP Overview - Architecture and concepts
- Bolt - Container-based security tools (recommended)
- Remote Servers - Remote MCP configuration
- Creating Servers - Build custom servers