Skip to main content
Glama

MCP Instruct - Personal Knowledge Base with AI Agent Personas

Deploy to Netlify

A sophisticated MCP (Model Context Protocol) server that provides persistent personal and organizational knowledge across AI agents. This server acts as a memory layer that any LLM can connect to, instantly giving them context about who you are, what you do, and your preferences.

🌟 Features

  • Persistent Knowledge Storage: Information persists across sessions and can be shared between different AI agents

  • Structured Data Categories:

    • Personal Information (name, location, languages, etc.)

    • Professional Background (job, skills, experience)

    • Preferences (communication style, technical level)

    • Project Context (current projects, technologies, goals)

    • Custom Knowledge (any category you want)

  • JSON-Based Forms: Quick and structured data collection

  • Semantic Search: Find information using natural language queries

  • History Tracking: Keep track of all changes to your knowledge base

  • Export/Import: Backup and share your knowledge base

📦 Installation

  1. Clone or download this repository

  2. Install dependencies:

cd mcp-instruct
npm install
  1. Build the TypeScript code:

npm run build

🚀 Usage

Adding to Claude Desktop

Add this to your Claude Desktop configuration file (%APPDATA%\Claude\claude_desktop_config.json on Windows):

{
  "mcpServers": {
    "personal-kb": {
      "command": "node",
      "args": ["G:\\master_it\\mcp-instruct\\dist\\index.js"]
    }
  }
}

Adding to Other AI Agents

For other AI agents that support MCP, add similar configuration pointing to the built server file.

🛠️ Available Tools

Setup & Onboarding

  • kb_initialize: Check knowledge base status and initialize

  • kb_onboard: Start interactive onboarding with questions

  • kb_quick_setup: Quick setup using predefined forms (identity, technical, organization)

  • kb_list_forms: List all available forms and their structures

Information Management

  • kb_update_personal: Update personal information

  • kb_update_professional: Update professional information

  • kb_update_preferences: Update communication preferences

  • kb_update_projects: Update project context

  • kb_add_custom: Add custom knowledge to any category

  • kb_remove_custom: Remove custom knowledge

Retrieval Commands

  • kb_get_all: Get complete knowledge base (formats: full, summary, categories)

  • kb_get_personal: Get personal information

  • kb_get_professional: Get professional information

  • kb_get_preferences: Get preferences

  • kb_get_projects: Get project context

  • kb_get_custom: Get custom knowledge by category

  • kb_search: Search using natural language

  • kb_get_context: Get AI-ready formatted context string

Management

  • kb_get_history: View recent changes

  • kb_export: Export knowledge base as JSON

  • kb_import: Import knowledge base from JSON

💡 Example Usage

First Time Setup

  1. Initialize the knowledge base:

kb_initialize
  1. Start onboarding:

kb_onboard category="all"
  1. Or use quick setup:

kb_quick_setup formType="identity" data={
  "name": "Hubert",
  "occupation": "IT Professional",
  "location": "Montreal, Canada",
  "languages": "English, French"
}

Updating Information

kb_update_personal {
  "name": "Hubert",
  "birthYear": 1987,
  "currentLocation": "Montreal, Canada",
  "languages": ["English", "French"]
}

kb_update_professional {
  "occupation": "IT Professional",
  "yearsOfExperience": 15,
  "specializations": ["System Administration", "Security", "Automation"],
  "skills": ["PowerShell", "Python", "Network Security", "Cloud Infrastructure"]
}

kb_update_preferences {
  "communicationStyle": "technical",
  "responseDetail": "detailed",
  "technicalLevel": "expert"
}

Adding Custom Knowledge

kb_add_custom category="tools" key="favorite_editor" value="VS Code" tags=["development", "tools"]

kb_add_custom category="workflows" key="daily_routine" value={
  "morning": "Check emails and tickets",
  "afternoon": "Project work",
  "evening": "Documentation"
}

Retrieving Information

# Get everything
kb_get_all format="full"

# Get summary
kb_get_all format="summary"

# Search for specific info
kb_search query="programming languages"

# Get AI-ready context
kb_get_context categories=["personal", "professional"]

📁 Data Storage

Your knowledge base is stored in:

  • Windows: C:\Users\[username]\.mcp-personal-kb\default.json

  • Mac/Linux: ~/.mcp-personal-kb/default.json

🔒 Privacy

  • All data is stored locally on your machine

  • No data is sent to external servers

  • You have full control over your information

  • Can export/import for backup or sharing

🤝 How It Works

When an AI agent connects to this MCP server, it can:

  1. Check if you have an existing profile

  2. Ask questions to build your knowledge base (if new)

  3. Retrieve your information to provide personalized responses

  4. Update information as you work together

  5. Search for specific information when needed

The knowledge persists between sessions, so you don't have to re-introduce yourself every time you start a new conversation.

📊 Knowledge Structure

{
  "personal": {
    "name": "Your Name",
    "currentLocation": "City, Country",
    "languages": ["Language1", "Language2"]
  },
  "professional": {
    "occupation": "Your Job",
    "yearsOfExperience": 15,
    "skills": ["Skill1", "Skill2"]
  },
  "preferences": {
    "communicationStyle": "technical",
    "technicalLevel": "expert"
  },
  "projects": {
    "currentProjects": ["Project1", "Project2"],
    "technologies": ["Tech1", "Tech2"]
  },
  "custom": [
    {
      "category": "tools",
      "key": "favorite_ide",
      "value": "VS Code"
    }
  ]
}

🎯 Use Cases

  • Personal Assistant: Give any AI agent instant context about you

  • Team Knowledge: Share organizational knowledge across team AI tools

  • Project Context: Maintain project-specific information

  • Learning Profile: Store your learning preferences and progress

  • Tool Preferences: Remember your favorite tools and workflows

📝 License

MIT

👤 Author

Hubert - IT Professional with 15+ years of experience


Built with ❤️ to give AI agents long-term memory about you!

Available Tools

27 tools
agent_activateC

Activate a specialized AI agent (IT Expert, Hacker, Sales, Blue/Red/Purple Team)

Inputs: agent (required).

agent_get_activeB

Get the currently active agent

Inputs: no named parameters.

agent_get_toolsC

Get available tools for current agent

Inputs: no named parameters.

agent_listA

List all available AI agent personas

Inputs: no named parameters.

agent_switch_quickC

Quick switch agent using shorthand (it/hacker/sales/blue/red/purple)

Inputs: type (required).

kb_add_customC

Add custom knowledge to any category

Inputs: category (required), key (required), value (required), tags.

kb_exportB

Export knowledge base as JSON string

Inputs: no named parameters.

kb_get_allC

Get complete knowledge base as formatted JSON

Inputs: format.

kb_get_contextC

Get AI-ready context string for LLM consumption

Inputs: categories.

kb_get_customC

Get custom knowledge by category

Inputs: category.

kb_get_historyC

Get recent history of knowledge base changes

Inputs: limit.

kb_get_personalC

Get personal information

Inputs: no named parameters.

kb_get_preferencesC

Get user preferences

Inputs: no named parameters.

kb_get_professionalC

Get professional information

Inputs: no named parameters.

kb_get_projectsD

Get project context

Inputs: no named parameters.

kb_importC

Import knowledge base from JSON string

Inputs: data (required).

kb_initializeC

Initialize or check knowledge base status. Returns current profile summary and whether onboarding is needed.

Inputs: profileId.

kb_list_formsC

List available forms and their structures

Inputs: type.

kb_onboardC

Start interactive onboarding to collect initial information. Returns questions for the specified category.

Inputs: category.

kb_quick_setupC

Quick setup using predefined forms for common scenarios

Inputs: formType (required), data (required).

kb_remove_customC

Remove custom knowledge

Inputs: category (required), key (required).

kb_update_personalC

Update personal information (name, location, languages, etc.)

Inputs: name, birthYear, birthPlace, currentLocation, +4 more.

kb_update_preferencesC

Update user preferences (communication style, technical level, etc.)

Inputs: communicationStyle, learningStyle, workingHours, responseDetail, +3 more.

kb_update_professionalC

Update professional information (job, skills, experience, etc.)

Inputs: occupation, yearsOfExperience, industry, specializations, +5 more.

kb_update_projectsC

Update project context (current projects, technologies, goals)

Inputs: currentProjects, technologies, goals, challenges, +2 more.

mcp_instruct_onboardingC

Start the MCP Instruct onboarding process - sets up personal profile and AI agent

Inputs: action, data.

Tool Schema Changelog

Recent tool additions, removals, and schema changes observed during successful MCP inspections.

Loading tool schema changelog…

    TDQS

    B3/5.0

    Scored across 27 tools

    Disambiguation4/5

    Most tools have distinct purposes, with clear separation between agent management (agent_*) and knowledge base operations (kb_*). However, some overlap exists: kb_initialize and mcp_instruct_onboarding both handle setup, and kb_get_context vs kb_get_all might cause confusion about which provides LLM-ready data. Descriptions help clarify, but minor ambiguity remains.

    Naming Consistency5/5

    Tool names follow a highly consistent snake_case pattern with clear verb_noun structure throughout. All agent tools use 'agent_' prefix and all knowledge base tools use 'kb_' prefix, making them easily scannable and predictable. No deviations in naming conventions are present.

    Tool Count3/5

    27 tools is borderline heavy for the apparent scope of agent management and knowledge base operations. While the domain justifies multiple tools, the count feels excessive with many specialized get/update operations that could potentially be consolidated. It may overwhelm agents with choice without proportional utility gain.

    Completeness5/5

    The tool surface provides comprehensive coverage for both domains. Agent management includes activation, switching, listing, and tool access. Knowledge base operations cover full CRUD lifecycle (add, get, update, remove, search), import/export, onboarding, and specialized access by category. No obvious gaps exist for the stated purposes.

    Related MCP Connectors