
Product
Introducing Socket Scanning for VS Code Marketplace Extensions
Socket now scans VS Code extensions, giving teams early detection of risky behaviors, hidden capabilities, and supply chain threats in developer tools.
knowledge-shelf
Advanced tools
Knowledge Shelf MCP Server — on-demand documentation, templates, and workflow automation for AI
A personal knowledge management system for AI coding assistants, built as an MCP server. Store documentation, code patterns, templates, and workflows locally — AI pulls only what it needs, when it needs it.
AI assistants forget everything between sessions. You explain the same patterns, paste the same boilerplate, re-describe the same internal APIs — over and over.
Steering files help, but they load everything into context upfront. For large knowledge bases (library docs, code templates, workflow guides), this wastes context budget and slows responses.
knowledge-shelf gives AI on-demand access to your knowledge. AI searches, finds what's relevant, and loads only that — like a developer searching internal docs.
You: "Set up AG Grid testing for this project"
AI: [searches knowledge] → finds cucumber-boilerplate
[reads manifest] → discovers ag-grid module + setup workflow
[runs workflow] → scaffolds page objects, step definitions, config
Done. Project ready.
| Use Case | Example |
|---|---|
| Library documentation | Internal framework APIs, custom annotations, config options |
| Reusable code patterns | Page objects, base classes, utility functions you use across projects |
| Project templates | Boilerplate for new microservices, test projects, modules |
| Team conventions | Coding standards, architecture decisions, naming rules |
| Workflow automation | Multi-step scaffolding, project setup, code generation |
| Onboarding guides | How-to docs for new team members (AI reads them too) |
| Vendor/tool docs | Summarized docs for tools your team uses daily |
~/.knowledge/ ← Your knowledge lives here
├── cucumber-boilerplate/ ← Manifest-based unit (code + workflows)
│ ├── manifest.json
│ ├── pages/AgGridPage.java
│ ├── workflows/setup-project.json
│ └── references/ag-grid-guide.md
├── spring-patterns/ ← Another unit
│ ├── manifest.json
│ └── ...
└── team-guides/ ← Simple markdown docs
├── deployment.md
└── coding-standards.md
AI accesses this through 7 MCP tools:
| Tool | What AI does with it |
|---|---|
search_docs | Find relevant knowledge by keyword |
get_manifest | Understand what a unit contains (modules, workflows) |
get_doc | Read main documentation |
get_doc_section | Read a specific section |
get_resource | Read code files, templates, configs |
run_workflow | Execute multi-step automation (scaffold, copy, run scripts) |
list_docs | Discover all available knowledge |
npx knowledge-shelf init
npx knowledge-shelf add https://github.com/your-team/shared-knowledge.git --all
Add the configuration below to your MCP client's configuration file. Here are the paths for some popular tools:
%APPDATA%\Claude\claude_desktop_config.json (Windows) or ~/Library/Application Support/Claude/claude_desktop_config.json (Mac).cursor/mcp.json (Workspace)~/.windsurf/mcp.json.kiro/settings/mcp.json~/.gemini/config/mcp.json{
"mcpServers": {
"knowledge": {
"command": "npx",
"args": ["-y", "knowledge-shelf"],
"disabled": false,
"autoApprove": [
"list_docs",
"search_docs",
"get_doc",
"get_doc_section",
"get_resource",
"get_manifest"
]
}
}
}
That's it. AI now has access to your knowledge.
Note:
run_workflowis intentionally excluded fromautoApprovebecause it has side effects (creates files, runs scripts). Add it only if you trust all installed knowledge workflows.
To use a custom knowledge path:
{
"mcpServers": {
"knowledge": {
"command": "npx",
"args": ["-y", "knowledge-shelf", "C:\\path\\to\\knowledge"],
"disabled": false,
"autoApprove": [
"list_docs",
"search_docs",
"get_doc",
"get_doc_section",
"get_resource",
"get_manifest"
]
}
}
}
Tip: You can set a global
KNOWLEDGE_DIRenvironment variable (e.g., to~/.kiro/knowledge/or an absolute path) to persistently change the default directory for both CLI commands and MCP Server operations without passing paths or cờ (flags) manually.
Best for reusable code patterns and automation. A folder with manifest.json:
{
"name": "my-boilerplate",
"version": "1.0.0",
"type": "boilerplate",
"description": "Page objects and step definitions for Angular testing",
"tags": ["cucumber", "selenium", "angular"],
"modules": { "base": { "files": ["pages/BasePage.java"], ... } },
"workflows": { "setup": { "description": "Scaffold new project" } }
}
Best for guides, conventions, API docs. Just .md files with optional frontmatter:
---
description: "Internal REST API authentication patterns"
tags: auth, jwt, spring-security
aliases: auth-guide
---
# Authentication Guide
...
Manage knowledge sources from git repositories — like npm for documentation.
Install globally to use the CLI directly without npx:
npm install -g knowledge-shelf
knowledge-shelf init # Initialize ~/.knowledge
knowledge-shelf add <url> # Install from git repo
knowledge-shelf add <url> --all # Install all units from monorepo
knowledge-shelf add <url> --path <dir> # Install specific subfolder (sparse checkout)
knowledge-shelf search <keywords> # Search installed knowledge
knowledge-shelf info <name> # Show unit details
knowledge-shelf validate [name] # Check structure integrity
knowledge-shelf list # Show installed sources
knowledge-shelf update [name] # Pull latest from remotes
knowledge-shelf pin <name> [version] # Lock version (skip updates)
knowledge-shelf unpin <name> # Unlock
knowledge-shelf export <name> # Package as zip for sharing
knowledge-shelf remove <name> # Uninstall
See docs/cli-reference.md for full command documentation.
Organize a git repo and your team can install with one command:
# Single unit repo
knowledge-shelf add https://github.com/team/qa-boilerplate.git
# Monorepo with multiple units
knowledge-shelf add https://github.com/team/shared-knowledge.git --all
# Specific subfolder
knowledge-shelf add https://github.com/team/project.git --path knowledge/api-patterns --name api-patterns
See docs/publishing-knowledge.md for repo layout conventions.
Includes the knowledge-builder skill for AI-assisted knowledge creation. Install it directly using the CLI (defaults to the current directory if path is omitted):
knowledge-shelf install-skill [path-to-your-agent-skills]
The skill helps AI:
| Doc | Content |
|---|---|
| docs/cli-reference.md | All CLI commands, options, exit codes |
| docs/tools-reference.md | MCP tool parameters, responses, examples |
| docs/knowledge-folder-guide.md | Knowledge directory organization, manifest schema |
| docs/publishing-knowledge.md | Git repo layouts, team sharing, private repos |
npm install
npm run build # Compile TypeScript
npm run dev # Run with tsx (hot reload)
npm test # Run tests (vitest)
npm start # Run compiled server
FAQs
Knowledge Shelf MCP Server — on-demand documentation, templates, and workflow automation for AI
The npm package knowledge-shelf receives a total of 1 weekly downloads. As such, knowledge-shelf popularity was classified as not popular.
We found that knowledge-shelf demonstrated a healthy version release cadence and project activity because the last version was released less than a year ago. It has 1 open source maintainer collaborating on the project.

Product
Socket now scans VS Code extensions, giving teams early detection of risky behaviors, hidden capabilities, and supply chain threats in developer tools.

Research
/Security News
Socket uncovered two malicious VS Code themes in a GlassWorm-linked cluster with thousands of installs across VS Code Marketplace and Open VSX.

Security News
/Company News
Capital One is partnering with Socket to proactively secure its open source supply chain.