SnapBack MCP Server
AI-powered code analysis and snapshot management via Model Context Protocol
Integrate SnapBack's code safety features directly into Claude Desktop, Cursor, and any MCP-compatible AI tool.
Quick Start
Works immediately - no configuration required!
Features
π Free (No Account Needed)
β Risk Analysis: Detect secrets, vulnerabilities in code changes
β Dependency Checking: Validate package.json changes
β Local Analysis: Basic secret detection and security scanning
β Offline Mode: Works without internet connection
β Context7 Integration: Library documentation and code search
βοΈ Pro Features (Optional API Key)
Get a free API key from snapback.dev to unlock:
π Advanced ML Analysis: AI-powered risk detection
π Snapshot Management: Create and restore code snapshots
π Cloud Sync: Access snapshots across devices
π Team Sharing: Collaborate on code safety
Installation
Claude Desktop
Add to ~/Library/Application Support/Claude/claude_desktop_config.json:
With API Key (Optional)
Cursor / Other MCP Clients
Available Tools
snapback.analyze_risk
Analyze code changes for potential security risks before applying them.
When to use:
Before accepting AI-generated code
When reviewing complex changes
For critical files (auth, database, config)
Example:
snapback.check_dependencies
Check for dependency-related risks when package.json changes.
Example:
snapback.create_snapshot (Pro)
Create a code snapshot before risky changes.
Example:
snapback.list_snapshots (Pro)
List all available snapshots.
snapback.restore_snapshot (Pro)
Restore code from a previous snapshot.
Context7 Tools
ctx7.resolve-library-id: Find library documentationctx7.get-library-docs: Fetch library docs and examples
Configuration
Environment Variables
Offline Mode
Works perfectly without any configuration or API keys:
What works offline:
Risk analysis (basic)
Dependency checking
Secret detection
Context7 library search (cached)
What requires API key:
Advanced ML risk analysis
Snapshot creation/restoration
Cloud sync
Team features
Architecture
Development
Running Locally
Testing
Building
Troubleshooting
Server won't start
Check Node.js version:
node -v(requires 18+)Clear cache:
rm -rf node_modules && npm installCheck permissions:
chmod +x $(which snapback-mcp)
API key not working
Verify key format:
sk_live_...orsk_test_...Check env var:
echo $SNAPBACK_API_KEYGet new key: snapback.dev/settings/api
Tools not showing in Claude
Restart Claude Desktop completely
Check config file syntax (JSON must be valid)
Look for errors in Claude's console logs
Security
All secrets handled via environment variables
No data sent to SnapBack without API key
Local analysis runs offline
Open source - audit the code yourself
Report security issues: security@snapback.dev
Links
Documentation: docs.snapback.dev
Main Repository: Marcelle-Labs/snapback.dev
NPM: @snapback/mcp-server
License
Apache-2.0 Β© SnapBack
Related
@snapback-oss/sdk- TypeScript SDK@snapback-oss/contracts- Type definitions