Skip to main content

Futurmind Expert Digital Twin MCP Server - A bridge to access expert digital twins

Project description

Futurmind Expert Digital Twin MCP Server

A Model Context Protocol (MCP) server that provides access to expert digital twins through standardized interface.

Features

  • Expert Access: Connect to expert digital twins via API Key
  • Simple Chat: Single message chat interface
  • Contextual Chat: Multi-turn conversation with full message history
  • Streaming Support: Real-time SSE streaming responses
  • Conversation Management: Track conversations with IDs
  • Header-based Authentication: Secure API access via X-Api-Key header

Installation

Install from PyPI (Recommended)

pip install futurmind-mcp

Install from Source

# Clone the repository
git clone <repo-url>
cd futur-mind-mcp

# Install with uv
uv sync

# Or with pip
pip install -e .

Configuration

Environment Variables

  • FUTURMIND_API_KEY: Your Futurmind API key (required)
  • FUTURMIND_API_URL: API base URL (default: https://projectflow-api.futurstaff.com)
  • MCP_TRANSPORT: Transport type (stdio or http, default: stdio)
  • MCP_PORT: HTTP port (default: 8000)
  • MCP_HOST: HTTP host (default: localhost)

Usage

Running with stdio transport (for Cursor)

# Set your API key
export FUTURMIND_API_KEY="your-api-key-here"

# Run the server
python -m futurmind_mcp

Running with HTTP transport

export FUTURMIND_API_KEY="your-api-key-here"
export MCP_TRANSPORT=http
export MCP_PORT=8000

python -m futurmind_mcp

Docker Deployment (Recommended for Remote Access)

For remote HTTP SSE mode, use Docker:

# Quick start
./start.sh

# Or manually
cp env.example .env
# Edit .env and set your FUTURMIND_API_KEY
docker-compose up -d

See DEPLOYMENT.md for detailed Docker deployment guide.

Cursor Configuration

Add this to your Cursor MCP settings:

Option 1: stdio transport (recommended for local use)

After installing the package, add this to your Cursor MCP settings:

{
  "mcpServers": {
    "futurmind": {
      "command": "python",
      "args": ["-m", "futurmind_mcp"]
    }
  }
}

Note: For stdio mode, the API key must be provided via HTTP headers in the client configuration, or you can set FUTURMIND_API_KEY environment variable as fallback.

Option 2: HTTP transport (for remote access)

For HTTP SSE mode, configure the server URL and provide the API key via headers:

{
  "mcpServers": {
    "futurmind": {
      "url": "http://localhost:8000/sse",
      "headers": {
        "X-Api-Key": "your-api-key-here"
      }
    }
  }
}

Note: The API key is passed via the X-Api-Key header for security.

Available Tools

1. chat

Simple single-message chat interface.

Parameters:

  • message (string, required): Your message
  • conversation_id (string, optional): Conversation UUID for context
  • dify_conversation_id (string, optional): Dify conversation ID
  • user_id (string, optional): User ID

Example: chat_with_context( messages_json='[{"role":"user","content":"Hello"},{"role":"assistant","content":"Hi!"},{"role":"user","content":"How are you?"}]', conversation_id="uuid-here" )

API Reference

The server forwards requests to:

  • Endpoint: POST /v1/zhiyin/chat/stream
  • Headers: X-Api-Key: your-api-key
  • Request Body: CompletionRequestZhiyin
  • Response: SSE stream of CompletionEvent

License

MIT

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

futurmind_mcp-0.1.1.tar.gz (18.2 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

futurmind_mcp-0.1.1-py3-none-any.whl (7.7 kB view details)

Uploaded Python 3

File details

Details for the file futurmind_mcp-0.1.1.tar.gz.

File metadata

  • Download URL: futurmind_mcp-0.1.1.tar.gz
  • Upload date:
  • Size: 18.2 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.2.0 CPython/3.13.5

File hashes

Hashes for futurmind_mcp-0.1.1.tar.gz
Algorithm Hash digest
SHA256 02cc21df473875e6b3f69e4f987f34e368b9f3e6de1289aae2e1e6127a5d8d67
MD5 c1facdbc70665f2a0ed6edec523b01eb
BLAKE2b-256 9a5369c8522df8c8077866617a9e4a59ed1a3361ec8079abc7515a60eb3defea

See more details on using hashes here.

File details

Details for the file futurmind_mcp-0.1.1-py3-none-any.whl.

File metadata

  • Download URL: futurmind_mcp-0.1.1-py3-none-any.whl
  • Upload date:
  • Size: 7.7 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.2.0 CPython/3.13.5

File hashes

Hashes for futurmind_mcp-0.1.1-py3-none-any.whl
Algorithm Hash digest
SHA256 3afe3cc52441faa98aa4239a6880c9c5f764f6a9aa57614ccc0b81f84b532acf
MD5 18fb9ada329d97593b140b5e2a0a6f71
BLAKE2b-256 1bca0b1e0227fa89ddbf61ebef13b435e8a6b09e9998164f3ca90efe81bc18b2

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page