Skip to content
MCP server
Registry

project-knowledge-mcp MCP Server

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

project-knowledge-mcp scores 57 (Fair), licensed MIT and written in TypeScript. It installs as a local process. It declares 15 tools. Filed under Knowledge, Maps and location. GitHub shows 1 stars. Package registries report about 52 downloads a week. Install configs are generated for 12 clients. Being listed in the registry is not the same as being vendor-official.

by punic-pillarsMITTypeScript1 stars
Trust score
57Fair
Trust score 57 of 100, Fair

Fair trust

57 of 100 from six public signals. Nobody can buy a point.

  • Listed in the official MCP registry.
  • OSI-style license: mit.
How we score trust
Scorecard

License, quality and maintenance

How grades work
Trust breakdown

Where the 57 comes from

22 + 10 + 1 + 10 + 4 + 10 = 57. Each factor is capped, so no single signal can carry a listing.

Registry22 / 30

Active in the official MCP registry, plus a known vendor namespace.

Registry: 22 of 30 points.
Maintenance10 / 20

How recently the repository saw a commit or release.

Maintenance: 10 of 20 points.
Popularity1 / 20

GitHub stars and weekly downloads, on a log scale.

Popularity: 1 of 20 points.
License10 / 10

A clear, OSI-style open-source license.

License: 10 of 10 points.
Security4 / 10

Not archived, a secure install path, a pinned version.

Security: 4 of 10 points.
Docs10 / 10

A real summary, a README with depth, listed tools.

Docs: 10 of 10 points.

Install

Pick your client, copy the config, paste it in.

Needs Cursor or VS Code installed on this device. The button opens the app and asks you to confirm before it adds the server.

~/Library/Application Support/Claude/claude_desktop_config.json
{  "mcpServers": {    "punic-pillars-project-knowledge-mcp": {      "command": "npx",      "args": [        "-y",        "project-knowledge-mcp@1.0.6"      ]    }  }}

Environment variables

This server does not declare environment variables.

Tools15Tool docs quality grade C

All capabilities
  • Find all files across projects that define or reference a type

  • Confirm the knowledge file path and trigger an explicit save (auto-persist handles this after every mutation)

  • Explore a project's directory tree with optional filter (path keyword), highlight (content keyword with ★ marker), and showAll (full tree with matches marked)

  • Retrieve cross-project context for a feature or step (with optional impact analysis)

  • Retrieve full feature details (compact or verbose, with optional health check)

  • Load knowledge from a JSON file (merge or replace, with preview)

  • Define a feature with its multi-project workflow steps

  • Register a project with name, path, and framework

  • Register one or more type mappings (accepts single object or array)

  • Remove a feature

  • Remove a registered project

  • Find all cross-project references to a file (graph-registered + scan-discovered), plus which features reference it

About

Project Knowledge MCP Server

Node.js npm License

A cross-project knowledge graph for the Model Context Protocol (MCP). Map features across mobile, backend, and admin codebases so your AI agent has full-stack context when testing, writing code, debugging, or adding features.


Quick Start

npx -y project-knowledge-mcp --knowledge-file ./project-knowledge.json

Then add to your MCP settings:

{
  "mcpServers": {
    "project-knowledge": {
      "command": "npx",
      "args": [
        "-y",
        "project-knowledge-mcp",
        "--knowledge-file", "C:\\projects\\project-knowledge.json"
      ],
      "autoApprove": []
    }
  }
}

Table of Contents


Overview

The Problem

When working on a project with multiple codebases — for example, a React Native mobile app, a NestJS backend, and a Next.js admin panel — the AI agent has no awareness of how a single feature flows across all three. This leads to incomplete context, missed dependencies, and breaking changes that could have been caught earlier.

The Solution

This MCP server stores a knowledge graph of your features, mapping each workflow step to the relevant screens, endpoints, controllers, and files in every project. The AI agent can then query this graph to understand end-to-end feature flows, detect cross-project impacts before editing files, and keep type definitions synchronized across codebases.


Features

  • Multi-project awareness — register any number of projects (mobile, backend, admin, etc.)
  • Feature workflow mapping — define features as ordered steps across all projects
  • Auto-scanning — discover NestJS endpoints, Next.js pages, and React Native screens automatically
  • Full-text search — search across features, endpoints, files, and screens
  • Cross-reference lookup — given a file path, find which features reference it
  • Rich context — retrieve all endpoints, screens, and files for a feature at a specific workflow step
  • Breaking change detection — before editing a file, see which other projects will be affected
  • Type/schema synchronization — map equivalent types across projects (e.g., ProductCreateDto ↔ ProductFormSchema)
  • Architecture exploration — browse any project's directory tree with keyword filtering and content highlighting
  • Health validation — verify that all registered file paths still exist; auto-detect stale entries
  • Persistent knowledge — auto-saves to a JSON file after every mutation; can be git-tracked and shared
  • 100% dynamic — all configuration via CLI arguments and runtime tools; no source code edits required

Prerequisites

  • Node.js >= 18
  • npm >= 9 (or pnpm / yarn equivalent)
  • An MCP-compatible client (e.g., VS Code with Cline, any AI-powered IDE)

Installation & Configuration

Install from npm (recommended)

npm install --save-dev project-knowledge-mcp

Or run directly without installing:

npx -y project-knowledge-mcp --knowledge-file ./project-knowledge.json

Build from Source

git clone https://github.com/punic-pillars/project-knowledge-mcp.git
cd project-knowledge-mcp
npm install
npm run build

CLI Flags

All configuration is provided via CLI arguments. No environment variables or configuration files are required.

FlagDescriptionDefault
--backend-pathAbsolute path to the backend project—
--backend-frameworkBackend framework (nestjs, nextjs, react-native, or auto)auto
--backend-nameCustom name for the backend projectbackend
--mobile-pathAbsolute path to the mobile project—
--mobile-frameworkMobile frameworkauto
--mobile-nameCustom name for the mobile projectmobile
--admin-pathAbsolute path to the admin project—
--admin-frameworkAdmin frameworkauto
--admin-nameCustom name for the admin projectadmin
--knowledge-fileAbsolute path to persist the knowledge JSON./project-knowledge.json

MCP Client Configuration

Basic setup — register projects at runtime via tools:

{
  "mcpServers": {
    "project-knowledge": {
      "command": "npx",
      "args": [
        "-y",
        "project-knowledge-mcp",
        "--knowledge-file", "C:\\projects\\project-knowledge.json"
      ],
      "autoApprove": []
    }
  }
}

Bootstrap setup — pre-register projects at startup:

{
  "mcpServers": {
    "project-knowledge": {
      "command": "npx",
      "args": [
        "-y",
        "project-knowledge-mcp",
        "--knowledge-file", "C:\\projects\\project-knowledge.json",
        "--backend-path", "C:\\projects\\backend",
        "--mobile-path", "C:\\projects\\mobile",
        "--admin-path", "C:\\projects\\admin"
      ],
      "autoApprove": []
    }
  }
}

Knowledge File Management

The knowledge file is a plain JSON file that stores all registered projects, feature workflows, and type mappings. Understanding where it lives is essential for maintaining a consistent knowledge graph.

The Shared File Pattern

If your fullstack projects live in separate directories (e.g., backend/, mobile/, admin/), each IDE window starts the MCP server from a different working directory. Without --knowledge-file, each instance creates its own fragment:

backend/
└── project-knowledge.json   ← only backend context

mobile/
└── project-knowledge.json   ← only mobile context

admin/
└── project-knowledge.json   ← only admin context

This defeats the purpose of cross-project awareness. Always use --knowledge-file with an absolute path to point all IDE windows to the same file:

projects/
├── project-knowledge.json   ← single source of truth
├── backend/
├── mobile/
└── admin/

Use the same --knowledge-file path in every IDE window, regardless of which sub-project you have open. All instances read and write to the same file, keeping the knowledge graph complete and consistent.

When the Default Is Safe

The default path (no --knowledge-file) is only safe when you open the monorepo root — the single directory containing all sub-projects:

my-monorepo/              ← open this in your IDE
├── project-knowledge.json   ← created here, covers everything
├── backend/
├── mobile/
└── admin/

If your projects are in separate repositories or directories, always use --knowledge-file.

Sharing with Your Team

Since the knowledge file is plain JSON, you can commit it to version control and share it with your team:

# Track the knowledge graph
git add project-knowledge.json
git commit -m "chore: add project knowledge graph"

# Or keep it local
echo "project-knowledge.json" >> .gitignore

Guideline: One fullstack project = one knowledge file. Use --knowledge-file with an absolute path whenever your projects live in separate directories.


Tools Reference

Project Management

ToolDescription
register_projectRegister a project with name, path, and framework
remove_projectRemove a registered project
scan_projectAuto-discover endpoints, screens, or pages from a project

Feature Management

ToolDescription
register_featureDefine a feature with its multi-project workflow steps
remove_featureRemove a feature
get_featureRetrieve full feature details (compact or verbose, with optional health check)

Search & Query

ToolDescription
searchSearch across features, endpoints, files, and screens
reverse_lookupFind all cross-project references to a file (graph-registered + scan-discovered), plus which features reference it
get_contextRetrieve cross-project context for a feature or step (with optional impact analysis)

Type/Schema Synchronization

ToolDescription
register_type_mappingsRegister one or more type mappings (accepts single object or array)
check_type_mappingFind all files across projects that define or reference a type
suggest_type_mappingsAuto-detect potential type mappings by scanning all projects

Architecture Exploration

ToolDescription
get_architectureExplore a project's directory tree with optional filter (path keyword), highlight (content keyword with ★ marker), and showAll (full tree with matches marked)

Validation

ToolDescription
validate_knowledgeCheck all registered file paths for stale entries; optionally auto-fix with fix=true

Persistence

ToolDescription
export_knowledgeConfirm the knowledge file path and trigger an explicit save (auto-persist handles this after every mutation)
import_knowledgeLoad knowledge from a JSON file (merge or replace, with preview)

Usage Walkthrough

This walkthrough demonstrates the core workflow using a real multi-project setup (NestJS backend, React Native mobile, Next.js admin panel). Domain names have been anonymized — "products" instead of "stations", "orders" instead of "reports" — but every command shown was run against actual projects.

Step 1: Register Projects

register_project { name: "backend", path: "C:/projects/backend", framework: "nestjs" }
register_project { name: "mobile", path: "C:/projects/mobile", framework: "react-native" }
register_project { name: "admin", path: "C:/projects/admin", framework: "auto" }

Step 2: Scan Projects

Discover endpoints, screens, and pages automatically:

scan_project { projectName: "backend" }
scan_project { projectName: "mobile" }
scan_project { projectName: "admin" }

The scanners discover 150+ endpoints, 200+ screens, and multiple admin pages across all registered projects.

Step 3: Define a Feature

Register an auth feature — a straightforward flow that touches all three projects:

register_feature {
  name: "auth",
  description: "Authentication flow — login, register, forgot password, email confirmation",
  workflow: [
    {
      step: 1, name: "Login",
      description: "User logs in with email and password",
      mobile: { screen: "LoginScreen", api: "POST /api/v1/auth/email/login" },
      backend: { endpoint: "POST /api/v1/auth/email/login", controller: "AuthController", file: "src/auth/auth.controller.ts" },
      admin: { page: "/login", file: "src/pages/Login" }
    },
    {
      step: 2, name: "Register",
      description: "User registers a new account",
      mobile: { screen: "RegisterScreen", api: "POST /api/v1/auth/email/register" },
      backend: { endpoint: "POST /api/v1/auth/email/register", controller: "AuthController", file: "src/auth/auth.controller.ts" }
    },
    {
      step: 3, name: "Email Confirmation",
      description: "Confirm email address",
      mobile: { api: "POST /api/v1/auth/email/confirm" },
      backend: { endpoint: "POST /api/v1/auth/email/confirm", controller: "AuthController", file: "src/auth/auth.controller.ts" }
    },
    {
      step: 4, name: "Forgot Password",
      description: "Request password reset",
      mobile: { screen: "ForgotPasswordScreen", api: "POST /api/v1/auth/forgot/password" },
      backend: { endpoint: "POST /api/v1/auth/forgot/password", controller: "AuthController", file: "src/auth/auth.controller.ts" }
    },
    {
      step: 5, name: "Reset Password",
      description: "Reset password with token",
      mobile: { screen: "ResetPasswordScreen", api: "POST /api/v1/auth/reset/password" },
      backend: { endpoint: "POST /api/v1/auth/reset/password", controller: "AuthController", file: "src/auth/auth.controller.ts" }
    }
  ],
  test_scenarios: [
    "Login with valid credentials returns token",
    "Login with invalid email returns 401",
    "Register with existing email returns conflict",
    "Forgot password sends email",
    "Reset password with valid token works"
  ]
}

Step 4: Query Features

Compact mode — get a summary:

get_feature { name: "auth" }

Returns: 5 steps, 5 test scenarios, mobile=5 screens, backend=5 endpoints, admin=1 page.

Verbose mode — get full workflow details:

get_feature { name: "auth", verbose: true }

Returns all 5 steps with full mobile screens, backend endpoints, controllers, and file paths.

With health check — verify all registered paths exist:

get_feature { name: "auth", includeHealth: true }

Returns: Health: 5/5 backend ok, mobile=5/5, admin=1/5, 5 test scenarios.

Step 5: Search and Cross-Reference

Search across the knowledge graph:

search { query: "product" }

Returns 100+ results across features, workflow steps, backend mappings, mobile mappings, type mappings, and file contents.

Find cross-project references to a file:

reverse_lookup { filePath: "auth.controller.ts" }

Returns:

  • Feature associations: Which features reference this file (steps 1–5 of the auth feature)
  • Graph-registered: 5 exact matches (steps 1–5 of the auth feature, all backend), plus the admin Login page
  • Scan-discovered: All files across all projects that import or reference auth.controller.ts

Step 6: Type Mappings

Register a cross-project type mapping:

register_type_mappings {
  mapping: {
    typeName: "productId",
    sourceProject: "backend",
    sourceFile: "src/products/infrastructure/persistence/relational/entities/product.entity.ts",
    targetProject: "mobile",
    targetFile: "app/_types/ProductTypes.ts",
    description: "Standardizing productId as numeric INTEGER across all projects"
  }
}

Check what references a type before changing it:

check_type_mapping { typeName: "productId" }

Returns all files across all projects that define or reference productId.

Auto-discover potential type mappings:

suggest_type_mappings { limit: 5, confidence: "high" }

Scans all registered projects and finds exact type name matches — returns suggestions with source and target file paths ready to register.

Step 7: Validate and Export

Validate knowledge health:

validate_knowledge

Checks all registered file paths across all features and type mappings. Returns a report of existing and missing entries.

Confirm persistence:

The knowledge graph is auto-persisted after every mutation — register_project, register_feature, register_type_mappings, and validate_knowledge with fix=true all write to disk immediately. Use export_knowledge to confirm the file path before committing to version control:

export_knowledge

Returns the path to the knowledge file. Git-track this file to share context with your team.


Security

  • Knowledge file is plain JSON — you control where it is stored and who has access
  • No credentials stored — this MCP only stores project paths and feature mappings
  • File scanning is read-only — scanners only read files, never modify them

Contributing

Contributions are welcome. Please open an issue or pull request for any improvements, bug fixes, or feature requests.


License

MIT

Frequently asked questions

What is project-knowledge-mcp MCP Server?

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

How do I install project-knowledge-mcp MCP Server in Claude Desktop, Cursor, or VS Code?

Pick your client in the Install section on this page and copy the generated config into the client's config file. Step-by-step guides: Claude Desktop, Cursor, and VS Code. project-knowledge-mcp MCP Server runs locally from the npm package project-knowledge-mcp with the command npx -y project-knowledge-mcp@1.0.6.

Is project-knowledge-mcp MCP Server free and open source?

Yes. project-knowledge-mcp MCP Server is released under the MIT license, an OSI-approved open-source license, so you can use, modify, and self-host it under those terms.

Does project-knowledge-mcp MCP Server support remote (HTTP) connections?

No remote endpoint is listed for project-knowledge-mcp MCP Server. It runs locally on your machine over stdio, started by your MCP client.

What tools does project-knowledge-mcp MCP Server provide?

project-knowledge-mcp MCP Server provides 15 tools, including check_type_mapping, export_knowledge, get_architecture, and get_context. See the full tool list for descriptions and parameters.

How is project-knowledge-mcp MCP Server's trust score calculated?

project-knowledge-mcp MCP Server scores 57 out of 100 (Fair). The score adds six capped public signals: registry status, maintenance, popularity, license, documentation, and security. Nobody can pay for points. Read the methodology for the full formula.

Reviews

No reviews yet

—Be the first to review

5 star0 reviews at 5 stars
4 star0 reviews at 4 stars
3 star0 reviews at 3 stars
2 star0 reviews at 2 stars
1 star0 reviews at 1 stars

No published reviews yet. Used it? Tell the next person how it went.

Add badge to your README

Paste either snippet into the repository README. The image links to this listing.

Listed on MCPpedia

Top 5 MCP servers

Daily or weekly. Confirm by email, unsubscribe any time.

How often

Manage this listing

Claim this server