MindMesh MCP Server

MindMesh MCP Server

By wheattoast11 GitHub

Claude 3.7 Swarm with Field Coherence: A Model Context Protocol (MCP) server that orchestrates multiple specialized Claude 3.7 Sonnet instances in a quantum-inspired swarm. It creates a field coherence effect across pattern recognition, information theory, and reasoning specialists to produce optimally coherent responses from ensemble intelligence.

mcp quantum
Overview

What is MindMesh MCP Server?

MindMesh MCP Server is a Model Context Protocol (MCP) server that orchestrates multiple specialized Claude 3.7 Sonnet instances in a quantum-inspired swarm, enhancing reasoning through field coherence across various AI specialties.

How to use MindMesh MCP Server?

To use the MindMesh MCP Server, clone the repository, install dependencies, configure your API keys in the .env file, and start the server. You can connect using any MCP-compatible client.

Key features of MindMesh MCP Server?

  • Quantum-Inspired Field Computing for coherence among Claude instances
  • WebContainer Integration for a sandboxed execution environment
  • PGLite with Vector Storage for efficient vector database management
  • Multiple Claude Specializations for diverse reasoning tasks
  • Coherence Optimization for selecting the most coherent outputs
  • Extended Thinking Support with optional 128k token capability
  • Live Query Updates for real-time coherence notifications
  • VoyageAI Embeddings for high-quality state vector generation

Use cases of MindMesh MCP Server?

  1. Analyzing complex relationships in quantum theories.
  2. Enhancing AI reasoning capabilities through specialized instances.
  3. Real-time data processing and coherence optimization in multi-agent systems.

FAQ from MindMesh MCP Server?

  • What are the prerequisites for using MindMesh?
    You need Node.js 18.x or higher and an Anthropic API key for Claude 3.7 Sonnet.

  • Can I use it without VoyageAI API key?
    Yes, but using it is recommended for better embeddings.

  • How do I connect to the server?
    You can connect using any MCP client like the Claude Desktop Application or Cursor IDE.

Content

MindMesh MCP Server

A Model Context Protocol (MCP) server implementation that creates a quantum-inspired swarm of Claude 3.7 Sonnet instances with field coherence optimization. This server enables enriched reasoning through multiple specialized LLM instances that work together with emergent properties.

Features

  • Quantum-Inspired Field Computing: Uses a field-based model to maintain coherence between Claude instances
  • WebContainer Integration: Full stack sandboxed environment for execution
  • PGLite with Vector Storage: Efficient vector database with pgvector extension
  • Multiple Claude Specializations: Instances focus on pattern recognition, information synthesis, and reasoning
  • Coherence Optimization: Selects the most coherent outputs across instances
  • Extended Thinking Support: Optional 128k token thinking capability
  • Live Query Updates: Real-time coherence notifications through PGLite live extension
  • VoyageAI Embeddings: High-quality embeddings using VoyageAI's state-of-the-art models (voyage-3-large)

Prerequisites

  • Node.js 18.x or higher
  • Anthropic API key with access to Claude 3.7 Sonnet
  • VoyageAI API key (optional but recommended for better embeddings)

Installation

  1. Clone this repository:

    git clone https://github.com/wheattoast11/mcp-mindmesh.git
    cd mcp-mindmesh
    
  2. Install dependencies:

    npm install
    
  3. Create a .env file by copying the template:

    cp .env.template .env
    
  4. Edit .env and add your Anthropic API key, VoyageAI API key (optional), and adjust other settings as needed.

Usage

Starting the Server

Build and start the server:

npm run build
npm start

For development with auto-reload:

npm run dev

Connecting to the Server

You can connect to this MCP server using any MCP client, such as:

  1. Claude Desktop Application for Windows (official Anthropic client)
  2. Cursor IDE's agent capabilities
  3. Cline VSCode extension
  4. Any other MCP-compatible client

The server will be available at http://localhost:3000 by default (or whichever port you specified in the .env file).

Using the Reasoning Tool

The main tool provided by this server is reason_with_swarm. This tool takes a prompt and processes it through multiple specialized Claude instances, returning the most coherent result.

Example usage in Claude Desktop:

Please use the swarm to analyze the relationship between quantum field theory and consciousness.

Configuration Options

All configuration options can be set in the .env file:

Environment VariableDescriptionDefault
ANTHROPIC_API_KEYYour Anthropic API key(required)
VOYAGE_API_KEYYour VoyageAI API key(optional)
PORTHTTP server port3000
STDIO_TRANSPORTUse stdio transport instead of HTTPfalse
CLAUDE_INSTANCESNumber of Claude instances in the swarm8
USE_EXTENDED_THINKINGEnable 128k extended thinkingtrue
COHERENCE_THRESHOLDMinimum coherence threshold0.7
EMBEDDING_MODELVoyageAI embedding model to usevoyage-3-large
DB_PATHPath for the PGLite database"idb://mindmesh.db"
DEBUGEnable debug loggingfalse

Architecture

The server architecture consists of:

  1. MCP Server Layer: Implements the Model Context Protocol (2025-03-26 specification)
  2. WebContainer Layer: Provides sandboxed environment for execution
  3. PGLite Vector Database: Stores state vectors with pgvector extension
  4. Claude Swarm Layer: Manages multiple specialized Claude instances
  5. Quantum Field Layer: Handles field coherence and optimization
  6. Embedding Layer: Generates high-quality embeddings using VoyageAI models

Requests flow through these layers as follows:

Client Request → MCP Server → Swarm Processing → Claude API → Coherence Optimization → Response

Advanced Features

Web Container Integration

The server uses WebContainer technology for a fully sandboxed environment, providing:

  • Isolated execution environment
  • Full stack capabilities
  • File system access
  • Network communication

PGLite with Vector Extension

PGLite provides:

  • Client-side PostgreSQL database compiled to WebAssembly
  • Vector operations through pgvector extension
  • Live query notifications for real-time updates
  • Persistent storage across sessions

Field Coherence Optimization

The coherence optimization system:

  1. Processes a query through multiple specialized Claude instances
  2. Generates state vectors for each response
  3. Calculates coherence metrics between instances
  4. Selects the most coherent output
  5. Maintains a dynamic field state in the vector database

VoyageAI Embeddings

The server uses VoyageAI's state-of-the-art embedding models for:

  • High-quality state vector generation
  • More accurate coherence calculations
  • Better field modeling and optimization

When VoyageAI API key is not available, the server falls back to a simpler, deterministic embedding method.

Development

Project Structure

  • src/index.ts: Main entry point
  • src/server.ts: Core server implementation
  • .env: Configuration file
  • package.json: Dependencies and scripts

Building

npm run build

This will compile TypeScript to JavaScript in the dist directory.

Testing

npm test

License

MIT

Acknowledgements

This project uses the following technologies:

No tools information available.

This is a basic MCP Server-Client Impl using SSE

mcp server-client
View Details

-

mcp model-context-protocol
View Details

Buttplug.io Model Context Protocol (MCP) Server

mcp buttplug
View Details

MCP web search using perplexity without any API KEYS

mcp puppeteer
View Details

free MCP server hosting using vercel

mcp mantle-network
View Details

MCPHubs is a website that showcases projects related to Anthropic's Model Context Protocol (MCP)

mcp mcp-server
View Details