docs/developer/agentic/mcp.mdx
Spree hosts a Model Context Protocol server on top of this documentation. Once connected, your agent can search the docs and read full pages on demand — answering questions from the latest published documentation instead of stale training data.
https://spreecommerce.org/docs/mcp
The server exposes two tools: full-text search across the documentation, and reading doc pages as Markdown.
Scope it to the project (`--scope project`) to share the connection with your team via `.mcp.json`, or keep the default local scope for just yourself.
```text
https://spreecommerce.org/docs/mcp
```
```json
{
"mcpServers": {
"spree-docs": {
"url": "https://spreecommerce.org/docs/mcp"
}
}
}
```
```json
{
"servers": {
"spree-docs": {
"type": "http",
"url": "https://spreecommerce.org/docs/mcp"
}
}
}
```
| Channel | Best for |
|---|---|
| MCP server (this page) | The latest published docs; agents working outside a scaffolded project; questions the installed skills don't cover |
@spree/docs npm package | Fast local reads inside a project — no network round-trip, works offline, pinned to what you installed |
| Agent skills | Conventions and how-to knowledge the agent should apply without searching at all |