LogicStamp MCP server works with Cursor - the AI-powered code editor. Cursor supports both global and project-specific MCP configurations.
Before diving into setup, check these common issues:
- ✅ Node.js installed? Run
node --version(needs >= 20) - ✅ Package installed? Run
npm list -g logicstamp-mcp - ✅ LogicStamp CLI installed? Run
stamp --version(needsnpm install -g logicstamp-context) - ✅ Config file exists? Check
~/.cursor/mcp.json(macOS/Linux) or%USERPROFILE%\.cursor\mcp.json(Windows) - ✅ JSON valid? Validate your
mcp.jsonsyntax - ✅ Cursor restarted? Fully quit and reopen Cursor (not just close window)
- ✅ MCP visible in settings? Settings → Features → Model Context Protocol
If all checks pass but it's still not working, see the Troubleshooting section below.
To verify LogicStamp is connected:
-
Open Cursor Settings:
- Press
Cmd + ,(macOS) orCtrl + ,(Windows/Linux) - Or: Menu → Settings → Preferences
- Press
-
Navigate to MCP Settings:
- In the settings sidebar, click Features
- Scroll down to Model Context Protocol (or search for "MCP")
-
Verify Connection:
- You should see
logicstampin the list of MCP servers - Status should show "Connected" or "Running"
- If you see an error, check the Troubleshooting section
- You should see
Visual Path: Settings → Features → Model Context Protocol → Look for logicstamp
npm install -g logicstamp-mcpChoose one of the following setup options based on your needs:
Install globally to use LogicStamp in all your projects.
Important: This setup is done once (globally). After configuring the MCP server globally, it will be available in every project you open in Cursor. You don't need to set it up again for each project. However, when you actually analyze a project, you'll call logicstamp_refresh_snapshot for that specific project - the analysis itself is per-project, but the MCP server setup is global.
On macOS/Linux:
mkdir -p ~/.cursor
nano ~/.cursor/mcp.jsonOn Windows:
mkdir %USERPROFILE%\.cursor
notepad %USERPROFILE%\.cursor\mcp.jsonAdd the following configuration:
{
"mcpServers": {
"logicstamp": {
"command": "npx",
"args": ["logicstamp-mcp"]
}
}
}Note: Some MCP clients may require a "type": "stdio" field. If the above doesn't work, try:
{
"mcpServers": {
"logicstamp": {
"type": "stdio",
"command": "npx",
"args": ["logicstamp-mcp"]
}
}
}What this does:
- Adds LogicStamp to your global Cursor MCP configuration
- Makes the 7 LogicStamp tools available in every project you open in Cursor
- Server auto-starts when Cursor needs it (no manual startup required)
If you're developing the MCP server locally or testing before publishing, use absolute paths:
On macOS/Linux:
{
"mcpServers": {
"logicstamp": {
"command": "node",
"args": ["/absolute/path/to/logicstamp-mcp/dist/index.js"]
}
}
}On Windows:
{
"mcpServers": {
"logicstamp": {
"command": "node",
"args": ["C:\\Users\\YourName\\path\\to\\logicstamp-mcp\\dist\\index.js"]
}
}
}Note: Some MCP clients may require a "type": "stdio" field. If the above doesn't work, add "type": "stdio" to the configuration.
Global Install vs Local Development:
| Approach | Command | Path | Use Case |
|---|---|---|---|
| Global Install (Recommended) | npx |
Package name only | Production use, team sharing |
| Local Development | node |
Absolute path to dist/index.js |
Contributing, testing before publish |
Benefits of Global Install:
- ✅ Simpler configuration - No absolute paths needed
- ✅ Portable - Works on any machine with the package installed
- ✅ Auto-updates -
npm update -gupdates the package - ✅ Team-friendly - Same config works for everyone
- ✅ Cleaner - No need to specify
dist/index.jspath
When to Use Local Development:
- You're contributing to the MCP server codebase
- Testing changes before publishing
- The package isn't published yet
- You need a specific local build version
Install per-project to share configuration with your team via git.
npm install -g logicstamp-mcpIn your project directory, create the .cursor folder and mcp.json file:
cd /path/to/your/project
mkdir -p .cursorCreate .cursor/mcp.json with this content:
{
"mcpServers": {
"logicstamp": {
"command": "npx",
"args": ["logicstamp-mcp"]
}
}
}Note: Some MCP clients may require a "type": "stdio" field. If the above doesn't work, add "type": "stdio" to the configuration.
What this does:
- Creates project-specific MCP configuration
- Can be committed to git for team collaboration
- Team members get the same MCP configuration when they open the project
- Project config takes precedence over global config for this project
Note: The .cursor folder is typically gitignored by default, but you can commit .cursor/mcp.json if you want team-wide configuration.
After configuring, verify the server is working:
- Restart Cursor - Fully quit and reopen Cursor (not just close window) for changes to take effect
- Check MCP Status - Follow the steps in Finding MCP Settings in Cursor above
- You should see
logicstamplisted with status "Connected" or "Running"
- You should see
- Test in Chat - Open Cursor's AI chat (
Cmd/Ctrl + L) and ask:Can you analyze my project using LogicStamp?
The AI should be able to use the 7 LogicStamp tools:
logicstamp_refresh_snapshot- Analyze project structurelogicstamp_list_bundles- List available componentslogicstamp_read_bundle- Read component contractslogicstamp_compare_snapshot- Detect changes after editslogicstamp_compare_modes- Generate token cost comparison across modeslogicstamp_read_logicstamp_docs- Read LogicStamp documentationlogicstamp_watch_status- Check if watch mode is active
Quick Check: If you see logicstamp in Settings → Features → Model Context Protocol with a "Connected" status, you're all set! If not, see the Troubleshooting section below.
- Open your project in Cursor
- Open Cursor's AI chat (Cmd/Ctrl + L)
- Ask the AI to analyze your project:
Can you analyze my React project using LogicStamp?
The AI will automatically use the LogicStamp tools to analyze your codebase.
Solutions:
-
Verify config file location:
- Global:
~/.cursor/mcp.json(macOS/Linux) or%USERPROFILE%\.cursor\mcp.json(Windows) - Project:
.cursor/mcp.jsonin project root - Ensure the
.cursordirectory exists
- Global:
-
Check JSON syntax:
# Validate JSON (macOS/Linux) cat ~/.cursor/mcp.json | python -m json.tool # On Windows, use an online JSON validator
-
Verify package installation:
npm list -g logicstamp-mcp # or test npx npx logicstamp-mcp --help -
Check Cursor logs:
- Open Cursor
- Go to Help → Toggle Developer Tools
- Check Console for MCP-related errors
-
Restart Cursor completely:
- Quit Cursor (not just close window)
- Reopen Cursor
- Open your project
-
Verify Node.js is in PATH:
which node # macOS/Linux where node # Windows
-
Check npx works:
npx --version npx logicstamp-mcp --help
-
For local builds, use absolute paths:
- Windows paths must use forward slashes or escaped backslashes
- Example:
C:/Users/Name/path/to/dist/index.jsorC:\\Users\\Name\\path\\to\\dist\\index.js
-
Check MCP server status:
- Settings → Features → Model Context Protocol
- Look for LogicStamp in the list
- Status should show "Connected" or "Running"
-
Try explicit tool invocation:
Use LogicStamp to create a snapshot: logicstamp_refresh_snapshot -
Check for errors in Developer Console:
- Help → Toggle Developer Tools
- Console tab
- Look for MCP-related errors
-
Verify project path:
- Ensure you're in a project directory (has package.json or similar)
- MCP server needs a valid project context
The LogicStamp Context CLI is not installed:
npm install -g logicstamp-context
# Verify installation
stamp --version-
Check Node.js version:
node --version # Should be >= 20 -
Test MCP server manually:
npx logicstamp-mcp # Should wait for stdin (server is ready) # Press Ctrl+C to exit
-
For local builds, verify path:
# Check file exists ls /absolute/path/to/dist/index.js # On Windows dir C:\path\to\dist\index.js
- Ensure
.cursor/mcp.jsonexists in project root (not in a subdirectory) - Check that JSON is valid
- Verify project config takes precedence: Project config overrides global config
- Try restarting Cursor after creating project config
Problem: Tools return "Snapshot ID not found"
Solution:
Always call logicstamp_refresh_snapshot first:
You: "Create a snapshot of this project"
AI: [Runs logicstamp_refresh_snapshot]
You: "Now list the components in src/"
AI: [Uses the snapshot ID from previous call]
To see detailed MCP communication:
- Open Developer Tools: Help → Toggle Developer Tools
- Check Console tab for MCP server logs
- Look for connection errors or startup messages
- MCP servers should appear in the console when Cursor starts
| Scope | Config File Location | Notes |
|---|---|---|
| Global | ~/.cursor/mcp.json (macOS/Linux)%USERPROFILE%\.cursor\mcp.json (Windows) |
Available in all projects |
| Project | .cursor/mcp.json (project root) |
Can be committed to git, overrides global |
Important: Project config (.cursor/mcp.json) takes precedence over global config.