SelfHub MCP Server
Enables memory management directly from GitHub Copilot Chat in VS Code using @workspace commands.
Click on "Install Server".
Wait a few minutes for the server to deploy. Once ready, it will show a "Started" state.
In the chat, type
@followed by the MCP server name and your instructions, e.g., "@SelfHub MCP ServerStore that I prefer dark mode in all applications"
That's it! The server will respond to your query, and you can continue using it as needed.
Here is a step-by-step guide with screenshots.
SelfHub MCP Server
Your Personal AI Memory Hub - Store and retrieve your personal data from any MCP-enabled AI assistant.
π― What is SelfHub?
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.
Step 2: Configure Claude Desktop
Open the Claude Desktop configuration file:
Windows:
%APPDATA%\Claude\claude_desktop_config.jsonmacOS:
~/Library/Application Support/Claude/claude_desktop_config.jsonLinux:
~/.config/Claude/claude_desktop_config.json
Add 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!
Step 3: Restart Claude Desktop
Completely quit and restart Claude Desktop.
Step 4: Test It!
In Claude, try:
"List all my memories"
"Search my memories for typescript"
"Store that I prefer dark mode in all applications"
π» Setup with VS Code
Step 1: Build the Server
pnpm buildStep 2: Configure VS Code
The workspace is already configured! Just reload VS Code:
Press Ctrl+Shift+P (or Cmd+Shift+P on Mac) β Type "Reload Window" β Press Enter
Step 3: Test in Copilot Chat
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 managementNote: You need GitHub Copilot extension installed and enabled.
π οΈ Available Tools
Memory Management (5 tools)
1. store_memory
Store new information in your memory hub.
Example:
Store that I prefer TypeScript over JavaScript for all new projectsParameters:
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 level
2. retrieve_memory
Get a specific memory by its ID.
Example:
Retrieve memory mem_0013. list_memories
List memories with optional filters.
Example:
List all my professional memories
Show me memories tagged with 'typescript'
List memories sorted by importanceParameters:
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-ascordesc
4. search_memories
Search 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)
5. delete_memory
Delete a memory by ID.
Example:
Delete memory mem_005Context Management (3 tools)
6. create_context
Create a new organizational context.
Example:
Create a new context called "Machine Learning Project" for project typeParameters:
name(required) - Context nametype(required) -conversation,project,topic,temporaldescription- Optional descriptiontags- Array of tagsmemoryIds- Initial memory IDs to include
7. activate_context
Activate a context and load its memories.
Example:
Activate the "SelfHub Development" context8. list_contexts
List all contexts with optional filters.
Example:
List all my project contexts
Show active contextsAnalytics (1 tool)
9. get_stats
Get usage statistics and insights.
Example:
Show me my memory statisticsReturns:
Total memories count
Memories by type breakdown
Memories by category breakdown
Total contexts
Most used tags
π Example Usage Scenarios
Personal Knowledge Management
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"Project Development
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 contextLearning & Notes
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 dateCode Snippets
Store this code snippet: const sum = (a, b) => a + b
Category: code, Tags: javascript, utility
Search my code for "utility functions"ποΈ Sample Data
SelfHub comes with 6 pre-loaded sample memories:
mem_001 - Dark mode UI preference (personal)
mem_002 - TypeScript coding standard (professional)
mem_003 - Vector embeddings concept (learning)
mem_004 - SelfHub project overview (projects)
mem_005 - Database development task (tasks)
mem_006 - ID generation utility code (code)
And 2 sample contexts:
ctx_001 - SelfHub Development (project)
ctx_002 - AI & Machine Learning (topic)
ποΈ Project Structure
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
Available Scripts
# Development mode (auto-reload with tsx)
pnpm dev
# Type checking
pnpm typecheck
# Build for production
pnpm build
# Clean build directory
rm -rf buildHow It Works
MCP Server (
src/index.ts) - Implements the MCP protocol, defines 9 toolsServices Layer - Business logic for memory and context operations
Storage Layer - In-memory Map-based storage with sample data
Models - TypeScript interfaces for type safety
Testing Locally
# 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: 9The 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.
π Troubleshooting
Server Not Showing in Claude Desktop
Check the config path:
Make sure you're editing the correct config file
Use absolute path, not relative
Verify build exists:
ls build/index.jsCheck for typos:
Windows paths need double backslashes:
C:\\path\\to\\JSON syntax must be valid
Restart Claude completely:
Quit from system tray
Wait a few seconds
Start again
Check Claude logs:
Windows:
%APPDATA%\Claude\logsmacOS:
~/Library/Logs/Claude
VS Code Not Showing Tools
Make sure GitHub Copilot is installed:
Press
Ctrl+Shift+XSearch "GitHub Copilot"
Install both "GitHub Copilot" and "GitHub Copilot Chat"
Reload VS Code window:
Ctrl+Shift+Pβ "Reload Window"
Check the build:
pnpm build
Build Errors
# Clean and rebuild
rm -rf build node_modules
pnpm install
pnpm buildData Not Persisting
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.
π CI/CD
This project includes GitHub Actions workflows:
CI Pipeline - Runs on every push, tests on Node 18.x and 20.x
Release Workflow - Creates releases when you push version tags
Dependabot - Automatically updates dependencies
See .github/workflows/ for details.
π Documentation
Model Context Protocol - Learn about MCP
Claude Desktop - Download Claude Desktop
GitHub Copilot - Learn about Copilot
πΊοΈ Roadmap
Current Version (v0.1.0)
β In-memory storage
β 9 MCP tools
β Memory categorization and tagging
β Context management
β Text-based search
β Sample data
Future Enhancements
Persistent SQLite storage
Vector embeddings for semantic search
File import/export (JSON, Markdown, CSV)
Data encryption for sensitive information
Web UI for management
Multi-user support
Cloud sync
π€ Contributing
Contributions are welcome! Please feel free to submit a Pull Request.
π License
MIT License - see LICENSE file for details.
π¬ Support
If you have questions or run into issues:
Check the Troubleshooting section
Review the documentation above
Open an issue on GitHub
π Acknowledgments
Built with:
Model Context Protocol SDK - MCP implementation
TypeScript - Type safety
pnpm - Fast package manager
Made with β€οΈ by Sagargupta16
Your personal AI memory hub - remember everything, access anywhere!
This server cannot be installed
Resources
Unclaimed servers have limited discoverability.
Looking for Admin?
If you are the server author, to access and configure the admin panel.
Latest Blog Posts
MCP directory API
We provide all the information about MCP servers via our MCP API.
curl -X GET 'https://glama.ai/api/mcp/v1/servers/Sagargupta16/SelfHub'
If you have feedback or need assistance with the MCP directory API, please join our Discord server