@shoutoutlabs/memory-bank-graph-mcp
v0.1.3
Published
MCP server for Memory Bank Graph - provides intelligent codebase analysis and dependency mapping for Cursor IDE
Downloads
28
Readme
@shoutoutlabs/memory-bank-graph-mcp
A Model Context Protocol (MCP) server that provides intelligent codebase analysis and dependency mapping for Cursor IDE. This package creates and manages a SQLite-based graph database of your project's structure, dependencies, and relationships.
Features
- Intelligent Project Detection: Automatically detects project root and creates memory database
- Graph Database: SQLite-based graph storage for project structure and dependencies
- MCP Integration: Full Model Context Protocol compliance for Cursor IDE
- Auto-Initialization: Automatic database schema creation and setup
- Flexible Configuration: Command-line and environment variable options
Installation
npm install @shoutoutlabs/memory-bank-graph-mcpQuick Start
1. Initialize the Database
# Auto-detect project root and initialize database
npx @shoutoutlabs/memory-bank-graph-mcp --init
# Or using npm script
npm run init2. Start the MCP Server
# Start the server (auto-detects project root)
npx @shoutoutlabs/memory-bank-graph-mcp
# Or using npm script
npm startConfiguration
Auto-Detection Strategy
The server automatically detects your project root by looking for these indicators:
package.json.gitdirectorysrcdirectorymemory-bankdirectorymemory-bank-graphdirectory
Manual Configuration
Command Line Options
# Specify project root
npx @shoutoutlabs/memory-bank-graph-mcp --project-root=/path/to/your/project
# Initialize database
npx @shoutoutlabs/memory-bank-graph-mcp --init --project-root=/path/to/your/projectEnvironment Variables
# Set project root
export PROJECT_ROOT=/path/to/your/project
npx @shoutoutlabs/memory-bank-graph-mcp
# Set custom database path
export MCP_SQLITE_PATH=/path/to/custom/database.db
npx @shoutoutlabs/memory-bank-graph-mcpDatabase Location
The memory database is automatically created in your project's memory directory structure:
your-project/
├── memory/
│ └── db/
│ └── memory.db
└── ...MCP Tools
This server provides the following MCP tools:
Graph Management
graph_init- Initialize or update database schemagraph_upsert_version- Create or update graph nodesgraph_add_edge- Add relationships between nodesgraph_search_nodes- Search for nodes in the graphgraph_current_requirements- Get current project requirements
Project Management
project_create- Create or version a project nodeservice_create- Create a service and link to projectrequirement_propose- Propose new requirementsrequirement_accept- Accept requirements into canonicaldecision_record- Record architectural decisionsslo_upsert- Create or update Service Level Objectives
Utilities
snapshot_create- Create project snapshotshousekeeping_expire_ephemeral- Clean up expired nodes
Integration with Cursor IDE
Add this to your Cursor MCP configuration:
{
"mcpServers": {
"memory-bank-graph": {
"command": "npx",
"args": ["@shoutoutlabs/memory-bank-graph-mcp"],
"env": {
"PROJECT_ROOT": "/path/to/your/project"
}
}
}
}Development
Prerequisites
- Node.js 18.0.0 or higher
- npm or yarn
Local Development
# Clone the repository
git clone https://github.com/shoutoutlabs/memory-bank-graph.git
cd memory-bank-graph/local-graph-mcp
# Install dependencies
npm install
# Start development server
npm start
# Initialize database
npm run initAPI Reference
Command Line Interface
npx @shoutoutlabs/memory-bank-graph-mcp [options]
Options:
--project-root=<path> Set project root directory
--init Initialize database schema
--help Show help informationEnvironment Variables
| Variable | Description | Default |
|----------|-------------|---------|
| PROJECT_ROOT | Project root directory | Auto-detected |
| MCP_SQLITE_PATH | Custom database path | {PROJECT_ROOT}/memory/db/memory.db |
Contributing
- Fork the repository
- Create a feature branch (
git checkout -b feature/amazing-feature) - Commit your changes (
git commit -m 'Add some amazing feature') - Push to the branch (
git push origin feature/amazing-feature) - Open a Pull Request
License
This project is licensed under the MIT License - see the LICENSE file for details.
Support
Changelog
See CHANGELOG.md for a list of changes and version history.
Made with ❤️ by ShoutOUT Labs
