Scaffold is a specialized RAG system that transforms entire codebase into a living knowledge graph, capturing the deep structural relationships between files, classes, and functions. This provides AI agents with the crucial context to accurately understand, maintain, and reason about complex software, moving far beyond simple text retrieval.
Overview
Overview
Welcome to the official Scaffold Model Context Protocol (MCP) server. Scaffold is a specialized Retrieval-Augmented Generation (RAG) system designed to provide deep, structural understanding of large codebases to LLMs and AI agents. It transforms your source code into a living knowledge graph, allowing for precise, context-aware interactions that go far beyond simple file retrieval.
This server enables MCP clients like Cursor to interface directly with the Scaffold knowledge graph, allowing them to effectively construct, maintain, and reason about complex software projects.
Server Config
{
"mcpServers": {
"Scaffold": {
"command": "docker",
"args": [
"run",
"--rm",
"--name",
"scaffold-mcp",
"-p",
"8000:8080",
"-v",
"${PROJECT_PATH}:/app/codebase",
"-e",
"CHROMA_SERVER_HOST=${CHROMA_SERVER_HOST}",
"-e",
"CHROMA_SERVER_PORT=${CHROMA_SERVER_PORT}",
"-e",
"CHROMA_COLLECTION_NAME=${CHROMA_COLLECTION_NAME}",
"-e",
"NEO4J_USER=${NEO4J_USER}",
"-e",
"NEO4J_PASSWORD=${NEO4J_PASSWORD}",
"-e",
"NEO4J_URI=${NEO4J_URI}",
"-t",
"ghcr.io/beer-bears/scaffold:latest"
],
"env": {
"CHROMA_SERVER_HOST": "<CHROMA_HOST>",
"CHROMA_SERVER_PORT": "<CHROMA_PORT>",
"CHROMA_COLLECTION_NAME": "scaffold_data",
"NEO4J_USER": "<NEO4J_USER>",
"NEO4J_PASSWORD": "<NEO4J_PASSWORD>",
"NEO4J_URI": "bolt://<NEO4J_USER>:<NEO4J_PASSWORD>@<NEO4J_HOST>:NEO4J_PORT>",
"PROJECT_PATH": "<PATH_TO_YOUR_PROJECT>"
}
}
}
}