futurmindt
MCP 服务配置
复制以下 JSON 到 OPClaw 或其他 MCP 客户端的配置文件中即可使用
{
"mcpServers": {
"futurmind": {
"headers": {
"X-Api-Key": "30f66673-88f5-4860-9e4b-d213a5ea4d97"
},
"url": "https://mindmcp.futurx.cn/sse"
}
}
}
服务介绍
Futurmind MCP Server
A Model Context Protocol (MCP) server that provides a bridge to the Futurmind Chat Stream API.
Features
- Simple Chat: Single message chat interface
- Contextual Chat: Multi-turn conversation with full message history
- Streaming Support: Handles SSE streaming responses
- Conversation Management: Track conversations with IDs
- API Key Authentication: Secure API access
Installation
# Install dependencies
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 (stdioorhttp, 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)
{
"mcpServers": {
"futurmind": {
"command": "uv",
"args": [
"--directory",
"/path/to/futurmind-mcp",
"run",
"futurmind-mcp"
],
"env": {
"FUTURMIND_API_KEY": "your-api-key-here",
"FUTURMIND_API_URL": "https://projectflow-api.futurstaff.com"
}
}
}
}
Option 2: HTTP transport
{
"mcpServers": {
"futurmind": {
"url": "http://localhost:8000/mcp"
}
}
}
Available Tools
1. chat
Simple single-message chat interface.
Parameters:
message(string, required): Your messageconversation_id(string, optional): Conversation UUID for contextdify_conversation_id(string, optional): Dify conversation IDuser_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