Related MCP Server Resources

Explore more AI models, providers, and integration options:

  • Explore AI Models
  • Explore AI Providers
  • Explore MCP Servers
  • LangDB Pricing
  • Documentation
  • AI Industry Blog
  • sanderkooger-mcp-server-ragdocs
  • Azure Cosmos DB MCP Server
  • TripAdvisor Vacation Planner MCP Server
  • MCP Pokemon Server
  • IR Toolshed MCP Server
Back to MCP Servers
NexusMind

NexusMind

Public
SaptaDey/NexusMind

An MCP server that leverages graph structures to perform sophisticated scientific reasoning through an 8-stage processing pipeline, enabling AI systems to handle complex scientific queries with dynamic confidence scoring.

Verified
python
0 tools
May 30, 2025
Updated May 30, 2025

🧠 NexusMind

    ╔══════════════════════════════════════╗
    β•‘                                      β•‘
    β•‘           🧠 NexusMind 🧠            β•‘
    β•‘                                      β•‘
    β•‘     Intelligent Scientific           β•‘
    β•‘     Reasoning through                β•‘
    β•‘     Graph-of-Thoughts                β•‘
    β•‘                                      β•‘
    β•šβ•β•β•β•β•β•β•β•β•β•β•β•β•β•β•β•β•β•β•β•β•β•β•β•β•β•β•β•β•β•β•β•β•β•β•β•β•β•β•

Intelligent Scientific Reasoning through Graph-of-Thoughts

πŸš€ Next-Generation AI Reasoning Framework for Scientific Research Leveraging graph structures to transform how AI systems approach scientific reasoning

πŸ” Overview

NexusMind leverages graph structures to perform sophisticated scientific reasoning. It implements the Model Context Protocol (MCP) to integrate with AI applications like Claude Desktop, providing an Advanced Scientific Reasoning Graph-of-Thoughts (ASR-GoT) framework designed for complex research tasks.

Key highlights:

  • Process complex scientific queries using graph-based reasoning
  • Dynamic confidence scoring with multi-dimensional evaluations
  • Built with modern Python and FastAPI for high performance
  • Dockerized for easy deployment
  • Modular design for extensibility and customization
  • Integration with Claude Desktop via MCP protocol

🌟 Key Features

8-Stage Reasoning Pipeline

graph TD A[🌱 Stage 1: Initialization] --> B[🧩 Stage 2: Decomposition] B --> C[πŸ”¬ Stage 3: Hypothesis/Planning] C --> D[πŸ“Š Stage 4: Evidence Integration] D --> E[βœ‚οΈ Stage 5: Pruning/Merging] E --> F[πŸ” Stage 6: Subgraph Extraction] F --> G[πŸ“ Stage 7: Composition] G --> H[πŸ€” Stage 8: Reflection] A1[Create root nodeSet initial confidenceDefine graph structure] --> A B1[Break into dimensionsIdentify componentsCreate dimensional nodes] --> B C1[Generate hypothesesCreate reasoning strategySet falsification criteria] --> C D1[Gather evidenceLink to hypothesesUpdate confidence scores] --> D E1[Remove low-value elementsConsolidate similar nodesOptimize structure] --> E F1[Identify relevant portionsFocus on high-value pathsCreate targeted subgraphs] --> F G1[Synthesize findingsCreate coherent insightsGenerate comprehensive answer] --> G H1[Evaluate reasoning qualityIdentify improvementsFinal confidence assessment] --> H style A fill:#e1f5fe style B fill:#f3e5f5 style C fill:#e8f5e8 style D fill:#fff3e0 style E fill:#ffebee style F fill:#f1f8e9 style G fill:#e3f2fd style H fill:#fce4ec

The core reasoning process follows a sophisticated 8-stage pipeline:

  1. 🌱 Initialization

    • Creates root node from query with multi-dimensional confidence vector
    • Establishes initial graph structure with proper metadata
    • Sets baseline confidence across empirical, theoretical, methodological, and consensus dimensions
  2. 🧩 Decomposition

    • Breaks query into key dimensions: Scope, Objectives, Constraints, Data Needs, Use Cases
    • Identifies potential biases and knowledge gaps from the outset
    • Creates dimensional nodes with initial confidence assessments
  3. πŸ”¬ Hypothesis/Planning

    • Generates 3-5 hypotheses per dimension with explicit falsification criteria
    • Creates detailed execution plans for each hypothesis
    • Tags with disciplinary provenance and impact estimates
  4. πŸ“Š Evidence Integration

    • Iteratively selects hypotheses based on confidence-to-cost ratio and impact
    • Gathers and links evidence using typed edges (causal, temporal, correlative)
    • Updates confidence vectors using Bayesian methods with statistical power assessment
  5. βœ‚οΈ Pruning/Merging

    • Removes nodes with low confidence and impact scores
    • Consolidates semantically similar nodes
    • Optimizes graph structure while preserving critical relationships
  6. πŸ” Subgraph Extraction

    • Identifies high-value subgraphs based on multiple criteria
    • Focuses on nodes with high confidence and impact scores
    • Extracts patterns relevant to the original query
  7. πŸ“ Composition

    • Synthesizes findings into coherent narrative
    • Annotates claims with node IDs and edge types
    • Provides comprehensive answers with proper citations
  8. πŸ€” Reflection

    • Performs comprehensive quality audit
    • Evaluates coverage, bias detection, and methodological rigor
    • Provides final confidence assessment and improvement recommendations

Advanced Technical Capabilities

  πŸ”„ Multi-DimensionalConfidence
  🧠 Graph-BasedKnowledge
  πŸ”Œ MCPIntegration
  ⚑ FastAPIBackend

  🐳 DockerDeployment
  🧩 ModularDesign
  βš™οΈ ConfigurationManagement
  πŸ”’ TypeSafety

  🌐 InterdisciplinaryBridge Nodes
  πŸ”— HyperedgeSupport
  πŸ“Š StatisticalPower Analysis
  🎯 ImpactEstimation

Core Features:

  • 🧠 Graph Knowledge Representation: Uses networkx to model complex relationships with hyperedges and multi-layer networks
  • πŸ”„ Dynamic Confidence Vectors: Four-dimensional confidence assessment (empirical support, theoretical basis, methodological rigor, consensus alignment)
  • 🌐 Interdisciplinary Bridge Nodes: Automatically connects insights across different research domains
  • πŸ”— Advanced Edge Types: Supports causal, temporal, correlative, and custom relationship types
  • πŸ“Š Statistical Rigor: Integrated power analysis and effect size estimation
  • 🎯 Impact-Driven Prioritization: Focuses on high-impact research directions
  • πŸ”Œ MCP Server: Seamless Claude Desktop integration with Model Context Protocol
  • ⚑ High-Performance API: Modern FastAPI implementation with async support

πŸ› οΈ Technology Stack

  Python 3.13+
  FastAPI
  NetworkX
  Docker

  Pytest
  Pydantic
  Poetry
  Uvicorn

πŸ“‚ Project Structure

NexusMind/
β”œβ”€β”€ πŸ“ config/                             # Configuration files
β”‚   β”œβ”€β”€ settings.yaml                      # Application settings
β”‚   β”œβ”€β”€ claude_mcp_config.json            # Claude MCP integration config
β”‚   └── logging.yaml                       # Logging configuration
β”‚
β”œβ”€β”€ πŸ“ src/asr_got_reimagined/            # Main source code
β”‚   β”œβ”€β”€ πŸ“ api/                           # API layer
β”‚   β”‚   β”œβ”€β”€ πŸ“ routes/                    # API route definitions
β”‚   β”‚   β”‚   β”œβ”€β”€ mcp.py                    # MCP protocol endpoints
β”‚   β”‚   β”‚   β”œβ”€β”€ health.py                 # Health check endpoints
β”‚   β”‚   β”‚   └── graph.py                  # Graph query endpoints
β”‚   β”‚   β”œβ”€β”€ schemas.py                    # API request/response schemas
β”‚   β”‚   └── middleware.py                 # API middleware
β”‚   β”‚
β”‚   β”œβ”€β”€ πŸ“ domain/                        # Core business logic
β”‚   β”‚   β”œβ”€β”€ πŸ“ models/                    # Domain models
β”‚   β”‚   β”‚   β”œβ”€β”€ common.py                 # Common types and enums
β”‚   β”‚   β”‚   β”œβ”€β”€ graph_elements.py         # Node, Edge, Hyperedge models
β”‚   β”‚   β”‚   β”œβ”€β”€ graph_state.py            # Graph state management
β”‚   β”‚   β”‚   β”œβ”€β”€ confidence.py             # Confidence vector models
β”‚   β”‚   β”‚   └── metadata.py               # Metadata schemas
β”‚   β”‚   β”‚
β”‚   β”‚   β”œβ”€β”€ πŸ“ services/                  # Business services
β”‚   β”‚   β”‚   β”œβ”€β”€ got_processor.py          # Main GoT processing service
β”‚   β”‚   β”‚   β”œβ”€β”€ evidence_service.py       # Evidence gathering and assessment
β”‚   β”‚   β”‚   β”œβ”€β”€ confidence_service.py     # Confidence calculation service
β”‚   β”‚   β”‚   β”œβ”€β”€ graph_service.py          # Graph manipulation service
β”‚   β”‚   β”‚   └── mcp_service.py            # MCP protocol service
β”‚   β”‚   β”‚
β”‚   β”‚   β”œβ”€β”€ πŸ“ stages/                    # 8-Stage pipeline implementation
β”‚   β”‚   β”‚   β”œβ”€β”€ base_stage.py             # Abstract base stage
β”‚   β”‚   β”‚   β”œβ”€β”€ stage_1_initialization.py # Stage 1: Graph initialization
β”‚   β”‚   β”‚   β”œβ”€β”€ stage_2_decomposition.py  # Stage 2: Query decomposition
β”‚   β”‚   β”‚   β”œβ”€β”€ stage_3_hypothesis.py     # Stage 3: Hypothesis generation
β”‚   β”‚   β”‚   β”œβ”€β”€ stage_4_evidence.py       # Stage 4: Evidence integration
β”‚   β”‚   β”‚   β”œβ”€β”€ stage_5_pruning.py        # Stage 5: Pruning and merging
β”‚   β”‚   β”‚   β”œβ”€β”€ stage_6_extraction.py     # Stage 6: Subgraph extraction
β”‚   β”‚   β”‚   β”œβ”€β”€ stage_7_composition.py    # Stage 7: Answer composition
β”‚   β”‚   β”‚   └── stage_8_reflection.py     # Stage 8: Quality reflection
β”‚   β”‚   β”‚
β”‚   β”‚   └── πŸ“ utils/                     # Utility functions
β”‚   β”‚       β”œβ”€β”€ graph_utils.py            # Graph manipulation utilities
β”‚   β”‚       β”œβ”€β”€ confidence_utils.py       # Confidence calculation utilities
β”‚   β”‚       β”œβ”€β”€ statistical_utils.py      # Statistical analysis utilities
β”‚   β”‚       β”œβ”€β”€ bias_detection.py         # Bias detection algorithms
β”‚   β”‚       └── temporal_analysis.py      # Temporal pattern analysis
β”‚   β”‚
β”‚   β”œβ”€β”€ πŸ“ infrastructure/                # Infrastructure layer
β”‚   β”‚   β”œβ”€β”€ πŸ“ database/                  # Database integration
β”‚   β”‚   β”œβ”€β”€ πŸ“ cache/                     # Caching layer
β”‚   β”‚   └── πŸ“ external/                  # External service integrations
β”‚   β”‚
β”‚   β”œβ”€β”€ main.py                           # Application entry point
β”‚   └── app_setup.py                      # Application setup and configuration
β”‚
β”œβ”€β”€ πŸ“ tests/                             # Test suite
β”‚   β”œβ”€β”€ πŸ“ unit/                          # Unit tests
β”‚   β”‚   β”œβ”€β”€ πŸ“ stages/                    # Stage-specific tests
β”‚   β”‚   β”œβ”€β”€ πŸ“ services/                  # Service tests
β”‚   β”‚   └── πŸ“ models/                    # Model tests
β”‚   β”œβ”€β”€ πŸ“ integration/                   # Integration tests
β”‚   └── πŸ“ fixtures/                      # Test fixtures and data
β”‚
β”œβ”€β”€ πŸ“ scripts/                           # Utility scripts
β”‚   β”œβ”€β”€ setup_dev.py                      # Development setup
β”‚   β”œβ”€β”€ add_type_hints.py                 # Type hint utilities
β”‚   └── deployment/                       # Deployment scripts
β”‚
β”œβ”€β”€ πŸ“ docs/                              # Documentation
β”‚   β”œβ”€β”€ api/                              # API documentation
β”‚   β”œβ”€β”€ architecture/                     # Architecture diagrams
β”‚   └── examples/                         # Usage examples
β”‚
β”œβ”€β”€ πŸ“ static/                            # Static assets
β”‚   └── nexusmind-logo.png               # Application logo
β”‚
β”œβ”€β”€ πŸ“„ Docker Files & Config
β”œβ”€β”€ Dockerfile                            # Docker container definition
β”œβ”€β”€ docker-compose.yml                   # Multi-container setup
β”œβ”€β”€ .dockerignore                         # Docker ignore patterns
β”‚
β”œβ”€β”€ πŸ“„ Configuration Files
β”œβ”€β”€ pyproject.toml                        # Python project configuration
β”œβ”€β”€ poetry.lock                           # Dependency lock file
β”œβ”€β”€ mypy.ini                              # Type checking configuration
β”œβ”€β”€ pyrightconfig.json                    # Python type checker config
β”œβ”€β”€ .pre-commit-config.yaml              # Pre-commit hooks
β”œβ”€β”€ .gitignore                            # Git ignore patterns
β”‚
└── πŸ“„ Documentation
    β”œβ”€β”€ README.md                         # This file
    β”œβ”€β”€ CHANGELOG.md                      # Version history
    β”œβ”€β”€ LICENSE                           # Apache 2.0 license
    └── CONTRIBUTING.md                   # Contribution guidelines

πŸš€ Getting Started

Prerequisites

  • Python 3.13+ (Docker image uses Python 3.13.3-slim-bookworm)
  • Poetry: For dependency management
  • Docker and Docker Compose: For containerized deployment

Installation and Setup (Local Development)

  1. Clone the repository:

    git clone https://github.com/SaptaDey/NexusMind.git cd NexusMind
  2. Install dependencies using Poetry:

    poetry install

    This creates a virtual environment and installs all necessary packages specified in pyproject.toml.

  3. Activate the virtual environment:

    poetry shell
  4. Configure the application:

    # Copy example configuration cp config/settings.example.yaml config/settings.yaml # Edit configuration as needed vim config/settings.yaml
  5. Set up environment variables (optional):

    # Create .env file for sensitive configuration echo "LOG_LEVEL=DEBUG" > .env echo "API_HOST=0.0.0.0" >> .env echo "API_PORT=8000" >> .env
  6. Run the development server:

    python src/asr_got_reimagined/main.py

    Alternatively, for more control:

    uvicorn asr_got_reimagined.main:app --reload --host 0.0.0.0 --port 8000

    The API will be available at http://localhost:8000.

Docker Deployment

graph TB subgraph "Development Environment" A[πŸ‘¨β€πŸ’» Developer] --> B[🐳 Docker Compose] end subgraph "Container Orchestration" B --> C[πŸ“¦ NexusMind Container] B --> D[πŸ“Š Monitoring Container] B --> E[πŸ—„οΈ Database Container] end subgraph "NexusMind Application" C --> F[⚑ FastAPI Server] F --> G[🧠 ASR-GoT Engine] F --> H[πŸ”Œ MCP Protocol] end subgraph "External Integrations" H --> I[πŸ€– Claude Desktop] H --> J[πŸ”— Other AI Clients] end style A fill:#e1f5fe style B fill:#f3e5f5 style C fill:#e8f5e8 style F fill:#fff3e0 style G fill:#ffebee style H fill:#f1f8e9
  1. Quick Start with Docker Compose:

    # Build and run all services docker-compose up --build # For detached mode (background) docker-compose up --build -d # View logs docker-compose logs -f nexusmind
  2. Individual Docker Container:

    # Build the image docker build -t nexusmind:latest . # Run the container docker run -p 8000:8000 -v $(pwd)/config:/app/config nexusmind:latest
  3. Production Deployment:

    # Use production compose file docker-compose -f docker-compose.prod.yml up --build -d
  4. Access the Services:

    • API Documentation: http://localhost:8000/docs
    • Health Check: http://localhost:8000/health
    • MCP Endpoint: http://localhost:8000/mcp

πŸ”Œ API Endpoints

Core Endpoints

  • MCP Protocol: POST /mcp

    { "method": "process_query", "params": { "query": "Analyze the relationship between microbiome diversity and cancer progression", "confidence_threshold": 0.7, "max_stages": 8 } }
  • Health Check: GET /health

    { "status": "healthy", "version": "0.1.0", "timestamp": "2024-05-23T10:30:00Z" }

Advanced Endpoints

  • Graph Query: POST /api/v1/graph/query

    { "query": "Research question or hypothesis", "parameters": { "disciplines": ["immunology", "oncology"], "confidence_threshold": 0.6, "include_temporal_analysis": true, "enable_bias_detection": true } }
  • Graph State: GET /api/v1/graph/{session_id}

    • Retrieve current state of a reasoning graph
    • Includes confidence scores, node relationships, and metadata
  • Analytics: GET /api/v1/analytics/{session_id}

    • Get comprehensive metrics about the reasoning process
    • Includes performance stats, confidence trends, and quality measures
  • Subgraph Extraction: POST /api/v1/graph/{session_id}/extract

    { "criteria": { "min_confidence": 0.7, "node_types": ["hypothesis", "evidence"], "include_causal_chains": true } }

πŸ§ͺ Testing & Quality Assurance

  πŸ§ͺTesting
  πŸ”Type Checking
  ✨Linting
  πŸ“ŠCoverage

    poetry run pytest
    poetry run pytest -v

    poetry run mypy src/
    pyright src/

    poetry run ruff check .
    poetry run ruff format .

    poetry run pytest --cov=src
    coverage html

Development Commands

# Run full test suite with coverage poetry run pytest --cov=src --cov-report=html --cov-report=term # Run specific test categories poetry run pytest tests/unit/stages/ # Stage-specific tests poetry run pytest tests/integration/ # Integration tests poetry run pytest -k "test_confidence" # Tests matching pattern # Type checking and linting poetry run mypy src/ --strict # Strict type checking poetry run ruff check . --fix # Auto-fix linting issues poetry run ruff format . # Format code # Pre-commit hooks (recommended) poetry run pre-commit install # Install hooks poetry run pre-commit run --all-files # Run all hooks

Quality Metrics

  • Type Safety:

    • Fully typed codebase with strict mypy configuration
    • Configured with mypy.ini and pyrightconfig.json
    • Fix logger type issues: python scripts/add_type_hints.py
  • Code Quality:

    • 95%+ test coverage target
    • Automated formatting with Ruff
    • Pre-commit hooks for consistent code quality
    • Comprehensive integration tests for the 8-stage pipeline

πŸ”§ Configuration

Application Settings (config/settings.yaml)

# Core application settings app: name: "NexusMind" version: "0.1.0" debug: false log_level: "INFO" # API configuration api: host: "0.0.0.0" port: 8000 cors_origins: ["*"] # ASR-GoT Framework settings asr_got: max_stages: 8 default_confidence_threshold: 0.6 enable_bias_detection: true enable_temporal_analysis: true max_hypotheses_per_dimension: 5 # Graph settings graph: max_nodes: 10000 enable_hyperedges: true enable_multi_layer: true temporal_decay_factor: 0.1

MCP Configuration (config/claude_mcp_config.json)

{ "name": "nexusmind", "description": "Advanced Scientific Reasoning with Graph-of-Thoughts", "version": "0.1.0", "endpoints": { "mcp": "http://localhost:8000/mcp" }, "capabilities": [ "scientific_reasoning", "graph_analysis", "confidence_assessment", "bias_detection" ] }

🀝 Contributing

We welcome contributions! Please see our Contributing Guidelines for details.

Development Setup

  1. Fork the repository
  2. Create a feature branch: git checkout -b feature/amazing-feature
  3. Install development dependencies: poetry install --with dev
  4. Make your changes and add tests
  5. Run the test suite: poetry run pytest
  6. Submit a pull request

Code Style

  • Follow PEP 8 style guidelines
  • Use type hints for all functions and methods
  • Write comprehensive docstrings
  • Maintain test coverage above 95%

πŸ“š Documentation

  • API Documentation: Comprehensive API reference
  • Architecture Guide: System design and components
  • Usage Examples: Practical usage scenarios
  • Development Guide: Contributing and development setup

πŸ“„ License

This project is licensed under the Apache License 2.0 - see the LICENSE file for details.

πŸ™ Acknowledgments

  • NetworkX community for graph analysis capabilities
  • FastAPI team for the excellent web framework
  • Pydantic for robust data validation
  • The scientific research community for inspiration and feedback

Built with ❀️ for the scientific research community NexusMind - Advancing scientific reasoning through intelligent graph structures

Publicly Shared Threads0

Discover shared experiences

Shared threads will appear here, showcasing real-world applications and insights from the community. Check back soon for updates!

Share your threads to help others
Related MCPs5
  • sanderkooger-mcp-server-ragdocs
    sanderkooger-mcp-server-ragdocs

    An MCP server implementation that provides tools for retrieving and processing documentation through...

    Added May 30, 2025
  • Azure Cosmos DB MCP Server
    Azure Cosmos DB MCP Server

    A server that enables LLMs like Claude to interact with Azure Cosmos DB databases through natural la...

    Added May 30, 2025
  • TripAdvisor Vacation Planner MCP Server
    TripAdvisor Vacation Planner MCP Server

    This MCP server provides access to TripAdvisor data for planning vacations, enabling users to search...

    Added May 30, 2025
  • MCP Pokemon Server
    MCP Pokemon Server

    An MCP server implementation that enables users to interact with the PokeAPI to fetch Pokemon inform...

    Added May 30, 2025
  • IR Toolshed MCP Server
    IR Toolshed MCP Server

    A Model Context Protocol server that provides network analysis tools for security professionals, ena...

    Added May 30, 2025