pocket-mcp
This server does not currently have a deployable release on Glama. Follow the repository's setup instructions to install and configure it for your MCP client, including any required credentials and local dependencies.
Pocket MCP
A Model Context Protocol (MCP) server that turns PocketBase into a "Second Brain" for Claude Code. Capture knowledge, decisions, bugs, patterns, and more - then recall them with semantic search.
Features
Session Management - Track work sessions with goals and outcomes
Task Tracking - Manage project tasks with priorities, features, and progress stats
Knowledge Capture - Save observations, decisions, bugs, code snippets
Workflow Automation - Save and reuse repeatable procedures
Semantic Search - AI-powered search using OpenAI embeddings
Project Context - Quick access to project tech stack, decisions, patterns
Knowledge Graph - Link related entities together
Retrospectives - Generate insights from past sessions
New to the tools? Check out the Complete Usage Guide for detailed workflows and best practices.
Related MCP server: Claude Persistent Memory
Quick Start
Option 1: Claude Code Plugin (Recommended)
# 1. Add marketplace
/plugin marketplace add JaoChai/pocket-mcp
# 2. Install plugin
/plugin install pocket-mcp@jaochai-plugins
# 3. Configure (will prompt for credentials)Option 2: Manual MCP Setup
Add to your project's .mcp.json:
{
"mcpServers": {
"pocket-mcp": {
"command": "npx",
"args": ["-y", "github:JaoChai/pocket-mcp"],
"env": {
"POCKETBASE_URL": "https://your-pocketbase-instance.com",
"POCKETBASE_EMAIL": "admin@example.com",
"POCKETBASE_PASSWORD": "your-password",
"OPENAI_API_KEY": "sk-..."
}
}
}
}Then enable in .claude/settings.local.json:
{
"enableAllProjectMcpServers": true
}Setup PocketBase
Deploy PocketBase (self-host or use PocketHost, Elestio, etc.)
Then run the setup script to create collections:
git clone https://github.com/JaoChai/pocket-mcp.git
cd pocket-mcp
npm install
# Set environment variables
export POCKETBASE_URL="https://your-instance.com"
export POCKETBASE_EMAIL="admin@example.com"
export POCKETBASE_PASSWORD="your-password"
# Run setup
npm run setup-collectionsQuick Reference: When to Use Which Tool
Event | Tools to Use |
Start your day |
|
Start new work |
|
Need to find info |
|
Made a decision |
|
Fixed a bug |
|
Learned something new |
|
Wrote reusable code |
|
Finished work |
|
See Complete Usage Guide for detailed workflows.
Available Tools (28 tools)
Session Tools (3)
Manage work sessions for tracking activities.
Tool | Description |
| Start a new work session with project and goal |
| End session with outcome (success/partial/failed) and summary |
| Get active session info |
Task Tools (5)
Track project tasks with priorities and progress.
Tool | Description |
| Create a new task with title, description, feature, priority |
| Update task status, priority, or details |
| List tasks with filters (project, status, feature, priority) |
| Get completion stats, tasks by feature, next-up items |
| Delete or cancel a task (soft delete by default) |
Task Statuses: pending, in_progress, done, blocked, cancelled
Priorities: critical, high, medium, low
Capture Tools (4)
Save knowledge and learnings.
Tool | Description |
| Save discoveries, patterns, insights, notes |
| Log decisions with context, options, and rationale |
| Record bugs with error message, solution, prevention |
| Store reusable code snippets with language and use cases |
Outcome Tracking Tools (2)
Track decision outcomes for learning.
Tool | Description |
| Record what happened after a decision was made |
| Find decisions older than N days that need outcome review |
Workflow Tools (4)
Save and reuse repeatable procedures.
Tool | Description |
| Save a workflow with trigger, steps, and success criteria |
| Find workflow by describing what you want to do |
| Get full details including all steps |
| Record that a workflow was executed |
Search Tools (2)
Find knowledge in your Second Brain.
Tool | Description |
| Full-text search across all collections |
| AI-powered similarity search using embeddings |
Context Tools (3)
Quick access to project and user context.
Tool | Description |
| Get tech stack, recent decisions, bugs, patterns |
| Get user preferences (coding style, tools, workflow) |
| Save a user preference with strength level |
Relation Tools (3)
Build a knowledge graph.
Tool | Description |
| Create relationship between two entities |
| Get all relationships for an entity |
| Auto-suggest relations based on shared tags |
Relation Types: uses, caused, fixed_by, led_to, related_to, depends_on, inspired_by
Reflection Tools (2)
Learn from past experiences.
Tool | Description |
| Create retrospective with lessons and action items |
| Get lessons from past retrospectives |
PocketBase Collections (14)
The setup script creates these collections:
Collection | Description |
| Project information and tech stack |
| Work session tracking |
| Task tracking with priorities and features |
| PARA method areas of responsibility |
| Discoveries, patterns, insights, notes |
| Decision logs with rationale and outcomes |
| Error tracking and solutions |
| Design and architecture patterns |
| Reusable code snippets |
| Saved procedures and workflows |
| Session reviews and lessons |
| Reference materials |
| Knowledge graph edges |
| User preferences |
| Vector embeddings for semantic search |
Environment Variables
Variable | Required | Description |
| Yes | PocketBase instance URL |
| Yes | Admin email for authentication |
| Yes | Admin password |
| Yes | OpenAI API key for embeddings |
| No | Log level (default: |
Usage Examples
Session Management
# Start a session
Claude, start a session for "implementing user authentication"
# End with summary
Claude, end the session - we completed JWT auth and refresh tokensTask Tracking
# Create tasks
Claude, create a task "Add password reset flow" with high priority
# Check progress
Claude, show me the project progress
# Update status
Claude, mark the authentication task as doneKnowledge Capture
# Capture observation
Claude, save this: "React Query handles cache invalidation automatically in mutation's onSuccess"
# Capture decision
Claude, record that we chose JWT over sessions because of scalability needs
# Capture bug fix
Claude, save this bug: TypeError on undefined - fixed by adding optional chainingWorkflow Automation
# Save a workflow
Claude, save this deployment workflow:
1. Run tests
2. Build the project
3. Deploy to staging
4. Run smoke tests
# Find a workflow
Claude, how do I deploy to production?
# Record execution
Claude, I just ran the deployment workflow successfullySearch Knowledge
# Full-text search
Claude, search for "authentication patterns"
# Semantic search
Claude, find knowledge related to "handling API errors gracefully"Project Context
# Get project context
Claude, what do you know about this project?
# Get preferences
Claude, what are my coding preferences?Retrospectives
# Generate retrospective
Claude, generate a retrospective for today's session
# Get lessons
Claude, show me lessons from past sessionsInstallation Options
Option 1: Plugin (Easiest)
/plugin marketplace add JaoChai/pocket-mcp
/plugin install pocket-mcp@jaochai-pluginsOption 2: npx from GitHub
{
"mcpServers": {
"pocket-mcp": {
"command": "npx",
"args": ["-y", "github:JaoChai/pocket-mcp"],
"env": { ... }
}
}
}Option 3: From Source
git clone https://github.com/JaoChai/pocket-mcp.git
cd pocket-mcp
npm install
npm run buildDevelopment
npm install # Install dependencies
npm run build # Build TypeScript
npm run dev # Development mode with tsx
npm run setup-collections # Setup PocketBase collections
npm test # Run testsArchitecture
pocket-mcp/
├── src/
│ ├── index.ts # Entry point (bin)
│ ├── server.ts # MCP server with 28 tools
│ ├── config.ts # Config validation (Zod)
│ ├── pocketbase/
│ │ ├── client.ts # PocketBase client
│ │ └── collections.ts # Collection schemas
│ ├── tools/
│ │ ├── session.ts # Session management
│ │ ├── tasks.ts # Task tracking
│ │ ├── capture.ts # Knowledge capture
│ │ ├── workflow.ts # Workflow automation
│ │ ├── search.ts # Full-text & semantic search
│ │ ├── context.ts # Project context & preferences
│ │ ├── relate.ts # Knowledge graph relations
│ │ └── reflect.ts # Retrospectives & lessons
│ └── utils/
│ ├── embeddings.ts # OpenAI embeddings
│ └── logger.ts # Logging (stderr for MCP)
├── scripts/
│ └── setup-collections.ts
└── dist/ # Compiled outputLicense
MIT
Contributing
Contributions are welcome! Please open an issue or submit a pull request.
Credits
Built with:
Tool Schema Changelog
Recent tool additions, removals, and schema changes observed during successful MCP inspections.
Loading tool schema changelog…
Related MCP Connectors
Persistent memory for Claude Code and Cursor. Stop re-explaining your project every session.
Universal persistent memory and knowledge retrieval layer for AI agents and LLMs.
Shared memory for coding agents. Stop re-explaining your codebase every session.
Shared work memory for Claude Code, Codex, Cursor and chat, scoped to each repository.
Related MCP Servers
- FlicenseNot gradedqualityBmaintenanceEnables storing and searching personal notes, documents, and snippets using semantic search and RAG capabilities across Claude Desktop, VS Code, and Open WebUI.2-
- AlicenseNot gradedqualityDmaintenanceGives Claude Code long-term memory that persists across sessions via hybrid BM25 and vector semantic search, with multi-project isolation.8MIT
- AlicenseNot gradedqualityDmaintenanceProvides persistent, searchable memory for Claude Code using local SQLite, semantic embeddings, and full-text search, enabling Claude to recall and retrieve context across sessions and projects without external services.4MIT
- AlicenseNot gradedqualityDmaintenanceA project-scoped private journaling and semantic search server for Claude, using local AI embeddings to capture technical insights, user context, and work-in-progress notes.GPL 3.0