Skip to main content
Glama

šŸ›ļø ArchMCP : Central Remote MCP Server for Microservices

ArchMCP connects your AI coding assistant (like Claude Desktop, Cursor, Google Antigravity, or VS Code) to your entire microservices architecture.

Instead of pasting entire repositories into prompt windows or having to manually explain how your services talk to each other, ArchMCP gives your AI a central place to look up APIs, database tables, message queues, and dependencies in real time.


šŸ” Automatic Repository Discovery (archmcp scan)

You shouldn't have to manually write config files to explain your architecture. ArchMCP can scan your project folder and figure it out on its own.

Run:

archmcp scan ./my-project

ArchMCP scans your code or monorepo and automatically finds:

  • Services & Modules: Monorepo folders, microservices, and frameworks (FastAPI, Flask, Express, NestJS, Spring Boot, Gin, Echo, Rails, etc.)

  • APIs & Routes: HTTP endpoints and paths from Python, TypeScript/JavaScript, Go, Java, Rust, and Ruby code

  • Database Models & Tables: Tables, columns, and relations from SQLAlchemy, Django, Prisma, TypeORM, Mongoose, GORM, JPA, and SQL files

  • Message Queues & Event Topics: Kafka topics, RabbitMQ queues, SQS, and Redis pub/sub channels, including who produces and who consumes them

  • Background Jobs: Celery tasks, BullMQ workers, Spring @Scheduled, Temporal workflows, and cron jobs

  • Docker Services: Containers, port mappings, and dependencies from docker-compose.yml and Dockerfile

  • Configuration: Keys and environment variables from .env and YAML config files (with secret values masked)

  • Dependencies & Call Flow: Inferred links between services based on HTTP calls, shared queues, and config URLs:

user-service
    ↓ [HTTP/REST]
payment-service
    ↓ [Event: order.paid]
notification-service

Related MCP server: lxDIG MCP

šŸ’” The Problem ArchMCP Solves

When you work on microservices with an AI assistant, the AI usually only sees the file or folder you currently have open.

For example, if you are writing code in order-service and ask your AI to charge a customer:

  • It doesn't know what endpoint payment-service exposes or what payload it needs.

  • It doesn't know what database tables inventory-service has.

  • It doesn't know if changing an API will break notification-service.

Developers usually try two workarounds:

  1. Pasting everything into the prompt: Wastes thousands of tokens, costs money, and fills context windows with noise.

  2. Cloning 20+ repos locally: Hard to keep in sync across a team.

How ArchMCP helps

ArchMCP runs as a shared or local MCP server. When your AI assistant needs context, it asks ArchMCP directly using standard MCP tools:

  • "Which service handles user payments?" → uses search_microservices

  • "What columns are in the transactions table?" → uses get_database_schema

  • "If I update /api/v1/orders, which services might break?" → uses analyze_blast_radius

  • "What is the flow for checkout?" → uses generate_sequence_diagram

  • "Scan our new project repo" → uses scan_repository


šŸš€ Quickstart

1. Install

git clone https://github.com/ShubhamScript/archmcp.git
cd archmcp
pip install -e .[dev]

2. Run Tests

pytest -v

3. Scan a Project or Monorepo

# Scan any folder or project
archmcp scan ./my-project

# Or scan with Mermaid diagram output
archmcp scan ./my-project --format mermaid

4. Start the Server

archmcp run

Open http://localhost:8000/dashboard in your browser to view the visualizer and test queries.


šŸ”Œ Connecting to Your AI Assistant

Google Antigravity IDE (.agents/mcp_config.json)

{
  "mcpServers": {
    "archmcp": {
      "url": "http://127.0.0.1:8000/sse",
      "headers": {
        "Authorization": "Bearer arch_live_<YOUR_KEY_ID>_<YOUR_SECRET_TOKEN>"
      }
    }
  }
}

Claude Desktop (claude_desktop_config.json)

{
  "mcpServers": {
    "archmcp": {
      "url": "http://127.0.0.1:8000/sse",
      "headers": {
        "Authorization": "Bearer arch_live_<YOUR_KEY_ID>_<YOUR_SECRET_TOKEN>"
      }
    }
  }
}

Cursor (.cursor/mcp.json)

{
  "mcpServers": {
    "archmcp": {
      "url": "http://127.0.0.1:8000/sse?token=arch_live_<YOUR_KEY_ID>_<YOUR_SECRET_TOKEN>"
    }
  }
}

āŒØļø CLI Commands

# Start server
archmcp run

# Scan a codebase or monorepo
archmcp scan ./path/to/project

# Explore registered services in terminal
archmcp explore

# Check blast radius when modifying a service
archmcp blast-radius auth-service

# Import an OpenAPI spec directly
archmcp import-openapi https://api.example.com/openapi.json

# API Key Management
archmcp keys create --name "My Laptop" --role developer
archmcp keys list
archmcp keys rotate <kid>
archmcp keys revoke <kid>

šŸ› ļø MCP Tools Included

Your AI assistant has access to these tools out of the box:

Tool

What it does

scan_repository

Scans a folder to discover services, APIs, DB schemas, queues, jobs, and dependency graphs

search_microservices

Search across services, routes, tables, and docs with keywords

list_all_services

Get a summary list of all tracked services

get_service_details

Get full metadata, tech stack, repo URL, and owner for a service

get_service_apis

List all API routes for a service

get_database_schema

Get tables and columns owned by a service

get_service_dependencies

Get upstream callers and downstream dependencies

find_api_owner

Find which service owns a specific route (e.g. /payments/charge)

find_table_owner

Find which service owns a database table

analyze_blast_radius

See all direct and indirect downstream services affected by a change

generate_sequence_diagram

Generates a Mermaid sequence diagram for workflows (e.g. checkout, refund)

get_full_context_package

Bundles metadata, schemas, and docs for AI code generation


šŸ“ Project Structure

archmcp/
ā”œā”€ā”€ src/archmcp/
│   ā”œā”€ā”€ discovery/     # Automatic code scanner, route extractor, schema parser, dependency linker
│   ā”œā”€ā”€ mcp/           # MCP tools, resources, prompts, and SSE endpoint
│   ā”œā”€ā”€ auth/          # API key generation, hashing, rate limiting, and permission scopes
│   ā”œā”€ā”€ services/      # Blast radius analysis, dependency graph, search
│   ā”œā”€ā”€ storage/       # Fast in-memory database and keyword search index
│   ā”œā”€ā”€ ingestion/     # OpenAPI spec importer and document parser
│   ā”œā”€ā”€ web/           # Browser dashboard and visualizer
│   └── cli.py         # Command line interface
ā”œā”€ā”€ tests/             # Comprehensive pytest test suite (51 tests)
ā”œā”€ā”€ data/              # Default repositories.yaml catalog and keystore
└── docs/              # User manual and documentation

šŸ“„ License

MIT License.

Tool Schema Changelog

Recent tool additions, removals, and schema changes observed during successful MCP inspections. Dates show when Glama detected each change.

No tool schema history has been recorded yet.

Maintenance

ActivityMaintained
ResponsivenessNo issues

Resources

Unclaimed servers have limited discoverability.

Looking for Admin?

If you are the server author, to access and configure the admin panel.

Related MCP Connectors

  • The Cortex MCP server provides read-only access to real-time engineering context from the Cortex developer portal, allowing AI coding assistants to answer natural language questions about your organization's catalog (microservices, libraries, domains, teams, infrastructure), scorecards (engineering standards and best practices), initiatives (goals and deadlines), and Engineering Intelligence metrics. It includes tools for querying documentation, tracking personal entities, and accessing AI-assisted insights across the entire Cortex ecosystem.

  • The Remote MCP server acts as a standardized bridge between LLM applications (like Claude, ChatGPT, and Cursor) and external services, enabling AI agents to access external tools and resources. Its primary capability is providing a centralized search tool to discover other MCP servers and their respective tools. Unlike local implementations, it runs remotely with OAuth authentication and permission controls for security.

  • Persistent memory and cross-session learning for AI coding assistants (hosted remote MCP).

  • MCP server for building and testing AI agents with multi-model experimentation and insights.

Related MCP Servers

  • F
    license
    Not graded
    quality
    D
    maintenance
    An MCP server that transforms codebases into intelligent, queryable knowledge bases, enabling AI assistants to perform semantic search, explore architecture, and analyze code relationships.
    166
    -
  • F
    license
    B
    quality
    C
    maintenance
    MCP server that gives AI coding assistants persistent memory, structural code graph analysis, and safe multi-agent coordination, enabling them to answer architectural questions, track decisions across sessions, and coordinate safely in multi-agent workflows.
    39
    4
    -
  • A
    license
    Not graded
    quality
    A
    maintenance
    MCP server for local-first code intelligence, providing structural code graph, semantic search, and impact analysis to AI agents.
    2
    MIT
  • A
    license
    Not graded
    quality
    A
    maintenance
    A production-ready MCP server that enables AI assistants to intelligently understand, analyze, edit, navigate, and review software projects with multi-workspace support, Git integration, and semantic search.
    1
    MIT

Latest Blog Posts

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/ShubhamScript/archmcp'

If you have feedback or need assistance with the MCP directory API, please join our Discord server