Token导航 LogoToken导航TokenDH.com
Atlas MCP logo
数据服务stdio官方级别未说明来源级核验

Atlas MCP

MCP Server

Atlas MCP是一个生产级MCP服务器,为LLM代理提供结构化内存和检索增强生成(RAG)功能,适用于软件工程项目。

工具数

4

提示词数

0

GitHub Stars

0

资源数

0
LLM代理检索增强生成PythonClaudeClaude DesktopClaude

安装说明

本站只整理中文说明和来源信息,不托管安装包,也不代用户安装。

作者 / 组织

jhow-043

提供方

jhow-043

最后核验

2026/5/17 20:20

运行时

Python

快速接入

先看主来源和安装命令,再打开仓库或文档;下面只保留这个条目的关键接入事实。

命令预览

uv run python -m atlas_mcp

详细介绍

阿特拉斯MCP

![CI](https://github.com/jhow-043/Atlas-MCP/actions/workflows/ci.yml) ![Coverage](https://github.com/jhow-043/Atlas-MCP) ![License: MIT](LICENSE) ![Python 3.12+](https://www.python.org/downloads/) ![MCP](https://github.com/modelcontextprotocol)

用于软件工程项目的结构化上下文和RAG的生产级MCP服务器。

O阿特拉斯MCP实施 模型上下文协议(MCP) 提供 结构化内存 LLM代理 — 技术堆栈, 约定, 架构决策和语义搜索通过RAG (检索增强生成) 与PostgreSQL + pgvector.

______________________________________________________________________

项目状态

阶段描述状态
阶段 0仓库基础✅ 结束
第一阶段 MCP基础与协议✅ 结束
第二阶段 Context Layers 和 Persistence✅ 结束
第3阶段:矢量化、RAG和高级工具✅ 结束
第四阶段 Bootstrap、布线和服务器功能✅ 结束
第5阶段:文档、硬化和发布✅ 结束
640+个睾丸 · 93% 覆盖率 · 4工具 · 7资源

______________________________________________________________________

快速开始

选项 1:Docker(推荐)

# Clonar o repositório
git clone https://github.com/jhow-043/Atlas-MCP.git
cd Atlas-MCP

# Copiar variáveis de ambiente e configurar
cp .env.example .env
# Editar .env com sua OPENAI_API_KEY (ou usar sentence-transformers local)

# Subir tudo (PostgreSQL + Atlas MCP)
docker compose up -d

# Verificar saúde dos serviços
docker compose ps

选项 2: 本地( stdio)

# Clonar e instalar
git clone https://github.com/jhow-043/Atlas-MCP.git
cd Atlas-MCP
uv sync --all-extras

# Copiar e configurar variáveis de ambiente
cp .env.example .env

# Iniciar PostgreSQL (necessário para RAG)
docker compose up -d postgres

# Iniciar o servidor
uv run python -m atlas_mcp

选项 3: 无数据库( 降级模式)

# O servidor funciona sem PostgreSQL — resources ok, RAG indisponível
uv run python -m atlas_mcp
在降级模式下,资源如 context://core/stack 它们正常工作。依赖RAG的工具(search_context)返回信息错误。

______________________________________________________________________

资源

资源是只读数据,可以通过URI访问:

URI描述
context://core/stack 技术堆栈(实际数据) pyproject.toml)
context://core/conventions 代码规范(style,naming,testing)
context://core/structure项目目录结构
context://decisions/adrs注册ADR列表
context://decisions/adrs/{id} 特定ADR的详细信息
context://governance/audit-log总督审计署
context://workflow/current 主动开发工作流程

______________________________________________________________________

工具

工具是代理可以执行的操作:

名称描述需要 DB?
search_context 在项目上下文中通过 RAG 搜索语义✅
plan_feature具有上下文的结构化功能规划可选
analyze_bug有上下文的结构化bug分析可选
register_adr 创建和记录架构决策记录✅

工具参数

search_context

query (str, obrigatório) — Texto de busca semântica
filters (dict, opcional) — Filtros por tipo de documento
limit (int, opcional) — Máximo de resultados (padrão: 5)
similarity_threshold (float, opcional) — Limiar de similaridade 0–1 (padrão: 0.7)

plan_feature

title (str, obrigatório) — Nome da feature
description (str, obrigatório) — Descrição detalhada
requirements (list[str], opcional) — Requisitos
constraints (list[str], opcional) — Restrições

analyze_bug

title (str, obrigatório) — Título do bug
description (str, obrigatório) — Descrição do problema
expected_behavior (str, opcional) — Comportamento esperado
steps_to_reproduce (list[str], opcional) — Passos para reproduzir

register_adr

title (str, obrigatório) — Título da decisão
context (str, obrigatório) — Contexto da decisão
decision (str, obrigatório) — A decisão tomada
consequences (str, obrigatório) — Consequências
alternatives_considered (list[str], opcional) — Alternativas
tags (list[str], opcional) — Tags de categorização

______________________________________________________________________

建筑

┌──────────────────────────────┐
│    MCP Client (Claude, etc)  │
└────────────┬─────────────────┘
             │ JSON-RPC 2.0 (stdio/SSE)
             ▼
┌──────────────────────────────┐
│      Atlas MCP Server        │
│  ┌────────┬────────┬───────┐ │
│  │Resources│ Tools │Prompts│ │
│  └───┬────┴───┬────┴───┬───┘ │
│      ▼        ▼        ▼     │
│  ┌───────────────────────┐   │
│  │    Context Layers     │   │
│  │  Core · Workflow ·    │   │
│  │  Decision             │   │
│  └───────────┬───────────┘   │
│              ▼               │
│  ┌───────────────────────┐   │
│  │   Vectorization (RAG) │   │
│  │  Chunker → Embeddings │   │
│  │  → VectorStore        │   │
│  └───────────┬───────────┘   │
│              ▼               │
│  ┌───────────────────────┐   │
│  │ Governance &          │   │
│  │ Persistence           │   │
│  │ PostgreSQL + pgvector │   │
│  └───────────────────────┘   │
└──────────────────────────────┘

背景垃圾

层次描述可用性
核心堆栈,约定,项目结构随时可用
工作流程正在进行的功能、错误或重构的上下文由工作流程启用
决定批准的 ADR 和架构决策随时可用

管道RAG

  1. 分块MarkdownChunker 按语义标题划分文档
  2. 嵌入EmbeddingProvider (OpenAI 或 Sentence Transformers) 生成向量
  3. 存储VectorStore 持续没有PGVector COM搜索Cosine相似性
  4. 索引IndexingService orquestra块→ 嵌入→ store
  5. 治理 --Documentos APPROVED 自动索引; DEPRECATED 已删除

______________________________________________________________________

配置

查看 配置指南 完整的细节。

主要环境变量

变量描述Default
POSTGRES_HOST主机做PostgreSQLlocalhost
POSTGRES_PORT PostgreSQL 的端口 5432
POSTGRES_USER用户atlas
POSTGRES_PASSWORD 密码atlas_dev
POSTGRES_DB 银行名称。 atlas_mcp
EMBEDDING_PROVIDERopenaisentence-transformersopenai
OPENAI_API_KEYAPI密钥do OpenAI-
ATLAS_TRANSPORTstdiossestdio
ATLAS_LOG_LEVEL 日志级别INFO
ATLAS_LOG_FORMATtextjsontext

______________________________________________________________________

USO com克劳德桌面

添加到您的 claude_desktop_config.json:

{
  "mcpServers": {
    "atlas-mcp": {
      "command": "uv",
      "args": ["run", "python", "-m", "atlas_mcp"],
      "cwd": "/caminho/para/Atlas-MCP",
      "env": {
        "POSTGRES_HOST": "localhost",
        "EMBEDDING_PROVIDER": "openai",
        "OPENAI_API_KEY": "sk-..."
      }
    }
  }
}
对于没有API密钥的本地模式,请使用 "EMBEDDING_PROVIDER": "sentence-transformers"看看 使用指南 更多的例子。

______________________________________________________________________

项目结构

Atlas-MCP/
├── src/atlas_mcp/              # Código-fonte principal
│   ├── __main__.py             # Entry point (python -m atlas_mcp)
│   ├── server.py               # Factory do servidor MCP
│   ├── bootstrap.py            # Wiring de startup e shutdown
│   ├── config/                 # Settings centralizado + logging
│   │   ├── settings.py         # Settings (env vars + .env)
│   │   └── logging.py          # Logging estruturado (text/json)
│   ├── protocol/               # Camada de protocolo MCP
│   │   ├── handler.py          # ProtocolHandler (lifecycle + transports)
│   │   └── errors.py           # Exceções JSON-RPC 2.0
│   ├── resources/              # 7 MCP Resources (URI-based)
│   ├── tools/                  # 4 MCP Tools
│   │   ├── executor.py         # ToolExecutor
│   │   ├── search_context.py   # RAG search
│   │   ├── plan_feature.py     # Feature planning
│   │   ├── analyze_bug.py      # Bug analysis
│   │   └── register_adr.py     # ADR registration
│   ├── context/                # Core, Decision, Workflow
│   ├── governance/             # GovernanceService + AuditLogger
│   ├── persistence/            # DatabaseManager + MigrationRunner
│   └── vectorization/          # Chunker, Embeddings, VectorStore, Indexing
├── tests/                      # 640+ testes (93% cobertura)
│   ├── unit/                   # Testes unitários
│   └── integration/            # Testes de integração (requer Docker)
├── docs/                       # Documentação
│   ├── architecture/           # Contexto e arquitetura
│   ├── phases/                 # Planejamento por fases
│   ├── adr/                    # Architecture Decision Records
│   ├── configuration.md        # Guia de configuração
│   ├── usage.md                # Guia de uso
│   └── deployment.md           # Guia de deployment
├── docker-compose.yml          # PostgreSQL 16 + pgvector + Atlas MCP
├── Dockerfile                  # Multi-stage build
└── pyproject.toml              # Configuração do projeto

______________________________________________________________________

测试

# Testes unitários
uv run pytest tests/unit/

# Testes de integração (requer Docker com PostgreSQL)
docker compose up -d postgres
uv run pytest tests/integration/

# Todos os testes com cobertura
uv run pytest --cov=src/atlas_mcp --cov-report=term-missing

# Validação completa (lint + format + types + testes)
uv run ruff check .
uv run ruff format --check .
uv run mypy src/
uv run pytest

______________________________________________________________________

文档

文件描述
配置 环境变量和操作模式
使用Claude Desktop,MCP检查员,前雇员
部署Docker编写产品,故障排除
贡献 如何贡献,发展流程
建筑 项目的背景和设计。
不良反应架构决策记录
分支 分支政策。

______________________________________________________________________

许可证

这个项目是根据许可证 MIT许可证.

目录标签

目录标签

LLM代理检索增强生成PythonClaude本地部署结构化内存软件工程PostgreSQL

支持客户端

Claude DesktopClaude

接入字段

传输方式(transport,传输协议)

stdio

鉴权方式(authType,认证方式)

none

运行时(runtime,运行环境)

Python

工具数量(toolCount,工具数)

4

资源数量(resourceCount,资源数)

0

提示词数量(promptCount,提示词数)

0

权限和风险

stdionone部署方式未说明

接入前请确认传输方式、认证方式和部署位置,并根据实际工具能力限制访问范围。

安装前确认

不要直接授予不必要的文件、网络或账号权限;先核对安装命令和配置内容。

来源信息

继续浏览同类 MCP