oss-mcp
Click on "Install Server".
Wait a few minutes for the server to deploy. Once ready, it will show a "Started" state.
In the chat, type
@followed by the MCP server name and your instructions, e.g., "@oss-mcpMap API call from web-frontend to backend-service"
That's it! The server will respond to your query, and you can continue using it as needed.
Here is a step-by-step guide with screenshots.
Multi-Repo Architecture Hub (oss-mcp)
An extensible Multi-Repo Architecture Router and Model Context Protocol (MCP) server written in Node.js (ESM). Designed for cross-repository dependency discovery, topological routing, and batch AST indexing integration with codebase-memory-mcp.
β‘ Quick Start (3-Minute Setup)
1. Prerequisites
Ensure you have Node.js (>= 18) and codebase-memory-mcp installed globally:
# Install codebase-memory-mcp globally
npm install -g codebase-memory-mcp@latest2. Clone & Install Dependencies
git clone https://github.com/Abbilville/oss-mcp oss-mcp
cd oss-mcp
npm install3. Initialize Any Multi-Repo Workspace
Point oss-mcp to your microservices directory. It will scan the repositories, generate registry.yaml, and automatically batch-index the code into AST knowledge graphs:
npx oss-mcp setup /path/to/your/microservices-workspaceRelated MCP server: Codebase Contextifier 9000
π Key Capabilities
Multi-Project Dynamic Discovery: Resolves repository manifests (
registry.yaml) dynamically from CLI parameters, central catalogs (data/projects.yaml), environment variables, or workspace hierarchy.Automated Structure & Dependency Scanner: Recursively inspects directory trees across multiple tech stacks (Node.js, Express, React, Python, FastAPI, Java, Go), detecting entry points, ports, and inter-service HTTP/event relationships.
Automated Batch AST Indexing: Orchestrates
codebase-memory-mcpAST graph indexing across all services in a project manifest with a single command.Structured MCP Interface: Exposes standardized tools for AI agents to query cross-service architectures, trace end-to-end request lifecycles, and navigate multi-service boundaries.
π Working with the data/ Directory
The data/ directory provides centralized project management for environments hosting multiple distinct microservice projects or systems.
data/
βββ projects.yaml # Central multi-project catalog (routes project IDs to manifests)
βββ registry.yaml # Default / sample repository manifest and service relationships
βββ projects.yaml.example # Reference template for projects catalog
βββ registry.yaml.example # Reference template for repository manifests1. Central Project Catalog (data/projects.yaml)
If you manage multiple projects on your machine, register them in data/projects.yaml (or ~/.config/oss-mcp/projects.yaml). This lets you target any project by ID (e.g. npx oss-mcp index --project ecommerce):
# data/projects.yaml
projects:
ecommerce:
name: "E-Commerce Microservices"
description: "Frontend SPA, API Gateway, Auth Service, and Order Service"
registry_path: "./data/ecommerce_registry.yaml"
root_path: "/path/to/ecommerce/workspace"
analytics:
name: "Analytics Platform"
description: "Event streaming and reporting backend"
registry_path: "/path/to/analytics/registry.yaml"
root_path: "/path/to/analytics/workspace"2. Repository Manifest (registry.yaml)
Each project has a registry.yaml defining its individual services, metadata, entry points, ports, and relationships.
# registry.yaml
repos:
- name: backend-service
owner: backend-team
local_path: ./services/backend-service
description: "REST API server handling auth, database persistence, and business logic"
tech_stack:
- Node.js
- Express
- PostgreSQL
- Redis
- JWT
entry_point: src/server.js
port: 4000
- name: web-frontend
owner: frontend-team
local_path: ./services/web-frontend
description: "Customer SPA built with React and TypeScript"
tech_stack:
- React
- TypeScript
- Axios
entry_point: src/index.tsx
port: 3000
relationships:
- source: web-frontend
target: backend-service
type: api_call
description: "Frontend makes REST API calls to backend endpoints for data and authentication."
- source: web-frontend
target: backend-service
type: depends_on
description: "Frontend depends on backend JWT session management and RBAC permissions."Supported Relationship Types
api_call: HTTP / REST / GraphQL invocation from source to target.depends_on: Architectural or lifecycle dependency (e.g., shared session, contract dependency).event_stream: Asynchronous messaging (Kafka, RabbitMQ, Redis Pub/Sub, AWS EventBridge).shared_resource: Shared database schema, cache instance, or storage bucket.submodule: Git submodule or monorepo package reference.
π― Manifest Resolution Hierarchy
When executing tools or CLI commands, oss-mcp determines which registry to load using a 4-tier fallback:
1. Explicit Flag / Parameter (--project "ecommerce" or --registry "/path/to/registry.yaml")
βββ 2. Central Projects Catalog (data/projects.yaml or ~/.config/oss-mcp/projects.yaml)
βββ 3. Environment Variable (export MCP_REGISTRY_PATH="/path/to/registry.yaml")
βββ 4. Workspace Traversal (searching current directory & parent folders for registry.yaml)π» CLI Reference
Action | Command | Description |
Onboard Workspace |
| Scans workspace, writes |
Scan Directory |
| Scans directories, infers entry points/ports, and outputs manifest. |
Batch Index |
| Indexes all manifest repos into |
List Services |
| Displays summary table of services, ports, and dependencies. |
List Projects |
| Shows all registered projects and index graph status. |
Decommission |
| Purges indexed graphs and unregisters project from catalog. |
Start Server |
| Launches the MCP server on stdio transport. |
π€ AI Assistant & IDE Integration
oss-mcp provides an architectural bridge that works in tandem with codebase-memory-mcp.
βββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββ
β AI Agent Layer β
β (Antigravity / Claude Code / Cursor / Codex / Roo Code) β
ββββββββββββββββββββββββββββββββ¬βββββββββββββββββββββββββββββββ
β
βββββββββββββββββ΄ββββββββββββββββ
βΌ βΌ
βββββββββββββββββββββββββββββ βββββββββββββββββββββββββββββ
β oss-mcp β β codebase-memory-mcp β
β β β β
β β’ Multi-repo discovery β β β’ Deep AST function index β
β β’ Service topology & port β β β’ Class & symbol search β
β β’ Cross-repo relationshipsβ β β’ Call graph path tracing β
β β’ Batch index management β β β’ Source code snippets β
βββββββββββββββββββββββββββββ βββββββββββββββββββββββββββββ1. πͺ Google Antigravity (AGY)
A. Configure MCP Server
Add oss-mcp to your project's .agents/mcp_config.json or globally in ~/.gemini/config/mcp_config.json:
{
"mcpServers": {
"oss-mcp": {
"command": "node",
"args": ["/absolute/path/to/oss-mcp/src/server.js"]
}
}
}B. Install Workspace Skills & Rules
Copy or symlink the
.agents/skills/directory into your active project's.agents/skills/(or global~/.gemini/config/skills/).Include the multi-repo routing rule in
.agents/AGENTS.md:# Multi-Repo Routing For any question spanning multiple services or repositories, use the `oss-mcp` MCP server to discover topology with `get_architecture_overview()`, then query `codebase-memory-mcp` scoped to relevant repositories.
C. Antigravity Slash Commands & Usage
Type these commands directly in Antigravity chat:
/oss setup /path/to/microservicesβ Auto-scan workspace, infer stacks & ports, generateregistry.yaml, and batch-index into AST graphs./oss statusβ View table of registered services, ports, and graph node/edge counts./oss trace checkout flow from UI to backendβ Trace end-to-end cross-service lifecycles with sequence diagrams./oss remove <project_id>β Safely unregister project and purge knowledge graphs.
2. β‘ Claude Code (CLI) & Claude Desktop
A. Claude Code CLI Setup
Add the MCP server directly using the claude mcp add command:
# Add oss-mcp MCP server
claude mcp add oss-mcp node /absolute/path/to/oss-mcp/src/server.jsOr add to your project's .claude.json / settings.json:
{
"mcpServers": {
"oss-mcp": {
"command": "node",
"args": ["/absolute/path/to/oss-mcp/src/server.js"]
}
}
}B. Claude Desktop Setup
Open your Claude Desktop config file:
Windows:
%APPDATA%\Claude\claude_desktop_config.jsonmacOS:
~/Library/Application Support/Claude/claude_desktop_config.json
Add the server definition:
{
"mcpServers": {
"oss-mcp": {
"command": "node",
"args": ["C:/Telkom/oss-mcp/src/server.js"]
}
}
}C. Claude Workflow Instruction (CLAUDE.md)
Add this guideline to your project's CLAUDE.md to teach Claude how to route multi-repo queries:
## Multi-Repo Architecture Navigation
When answering questions about cross-service interactions, microservices, or APIs:
1. Call `oss-mcp` tool `get_architecture_overview()` to locate caller/callee services and port contracts.
2. Query `codebase-memory-mcp` (`search_graph`, `trace_path`, `get_code_snippet`) scoped by repository name.
3. Synthesize the end-to-end flow with a Mermaid sequence diagram.D. Example Chat Prompts in Claude
"Scan the folder
../servicesand initialize the multi-repo registry.""Show all registered microservices and check if their AST graphs are indexed."
"Trace the JWT authentication flow from frontend login to backend token verification."
3. π― Cursor IDE
A. Add MCP Server in Cursor
Go to Cursor Settings $\rightarrow$ Features $\rightarrow$ MCP.
Click + Add New MCP Server.
Fill in:
Name:
oss-mcpType:
commandCommand:
node /absolute/path/to/oss-mcp/src/server.js
Click Save and verify the green status dot.
B. Cursor Rules (.cursorrules or .cursor/rules/multi-repo.mdc)
Create a rule file in your workspace:
---
description: Multi-repository architecture navigation rules
globs: *
---
You have access to the `oss-mcp` MCP server.
When the user asks about multi-service architecture or cross-repo communication:
1. Call `get_architecture_overview` to understand service topologies and ports.
2. Trace API calls and dependencies between services.
3. Provide Mermaid sequence diagrams for all cross-service workflows.C. Example Chat Prompts in Cursor
@oss-mcp What services communicate with the payment backend?@oss-mcp Scan this multi-repo workspace and generate registry.yamlHow does the frontend client fetch products from the catalog API? Trace the route and handler.
4. π§© Roo Code / Cline / Codex (VS Code Extensions)
A. Configure MCP Settings
Open cline_mcp_settings.json (or roo_cline_mcp_settings.json):
{
"mcpServers": {
"oss-mcp": {
"command": "node",
"args": ["/absolute/path/to/oss-mcp/src/server.js"],
"disabled": false,
"autoApprove": [
"get_architecture_overview",
"get_repo_details",
"get_related_repos",
"list_projects"
]
}
}
}B. Custom Instructions
Add to your Custom Instructions in Cline / Roo Code settings:
When working across multiple repositories, use the `oss-mcp` MCP tools to inspect service dependencies and ports before making code modifications or answering architectural questions.π οΈ Workspace Skills Deep-Dive
Skills in .agents/skills/ encapsulate complete end-to-end multi-repo workflows:
Skill | Primary Trigger | Workflow Performed |
|
| Autonomous Master Navigator: Verifies index status $\rightarrow$ auto-scans & batch-indexes missing repos $\rightarrow$ loads topology $\rightarrow$ executes scoped AST queries $\rightarrow$ synthesizes sequence diagrams. |
| Cross-service flow inquiry | Query Router: Queries |
|
| Onboarding Wizard: Recursively scans directory $\rightarrow$ detects tech stacks & ports $\rightarrow$ writes |
|
| Diagnostics: Queries catalog projects and indexed graph node/edge statistics $\rightarrow$ renders status summary table. |
|
| Cleanup: Decommissions project from catalog $\rightarrow$ purges knowledge graph databases $\rightarrow$ deletes manifest if requested. |
π MCP Tools Reference
Tool | Parameters | Output | Description |
|
| JSON | Returns complete repository manifest, service metadata, and relationship graph. |
|
| JSON | Returns detailed information for a single repository, including ports, stack, and direct connections. |
|
| JSON | Returns connected dependencies ( |
| None | JSON | Lists catalog projects and indexed |
|
| JSON | Scans directory, infers dependencies, and generates a manifest file. |
|
| JSON | Batch indexes repositories into |
|
| JSON | Purges indexed graphs and unregisters project from catalog. |
License
Distributed under the MIT License.
This server cannot be installed
Maintenance
Resources
Unclaimed servers have limited discoverability.
Looking for Admin?
If you are the server author, to access and configure the admin panel.
Related MCP Servers
- AlicenseNot gradedqualityDmaintenanceEnables semantic code search across multiple repositories using natural language queries. Provides intelligent code discovery, symbol lookups, and cross-repo dependency analysis for AI coding agents.MIT
- AlicenseNot gradedqualityDmaintenanceEnables semantic code search across multiple repositories using AST-aware chunking and relationship tracking. Supports local LLM embeddings, real-time indexing, and cross-codebase dependency analysis through vector and graph databases.3MIT
- AlicenseNot gradedqualityBmaintenanceProvides AI coding assistants with deep, semantic understanding of local codebases via AST-aware chunking, cross-repo symbol graphs, and architectural memory, enabling context-aware code search and dependency tracing.10MIT
- AlicenseAqualityCmaintenanceEnables AI agents to map cross-repository dependencies, detect breaking changes in API contracts, and assess impact across services.10MIT
Related MCP Connectors
Code intelligence for coding agents: semantic, AST, graph, and full-text search. 279+ languages.
Give your AI agent a persistent map of your project's structure, dependencies, and bugs.
AI Agent with Architectural Memory. Impact analysis (free), tests and code from the graph (pro).
Latest Blog Posts
- Who's Calling? MCP Hosts Are an Identity Blind Spot (And the Spec Knows It)By Om-Shree-0709 on .mcpAgent IdentityOAuth 2.1
- Your AI Chatbot Just Exposed Your CEO's Salary to an InternBy Om-Shree-0709 on .Agent IdentityMCP SecurityOAuth Delegation
- Why MCP Servers Need Execution Sandboxing (And Why Your Current Stack Isn't Enough)By Om-Shree-0709 on .Agentic AiPrompt InjectionWebAssembly
MCP directory API
We provide all the information about MCP servers via our MCP API.
curl -X GET 'https://glama.ai/api/mcp/v1/servers/Abbilville/oss-mcp'
If you have feedback or need assistance with the MCP directory API, please join our Discord server