NexusMind
🧠 NexusMind
通过思维图进行智能科学推理
🔍 概述
NexusMind 利用图结构进行复杂的科学推理。它实现了模型上下文协议 (MCP) ,以便与 Claude Desktop 等 AI 应用程序集成。
主要亮点:
使用基于图的推理处理复杂的科学查询
通过多维评估进行动态置信度评分
采用现代 Python 和 FastAPI 构建,以实现高性能
Docker化,易于部署
模块化设计,可扩展、可定制
Related MCP server: Adaptive Graph of Thoughts MCP Server
🌟 主要特点
8阶段推理流程
核心推理过程遵循复杂的 8 阶段流程:
🌱 初始化
根据查询创建根节点
建立初始图形结构
设定信心基线
🧩 分解
将查询分解为维度
识别关键组件
创建维度节点
🔬 假设/计划
产生多个假设
创建推理策略
建立伪造标准
📊 证据整合
收集支持证据
将证据与假设联系起来
更新置信度分数
✂️ 修剪/合并
删除低价值元素
合并相似节点
优化图形结构
🔍 子图提取
识别相关部分
专注于高价值路径
创建目标子图
📝 构图
总结主要发现
创造连贯的见解
生成全面的答案
🤔 反思
评估推理质量
确定改进领域
最终信心评估
技术能力
🧠 图形知识表示:使用
networkx来建模复杂的关系🔄 动态置信向量:
实证支持
理论基础
方法论的严谨性
共识对齐
🔌 MCP 服务器:无缝集成 Claude Desktop
⚡ 高性能 API :现代 FastAPI 实现
🐳 轻松部署:支持 Docker 和 Docker Compose
🧩 可扩展架构:模块化组件,可定制
⚙️ 灵活的配置:Pydantic 和 YAML 配置
🛠️ 技术栈
📂 项目结构
asr-got-reimagined/
├── config/
│ ├── settings.yaml
│ └── claude_mcp_config.json
├── src/asr_got_reimagined/
│ ├── api/
│ │ ├── routes/
│ │ │ └── mcp.py
│ │ └── schemas.py
│ ├── domain/
│ │ ├── models/
│ │ │ ├── common.py
│ │ │ ├── graph_elements.py
│ │ │ └── graph_state.py
│ │ ├── services/
│ │ │ └── got_processor.py
│ │ ├── stages/
│ │ │ ├── base_stage.py
│ │ │ ├── stage_1_*.py
│ │ │ └── stage_2_*.py...
│ │ └── utils/
│ ├── main.py
│ └── app_setup.py
├── scripts/
├── Dockerfile
├── docker-compose.yml
└── pyproject.toml 🚀 入门
先决条件
Python 3.13+ (Docker 镜像使用 Python 3.13.3-slim-bookworm)
Poetry :用于依赖管理
Docker和Docker Compose :用于容器化部署
安装和设置(本地开发)
克隆存储库:
git clone https://github.com/SaptaDey/NexusMind.git cd NexusMind使用 Poetry 安装依赖项:
poetry install这将创建一个虚拟环境并安装
pyproject.toml中指定的所有必要包。激活虚拟环境:
poetry shell配置应用程序:
根据需要调整
config/settings.yaml中的设置为敏感信息配置环境变量或
.env文件
运行开发服务器:
python src/asr_got_reimagined/main.py或者,为了获得更多控制:
uvicorn asr_got_reimagined.main:app --reload --host 0.0.0.0 --port 8000API 将在
http://localhost:8000上可用。
Docker 部署
构建并运行 Docker 容器:
docker-compose up --build对于分离模式:
docker-compose up --build -dDocker 镜像使用 Python 3.13.3-slim-bookworm 作为基础镜像,以提高性能和安全性。
访问 API :可通过
http://localhost:8000访问 API(或按照docker-compose.yml中的配置)。
🔌 API 端点
核心端点
MCP 端点:
POST /mcp用于与 Claude Desktop 等 MCP 客户端进行通信
实现用于 AI 交互的模型上下文协议
健康检查:
GET /health用于监控和服务发现的基本健康检查
附加端点(计划中)
图形查询:
POST /api/graph/queryASR-GoT 查询的直接接口
图形状态:
GET /api/graph/{session_id}检索推理图的当前状态
分析:
GET /api/analytics/{session_id}获取有关推理过程的指标
🧪 测试与质量
开发工具
类型安全:
使用
mypy.ini和pyrightconfig.json配置使用
python scripts/add_type_hints.py修复记录器类型问题
代码质量:
具有类型注释的完全类型代码库
可用的预提交钩子:
poetry run pre-commit install使用 Ruff 自动格式化
Tool Schema Changelog
Recent tool additions, removals, and schema changes observed during successful MCP inspections.
Loading tool schema changelog…
This server cannot be deployed
Maintenance
Related MCP Connectors
Hybrid human + AI expertise for faster, trusted answers and decisions via MCP Server.
The Dappier MCP server connects LLMs and AI agents to real-time, rights-cleared, proprietary data from trusted sources across various domains. It provides specialized knowledge through real-time web search, financial stock market and crypto data access, AI-powered content recommendations from premium publishers, and structured outputs with sub-300ms response times, enabling AI systems to respond to current events and trends.
The CustomGPT.ai MCP server is a fully managed, RAG-powered endpoint that connects large language models with private knowledge bases and external data sources. It provides tools for retrieval-augmented generation queries (send_message), data ingestion (upload_file), and source listing, enabling AI agents to query private documents like PDFs with high accuracy and real-time citations.
MCP server for building and testing AI agents with multi-model experimentation and insights.
Related MCP Servers
- AlicenseDqualityCmaintenanceA sophisticated MCP server that provides a multi-dimensional, adaptive reasoning framework for AI assistants, replacing linear reasoning with a graph-based architecture for more nuanced cognitive processes.160 npm33MIT
- AlicenseNot gradedqualityDmaintenanceA scientific reasoning framework that leverages graph structures and the Model Context Protocol (MCP) to process complex scientific queries through an Advanced Scientific Reasoning Graph-of-Thoughts (ASR-GoT) approach.31MIT
- AlicenseBqualityBmaintenanceAn MCP server that provides standardized access to biomedical knowledge bases and resources, enabling AI systems to retrieve verified information from sources like bioRxiv, EuropePMC, and various protein/gene databases.5233Apache 2.0
- AlicenseAqualityDmaintenanceAn MCP server that enhances sequential thinking with meta-cognitive capabilities including confidence tracking, hypothesis testing, and organized memory storage through graph-based libraries and structured JSON documents.1013MIT