MCP Hub
Back to servers

claude-code-buddy

Claude Code plugin for vibe coding - adds project memory and smart routing to reduce repetitive prompts

Stars
51
Forks
9
Updated
Feb 2, 2026
Validated
Feb 3, 2026

🧠 Claude Code Buddy (CCB)

The Only MCP Server That Remembers

Make Claude Code remember everything. Build faster. Vibe harder.

GitHub Stars npm version License MCP

🚀 Quick Start📖 Docs🌐 Website💬 Discussions


🎥 See It In Action (Interactive Demo)

🔴 Without CCB

# Session 1 (Monday)
You: "We use JWT for auth because..."
Claude: "Got it! ✅"

# Session 2 (Tuesday)
You: "Remember our auth approach?"
Claude: "Sorry, I don't have context..."
You: *explains everything again* 😤

# Session 3 (Wednesday)
You: "Our JWT implementation..."
Claude: "What JWT implementation?"
You: *RAGE QUITS* 💢

With CCB

# Session 1 (Monday)
You: buddy-do "setup JWT auth"
CCB: ✅ Implemented + Saved to memory

# Session 2 (Tuesday)
You: buddy-remember "auth"
CCB: 📚 "JWT auth implemented on 2024-01-15
     ↳ Access tokens: 15min
     ↳ Refresh tokens: 7 days
     ↳ Secret rotation: monthly"

# Session 3 (Any day, forever)
You: buddy-do "add OAuth"
CCB: 🧠 "I see you have JWT. Let's
     integrate OAuth alongside it..."

💡 Try it yourself:

# In Claude Code/Cursor
buddy-help                          # See all commands
buddy-do "explain how CCB works"    # Watch it intelligently respond
buddy-remember "project decisions"  # Query your project memory

📖 Read User Guide🔧 API Reference


🤔 The Problem

You know this pain:

Session 1: "Let me explain our architecture..."
Session 2: "As I mentioned before, our architecture..."
Session 3: "Like I said earlier, our architecture..."
Session 4: 😤

Every. Single. Session.


✨ The Solution

Before CCB

  • Re-explain architecture every session
  • Answer same questions repeatedly
  • Forget design decisions overnight
  • Write similar prompts over and over
  • Claude has amnesia 🤕

After CCB

  • Remembers project architecture
  • Recalls past decisions instantly
  • Organizes knowledge automatically
  • Routes tasks intelligently
  • Claude becomes your AI teammate 🤝

🎯 Core Features

1. 🧠 Project Memory That Actually Works

# Session 1 (Last week)
You: "We chose PostgreSQL for JSONB support"

# Session 42 (Today)
You: buddy-remember "why PostgreSQL?"
CCB: "Based on your decision from 2024-01-15: PostgreSQL was
      chosen for JSONB support and advanced query capabilities..."

Claude remembers. Forever.

2. 🎯 Smart Task Routing (Autopilot Mode)

You: "Review this code"
CCB: *Detects task type*
     *Activates code review mode*
     *Applies best practices*
     *Delivers structured review*

No more "how should I do this?" Just do it.

3. 💬 Dead Simple Commands

buddy-do "setup authentication"     # Execute any dev task
buddy-remember "API design"         # Query project memory
buddy-help                          # When stuck

Three commands. Infinite possibilities.


🚀 2-Minute Quick Start

Step 1: Install (Choose Your IDE)

🎯 Cursor Users (Click to expand)

Just click this magic link:

cursor://anysphere.cursor-deeplink/mcp/install?name=@pcircle/claude-code-buddy-mcp&config=eyJjb21tYW5kIjoibnB4IiwiYXJncyI6WyIteSIsIkBwY2lyY2xlL2NsYXVkZS1jb2RlLWJ1ZGR5LW1jcCJdfQ==

Done. Restart Cursor and you're ready.

⚡ Claude Code Users (Click to expand)

Add this to ~/.claude/mcp_settings.json:

{
  "mcpServers": {
    "@pcircle/claude-code-buddy-mcp": {
      "command": "npx",
      "args": ["-y", "@pcircle/claude-code-buddy-mcp"]
    }
  }
}

Restart Claude Code and you're golden.

Step 2: Test It

# In Claude Code/Cursor, type:
buddy-help

# You should see CCB's command list
# Now try:
buddy-do "explain CCB features"

# Watch the magic happen ✨

🎉 That's it! You're vibing now.

📖 Need help? Detailed installation guide | Troubleshooting


💡 Real-World Usage

Scenario 1: Building a New Feature

You: buddy-do "create a real-time chat with WebSocket"

CCB analyzes your project...
🔍 Detected: React + Node.js + Express
🧠 Recalled: Your preference for TypeScript strict mode
📝 Applying: Error boundaries pattern from LoginPage.tsx

✅ Generated:
   ├─ server/chat.ts (WebSocket server)
   ├─ components/ChatWindow.tsx (React component)
   └─ hooks/useWebSocket.ts (Custom hook)

💾 Saved to memory: "WebSocket chat architecture - 2024-01-20"

Scenario 2: "Wait, Why Did We Do That?"

You: buddy-remember "authentication approach"

CCB searches knowledge graph...

📚 Found 3 related memories:

┌─ 2024-01-15: Initial Auth Decision
│  💬 "JWT chosen over sessions for stateless API"
│  ⚡ Reasoning: Mobile app compatibility
│
├─ 2024-01-18: Token Expiry Implementation
│  💻 Code: auth/middleware.ts:42-67
│  🔧 Access: 15min | Refresh: 7 days
│
└─ 2024-01-22: Security Enhancement
   🛡️ Added: Rate limiting + Token rotation
   📝 Prevented: Token reuse vulnerability

Scenario 3: Continuous Development Flow

Day 1 │  You: "Implement user login"
      │  CCB: ✅ Created + 💾 Remembered
      │
Day 5 │  You: "Add password reset"
      │  CCB: 🧠 "I see you use JWT tokens..."
      │       ✅ Integrated seamlessly
      │
Day 10│  You: "Add OAuth support"
      │  CCB: 🧠 "Based on your JWT + password reset..."
      │       ✅ Consistent with existing auth
      │
Week 8│  You: "Why did we choose JWT again?"
      │  CCB: 📚 *Instant recall from Day 1*

No context re-explanation. Ever again.


📊 Why CCB vs. Others?

FeaturePlain Claude CodeOther MCP ToolsCCB
Persistent Memory⚠️ BasicFull Knowledge Graph
Smart RoutingAuto-detects task type
Vibe Coding Optimized⚠️Built for it
Zero Setup⚠️ Complex2 minutes
Free & Open Source⚠️ VariesAGPL-3.0

🛠️ Advanced Features

Auto-Memory System

When you use buddy-do, CCB automatically records:

  • ✅ Task goals and outcomes
  • ✅ Technical decisions and reasoning
  • ✅ Errors encountered and solutions
  • ✅ Development milestones

You don't think about memory. CCB does.

Multi-Project Support

Each project gets its own isolated memory space.

cd ~/project-A
buddy-remember "auth"  # Returns project-A's auth decisions

cd ~/project-B
buddy-remember "auth"  # Returns project-B's auth decisions

No cross-contamination. Ever.

17 MCP Standard Tools

Full integration with Model Context Protocol.

See complete list: ToolDefinitions.ts


🧪 Technical Details

Requirements

  • Node.js 20+
  • Claude Code or Cursor IDE
  • 5 minutes of your time

Platform Support

  • Claude 4.5 (Haiku/Sonnet/Opus)
  • MCP SDK 1.25.3
  • ✅ Windows, macOS, Linux

🔒 Security First

  • 100% Local Processing - Your data never leaves your machine
  • No External API Calls - Uses your Claude Code subscription
  • npm audit: 0 vulnerabilities
  • Open Source - Audit the code yourself

🤝 Contributing

We'd love your help making CCB better!

Contributing Guide: CONTRIBUTING.md


📚 Documentation


❓ FAQ

Q: Does it cost money?

A: Nope. 100% free and open source (AGPL-3.0). Uses your existing Claude Code subscription.

Q: Is my data safe?

A: Yes. Everything processed locally. Zero external API calls. Zero data upload.

Q: How is this different from plain Claude Code?

A: CCB adds two superpowers:

  1. Persistent Memory - Claude remembers your project across sessions
  2. Smart Routing - Automatically detects and handles different task types

Think of it as Claude Code + a really good memory + autopilot mode.

Q: Can I customize it?

A: Absolutely. Prompt templates in src/core/PromptEnhancer.ts.

Want deeper customization? Fork it, hack it, make it yours. That's the open source way.

Q: Does it work with Cursor?

A: Yes! Cursor has native MCP support. One-click install.


🙏 Acknowledgments

Built on the shoulders of giants:


📄 License

AGPL-3.0 - See LICENSE

This means: Use it, modify it, share it. But keep it open source.


🌟 Star History

Star History Chart


Built by developers, for developers

Stop repeating yourself. Start vibing.

🚀 Get Started📖 Read the Docs💬 Join the Discussion


If CCB saved you time today, give it a star!

It helps others discover this tool.


Not affiliated with Anthropic PBC • Independent open-source project

Languages: English繁體中文

Reviews

No reviews yet

Sign in to write a review