# project-knowledge-mcp [Health: Active]

**Category:** 💻 Developer Tools  
**Repository:** https://github.com/punic-pillars/project-knowledge-mcp  
**GitHub Stars:** 1  
**npm Downloads (last month):** 258  
**Views:** 0  
**Installs:** 0  
**Upvotes:** 0  
**Directory Page:** https://allmcps.com/mcp/project-knowledge-mcp

## Description
Cross-project knowledge graph for MCP — map features across mobile, backend, and admin codebases.

## Tools
Capabilities this server exposes over MCP:

- **register_project** — Register a project with name, path, and framework
- **remove_project** — Remove a registered project
- **scan_project** — Auto-discover endpoints, screens, or pages from a project
- **register_feature** — Define a feature with its multi-project workflow steps
- **remove_feature** — Remove a feature
- **get_feature** — Retrieve full feature details (compact or verbose, with optional health check)
- **search** — Search across features, endpoints, files, and screens
- **reverse_lookup** — Find all cross-project references to a file (graph-registered + scan-discovered), plus which features reference it
- **get_context** — Retrieve cross-project context for a feature or step (with optional impact analysis)
- **register_type_mappings** — Register one or more type mappings (accepts single object or array)
- **check_type_mapping** — Find all files across projects that define or reference a type
- **suggest_type_mappings** — Auto-detect potential type mappings by scanning all projects
- **get_architecture** — Explore a project's directory tree with optional `filter` (path keyword), `highlight` (content keyword with ★ marker), and `showAll` (full tree with matches marked)
- **validate_knowledge** — Check all registered file paths for stale entries; optionally auto-fix with `fix=true
- **export_knowledge** — Confirm the knowledge file path and trigger an explicit save (auto-persist handles this after every mutation)
- **import_knowledge** — Load knowledge from a JSON file (merge or replace, with preview)

## Claude Desktop Quick Installation
Install path detected from listing signals. Uses `npx` (confidence: high):

```json
"mcpServers": {
  "project-knowledge-mcp": {
    "command": "npx",
    "args": ["-y","project-knowledge-mcp"]
  }
}
```

## Documentation

## What project-knowledge-mcp MCP server does

The project-knowledge-mcp MCP server maintains a cross-project knowledge graph for applications whose features span multiple codebases. Projects are registered with a name, filesystem path, and framework. Features can then be described as ordered workflow steps that point to relevant screens, pages, endpoints, and files across those projects.

The graph is intended to give an AI agent context beyond the repository currently open in an IDE. It can show how a feature moves through mobile, backend, and admin codebases, identify files referenced by multiple features, and expose related files before a change is made. The stored knowledge is written to a JSON file and can be committed or shared with a team.

## How it works

Register projects manually or provide startup paths for backend, mobile, and admin projects. The `scan_project` tool discovers supported application structures, including NestJS endpoints, Next.js pages, and React Native screens. Use the registration tools to add feature workflows and type relationships that scanning alone cannot establish.

Query tools cover several levels of detail. `search` looks across features, endpoints, files, and screens. `get_feature` returns a feature in compact or verbose form and can perform a health check, while `get_context` returns the cross-project details for a feature or individual step and can include impact analysis. `reverse_lookup` starts with a file and finds graph-registered and scan-discovered references.

Type relationships are stored separately from feature workflows. Register one or more mappings, check where a type is defined or referenced, or ask the server to suggest possible mappings by scanning all registered projects. The architecture tool provides a directory-tree view with optional path filtering, content highlighting, and full-tree output. Validation checks whether registered paths still exist and can optionally fix stale entries.

## Setup and configuration

Node.js 18 or newer and npm 9 or newer are listed as prerequisites. Run the package directly with `npx -y project-knowledge-mcp --knowledge-file <path>`, or install it as a development dependency and build from source. MCP client configuration uses a command and argument list; no environment variables or configuration files are required for setup.

Use one shared, preferably absolute, `--knowledge-file` path for all IDE windows that work on the same full-stack system. Without that shared path, separate project directories can create separate knowledge files. Startup flags can also provide backend, mobile, and admin paths, names, and framework values. Framework selection supports `nestjs`, `nextjs`, `react-native`, and `auto` for the documented framework flags.

## Tools and capabilities

- Register and remove projects, features, and type mappings.
- Scan projects for endpoints, screens, or pages.
- Search the knowledge graph and retrieve feature or step context.
- Find cross-project file references and feature dependencies.
- Inspect architecture trees with filtering and content highlighting.
- Validate paths, import or merge JSON knowledge, and explicitly export saved knowledge.

The project-knowledge-mcp MCP server automatically persists mutations to the knowledge file. `import_knowledge` can load a JSON file in merge or replace mode, with preview support, while `export_knowledge` confirms the file path and triggers an explicit save.

## Limitations and notes

Automatic discovery is described for NestJS, Next.js, and React Native structures; other project types may require manual registration. The knowledge graph depends on filesystem paths remaining valid, so entries can become stale after files or directories move. Use `validate_knowledge` to detect those entries.

All MCP instances that should share context must point to the same knowledge file. The default relative path is most appropriate when the IDE opens a monorepo root containing all related projects. Separate repositories or directories should use an explicit absolute path instead.

_Full upstream README: https://allmcps.com/mcp/project-knowledge-mcp/readme_

