
How to Add MCP Servers to Goose
block.github.io/gooseBlock's open-source AI agent where every extension IS an MCP server. Add servers interactively with `goose configure` → Add Extension (Command-line for stdio, Remote for Streamable HTTP), or edit the extensions block in config.yaml directly.
Setup Guide
1. Locate the config file
~/.config/goose/config.yaml2. Add a server configuration
Add the following to your YAML config:
# Add interactively: goose configure → Add Extension → Command-line Extension
# Or edit ~/.config/goose/config.yaml directly:
extensions:
filesystem:
name: filesystem
type: stdio
cmd: npx
args: ["-y", "@modelcontextprotocol/server-filesystem", "/path/to/allowed/dir"]
enabled: true
timeout: 3003. Restart Goose
Restart or reload Goose to pick up the new MCP server configuration.