loading…
Search for a command to run...
loading…
Enables AI assistants to access and update personalized context data, creating persistent memory between sessions.
Enables AI assistants to access and update personalized context data, creating persistent memory between sessions.
This repository implements a server for Personal Context Technology (PCT) using the Model Context Protocol (MCP). It enables AI assistants like Claude to access and update your personalized context data, creating persistent memory between sessions.
Personal Context Technology allows you to structure and manage personal data that AI assistants can use to provide more personalized and relevant responses. With PCT:
Watch the Personal Context Technology MCP Server in action:
The demo shows how to:
git clone https://github.com/mikhashev/pct-mcp-server.git
cd pct-mcp-server
npm install
npm run build
npm start
To use this server with Claude Desktop:
%AppData%\Claude Desktop\ directoryclaude_desktop_config.json with the following content:{
"mcpServers": {
"personal-context-server": {
"command": "node",
"args": ["PATH_TO_YOUR_PROJECT/pct-mcp-server/dist/index.js"],
"env": {}
}
}
}
Replace PATH_TO_YOUR_PROJECT with the actual path to your project.
~/Library/Application Support/Claude Desktop/ directoryclaude_desktop_config.json with the following content:{
"mcpServers": {
"personal-context-server": {
"command": "node",
"args": ["/path/to/your/project/pct-mcp-server/dist/index.js"],
"env": {}
}
}
}
~/.config/Claude Desktop/ directoryclaude_desktop_config.json with the following content:{
"mcpServers": {
"personal-context-server": {
"command": "node",
"args": ["/path/to/your/project/pct-mcp-server/dist/index.js"],
"env": {}
}
}
}
npm startClaude can access your personal context data in two ways:
Example prompt: "Using my context data, recommend some learning resources that would match my learning style."
You can update your personal context using the updateContext tool:
Example prompt: "Update my learning_style in preferences to 'visual and hands-on' because I've found I learn better with practical examples."
The default personal context includes:
You can modify the default structure by editing the DEFAULT_CONTEXT object in src/storage/contextStorage.ts.
Or just replace update file data [PATH_TO_YOUR_PROJECT/pct-mcp-server/data/personal_context.json] from template data in repo (https://github.com/mikhashev/personal-context-manager/blob/main/use-cases/self-education/personal_context_self_education_template.json) or another one.
pct-mcp-server/
├── .git/ # Git repository data
├── .gitignore # Git ignore rules
├── LICENSE # License file
├── README.md # Project documentation
├── package-lock.json # Lock file for npm dependencies
├── package.json # Project configuration and dependencies
├── tsconfig.json # TypeScript configuration
└── src/ # Source code
├── index.ts # Main application entry point
├── resources/ # MCP resources implementation
│ └── personalContext.ts # Personal context resource
├── storage/ # Storage implementation
│ └── contextStorage.ts # Context storage functionality
├── tools/ # MCP tools implementation
│ ├── contextSuggestion.ts # Context suggestion tool
│ └── updateContext.ts # Update context tool
└── utils/ # Utility functions
└── instructionHandler.ts # Instruction handling logic
# Generated directories (not in repository)
# ----------------------------------------
# dist/ # Compiled JavaScript files (gitignored)
# node_modules/ # Dependencies (gitignored)
# data/ # User data (gitignored or contains only samples)
# └── personal_context.json # Personal context data (sample only) (don't change filename personal_context.json, update data if need)
The default implementation uses stdio transport for development. For production use, you can switch to HTTP transport:
src/index.ts! I reccomend use stdio transport for development locally on your machine always.
To support multiple users, modify the contextStorage.js file to store contexts in user-specific files based on user IDs.
Contributions are welcome! Please feel free to submit a Pull Request.
This project is released under the MIT License - See LICENSE that covers the project.
This project is based on the Personal Context Technology concept and implements the Model Context Protocol (MCP) developed by Anthropic to enable AI systems to access external context.
Выполни в терминале:
claude mcp add personal-context-technology-mcp-server -- npx Безопасность
Низкий рискАвтоматическая эвристика по публичным данным — не гарантия безопасности.