CleanSlice MCP Server
MCP (Model Context Protocol) server that gives AI coding agents access to the CleanSlice architecture documentation. Connect it to Claude, Cursor, Windsurf, or any MCP-compatible client so the AI knows how to build apps using CleanSlice conventions.
Installation
Install in Claude Code
Run this command. See Claude Code MCP docs for more info.
claude mcp add --scope user --transport http cleanslice https://mcp.cleanslice.org/mcp
Remove
--scope userto install for the current project only.
Install in Cursor
Go to: Settings -> Cursor Settings -> MCP -> Add new global MCP server
Paste the following into your Cursor ~/.cursor/mcp.json file. You may also install in a specific project by creating .cursor/mcp.json in your project folder. See Cursor MCP docs for more info.
{
"mcpServers": {
"cleanslice": {
"type": "http",
"url": "https://mcp.cleanslice.org/mcp"
}
}
}
Install in Windsurf
Add to your Windsurf MCP config file. See Windsurf MCP docs for more info.
{
"mcpServers": {
"cleanslice": {
"type": "http",
"serverUrl": "https://mcp.cleanslice.org/mcp"
}
}
}
Install in VS Code (Copilot)
Add to .vscode/mcp.json in your project. See VS Code MCP docs for more info.
{
"servers": {
"cleanslice": {
"type": "http",
"url": "https://mcp.cleanslice.org/mcp"
}
}
}
Install in Claude Desktop
Add to your claude_desktop_config.json. See Claude Desktop MCP docs for more info.
{
"mcpServers": {
"cleanslice": {
"type": "http",
"url": "https://mcp.cleanslice.org/mcp"
}
}
}
Install in Opencode
Add this to your Opencode configuration file. See Opencode MCP docs for more info.
{
"mcp": {
"cleanslice": {
"type": "remote",
"url": "https://mcp.cleanslice.org/mcp",
"enabled": true
}
}
}
Run Locally
git clone https://github.com/CleanSlice/mcp.git
cd mcp
npm install
npm run dev
Then point your MCP client to http://localhost:8080/mcp.
Available Tools
| Tool | Description |
|---|---|
get-started | Returns the essential CleanSlice rules and conventions |
list-categories | Lists all documentation categories |
search | Search the docs by query, category, framework, phase, or tags |
Environment Variables
| Variable | Default | Description |
|---|---|---|
PORT | 8080 | Server port |
DOCS_PATH | Auto-discover | Path to bundled docs directory |
GITHUB_REPO | CleanSlice/docs | Fallback GitHub repo for docs |
GITHUB_TOKEN | - | GitHub token (optional, for higher rate limits) |
CORS_ORIGIN | * | Allowed CORS origin(s) |
Docker
docker build -t cleanslice-mcp .
docker run -p 8080:8080 cleanslice-mcp
Endpoints
| Endpoint | Description |
|---|---|
GET /sse | SSE transport (for Claude Desktop, Cursor) |
POST /messages | SSE message handler |
POST /mcp | Streamable HTTP transport |
GET /health | Health check |
GET /api | Swagger docs |