loading…
Search for a command to run...
loading…
A personal AI memory hub that stores and retrieves personal data from any MCP-enabled AI assistant, enabling persistent memory across conversations.
A personal AI memory hub that stores and retrieves personal data from any MCP-enabled AI assistant, enabling persistent memory across conversations.
Your Personal AI Memory Hub - Store and retrieve your personal data from any MCP-enabled AI assistant.
SelfHub is a Model Context Protocol (MCP) server that acts as your personal digital memory. Store notes, preferences, code snippets, tasks, and any information you want - then access them seamlessly from any AI assistant that supports MCP (Claude Desktop, VS Code Copilot, etc.).
Think of it as your personal knowledge base that travels with you across all AI conversations.
Open the Claude Desktop configuration file:
%APPDATA%\Claude\claude_desktop_config.json~/Library/Application Support/Claude/claude_desktop_config.json~/.config/Claude/claude_desktop_config.jsonAdd this configuration (replace with your actual path):
{
"mcpServers": {
"selfhub": {
"command": "node",
"args": ["C:\\absolute\\path\\to\\SelfHub\\build\\index.js"]
}
}
}
Important for Windows: Use double backslashes (\\) in the path!
Completely quit and restart Claude Desktop.
In Claude, try:
pnpm build
The workspace is already configured! Just reload VS Code:
Press Ctrl+Shift+P (or Cmd+Shift+P on Mac) → Type "Reload Window" → Press Enter
Open GitHub Copilot Chat (Ctrl+Alt+I) and try:
@workspace list my memories
@workspace search my memories for "typescript"
@workspace store in my memory: I love using pnpm for package management
Note: You need GitHub Copilot extension installed and enabled.
store_memoryStore new information in your memory hub.
Example:
Store that I prefer TypeScript over JavaScript for all new projects
Parameters:
content (required) - The information to storetype - Memory type: short-term, long-term, contextualcategory - Category: personal, professional, learning, projects, code, tasks, etc.title - Optional titletags - Array of tagsimportance - 1-5 importance levelretrieve_memoryGet a specific memory by its ID.
Example:
Retrieve memory mem_001
list_memoriesList memories with optional filters.
Example:
List all my professional memories
Show me memories tagged with 'typescript'
List memories sorted by importance
Parameters:
type - Filter by typecategory - Filter by categorytags - Filter by tagscontextId - Filter by contextlimit - Max results (default: 50)offset - Pagination offsetsortBy - Sort field: createdAt, updatedAt, importance, accessCountsortOrder - asc or descsearch_memoriesSearch through your memories using text queries.
Example:
Search my memories for "typescript"
Find memories about "API design"
Parameters:
query (required) - Search querycategory - Filter by categorytype - Filter by typetags - Filter by tagslimit - Max results (default: 10)delete_memoryDelete a memory by ID.
Example:
Delete memory mem_005
create_contextCreate a new organizational context.
Example:
Create a new context called "Machine Learning Project" for project type
Parameters:
name (required) - Context nametype (required) - conversation, project, topic, temporaldescription - Optional descriptiontags - Array of tagsmemoryIds - Initial memory IDs to includeactivate_contextActivate a context and load its memories.
Example:
Activate the "SelfHub Development" context
list_contextsList all contexts with optional filters.
Example:
List all my project contexts
Show active contexts
get_statsGet usage statistics and insights.
Example:
Show me my memory statistics
Returns:
Store that I prefer dark mode in all applications
Store my favorite TypeScript coding conventions
Remember that I use pnpm for package management
Search my memories for "preferences"
Create a new context called "SelfHub Development" for project type
Store in SelfHub context: Database schema uses Drizzle ORM
Activate the SelfHub Development context
List all memories in the SelfHub context
Store as learning: Vector embeddings represent text as numerical arrays
Tag with "machine-learning" and "embeddings"
Search my learning memories for "embeddings"
List all my learning-related memories sorted by date
Store this code snippet: const sum = (a, b) => a + b
Category: code, Tags: javascript, utility
Search my code for "utility functions"
SelfHub comes with 6 pre-loaded sample memories:
And 2 sample contexts:
SelfHub/
├── src/
│ ├── index.ts # Main MCP server
│ ├── models/ # TypeScript type definitions
│ │ ├── memory.model.ts
│ │ ├── context.model.ts
│ │ └── index.ts
│ ├── services/ # Business logic layer
│ │ ├── memory.service.ts
│ │ └── context.service.ts
│ └── storage/ # Storage implementation
│ └── mock-storage.ts # In-memory mock data
├── build/ # Compiled JavaScript output
├── .github/ # GitHub Actions CI/CD
│ └── workflows/
│ ├── ci.yml # Continuous Integration
│ └── release.yml # Automated releases
├── .vscode/ # VS Code configuration
│ └── settings.json # MCP server settings
├── package.json
├── tsconfig.json
└── README.md
# Development mode (auto-reload with tsx)
pnpm dev
# Type checking
pnpm typecheck
# Build for production
pnpm build
# Clean build directory
rm -rf build
src/index.ts) - Implements the MCP protocol, defines 9 tools# Start the server
pnpm dev
# You should see:
# 🚀 SelfHub MCP Server running with mock data!
# 📊 Loaded 6 sample memories and 2 sample contexts
# 🛠️ Available tools: 9
The server runs on stdio (standard input/output) and waits for MCP protocol messages. You cannot interact with it directly - it needs an MCP client like Claude Desktop or VS Code.
Check the config path:
Verify build exists:
ls build/index.js
Check for typos:
C:\\path\\to\\Restart Claude completely:
Check Claude logs:
%APPDATA%\Claude\logs~/Library/Logs/ClaudeMake sure GitHub Copilot is installed:
Ctrl+Shift+XReload VS Code window:
Ctrl+Shift+P → "Reload Window"Check the build:
pnpm build
# Clean and rebuild
rm -rf build node_modules
pnpm install
pnpm build
This is expected! The current version uses in-memory storage. All data resets when you restart the server. This is intentional for the initial version - persistent storage will be added in a future update.
This project includes GitHub Actions workflows:
See .github/workflows/ for details.
Contributions are welcome! Please feel free to submit a Pull Request.
MIT License - see LICENSE file for details.
If you have questions or run into issues:
Built with:
Made with ❤️ by Sagargupta16
Your personal AI memory hub - remember everything, access anywhere!
Run in your terminal:
claude mcp add selfhub-mcp-server -- npx Security
Low riskAutomated heuristic from public metadata — not a security guarantee.