Define a local stdio MCP server.
Section: MCP servers and built-ins
Local MCP server template
json
json
{
"my-local-server": {
"type": "local",
"command": "node",
"args": ["./tools/mcp-server.js"],
"tools": ["*"]
}
}Explanation
Local or stdio transport requires `command` and `args`, with `tools` defining what the server exposes.
Learn the surrounding workflow
Compare similar commands or jump into common fixes when this command is part of a bigger troubleshooting path.
Related commands
Same sheet · prioritizing MCP servers and built-ins
Add an MCP server for one session from a file
Load additional MCP server config at runtime.
Disable all built-in MCP servers
Run without the default built-in servers.
Enable a specific GitHub MCP tool
Grant access to one GitHub MCP capability.
Enable a GitHub MCP toolset
Grant a named toolset instead of individual tools.
Persistent MCP config location
Store servers in the user MCP config file.