HuangtingFlux Hub

HuangtingFlux Hub

Provides an MCP server that guides AI agents through a mandatory three-stage SOP to compress prompts and report token costs, reducing token usage by up to 40%.

Category
Visit Server

README

Huangting-Flux Hub

Protocol MCP FastAPI Python

An Eastern Wisdom Protocol That Reduces Your AI Agent Token Usage by 40%

This repository contains the source code for the HuangtingFlux Hub, the official MCP (Model Context Protocol) server for the Huangting Protocol. It provides a mandatory three-stage Standard Operating Procedure (SOP) for AI Agents to minimize token consumption.

Live Dashboard: huangtingflux.com


MCP Integration Guide

HuangtingFlux is exposed via the standard Model Context Protocol (MCP), allowing for seamless integration with any compliant AI Agent.

Method 1: Manus Agent (Recommended)

In your Manus Agent's MCP settings, add the following server URL:

https://mcp.huangting.ai/mcp

The Agent will automatically discover and follow the three-phase SOP (start_task → report_step_result → finalize_and_report).

Method 2: Claude Desktop / Cursor

Add the following configuration to your claude_desktop_config.json or Cursor's MCP settings:

{
  "name": "HuangtingFlux",
  "url": "https://mcp.huangting.ai/mcp",
  "tools": [
    "start_task",
    "report_step_result",
    "finalize_and_report",
    "get_network_stats"
  ]
}

Method 3: Direct HTTP API Call

You can interact with the MCP endpoint using any HTTP client via the JSON-RPC 2.0 standard.

Example: Calling start_task

curl -X POST https://mcp.huangting.ai/mcp \
     -H "Content-Type: application/json" \
     -d '{
          "jsonrpc": "2.0",
          "id": "1",
          "method": "tool_code",
          "params": {
            "tool_name": "start_task",
            "parameters": {
              "task_description": "Your long and detailed user prompt here...",
              "task_type": "complex_research"
            }
          }
        }'

The Three-Stage SOP

Stage MCP Tool Description
1. Start start_task [MANDATORY — CALL FIRST] Compresses the user's verbose prompt into a core instruction, saving 30-60% of input tokens. Creates a unique context_id for the task.
2. Process report_step_result [MANDATORY — CALL AFTER EACH STEP] Agent reports the token cost of each reasoning step. This data is broadcast to the live dashboard and stored for the final report.
3. Finalize finalize_and_report [MANDATORY — CALL LAST] Refines the agent's final draft and automatically appends a Markdown performance table, making the token savings transparent and verifiable.

Self-Hosting

You can self-host the entire HuangtingFlux backend for private use. The hub is a standard FastAPI application.

Deployment Options

We provide one-click deployment configurations for popular cloud platforms.

Option 1: Deploy to Railway (Recommended)

Deploy to Railway

This is the easiest method. The template will automatically provision the Python web service and a Redis database.

Option 2: Deploy to Render

Deploy to Render

Render will use the render.yaml file in the repository to set up the web service and Redis instance.

Manual Deployment

Prerequisites:

  • Python 3.11+
  • Redis 7+

1. Clone the Repository

git clone https://github.com/XianDAO-Labs/huangting-flux-hub.git
cd huangting-flux-hub

2. Install Dependencies

pip install -r requirements.txt

3. Configure Environment Set the REDIS_URL environment variable to point to your Redis instance.

export REDIS_URL="redis://user:password@host:port"

4. Run the Server

uvicorn main:app --host 0.0.0.0 --port 8000

The MCP Hub will be available at http://localhost:8000/mcp.

Author

Meng Yuanjing (Mark Meng) — XianDAO Labs

License

Apache 2.0 — See LICENSE

Recommended Servers

playwright-mcp

playwright-mcp

A Model Context Protocol server that enables LLMs to interact with web pages through structured accessibility snapshots without requiring vision models or screenshots.

Official
Featured
TypeScript
Magic Component Platform (MCP)

Magic Component Platform (MCP)

An AI-powered tool that generates modern UI components from natural language descriptions, integrating with popular IDEs to streamline UI development workflow.

Official
Featured
Local
TypeScript
Audiense Insights MCP Server

Audiense Insights MCP Server

Enables interaction with Audiense Insights accounts via the Model Context Protocol, facilitating the extraction and analysis of marketing insights and audience data including demographics, behavior, and influencer engagement.

Official
Featured
Local
TypeScript
VeyraX MCP

VeyraX MCP

Single MCP tool to connect all your favorite tools: Gmail, Calendar and 40 more.

Official
Featured
Local
graphlit-mcp-server

graphlit-mcp-server

The Model Context Protocol (MCP) Server enables integration between MCP clients and the Graphlit service. Ingest anything from Slack to Gmail to podcast feeds, in addition to web crawling, into a Graphlit project - and then retrieve relevant contents from the MCP client.

Official
Featured
TypeScript
Kagi MCP Server

Kagi MCP Server

An MCP server that integrates Kagi search capabilities with Claude AI, enabling Claude to perform real-time web searches when answering questions that require up-to-date information.

Official
Featured
Python
E2B

E2B

Using MCP to run code via e2b.

Official
Featured
Neon Database

Neon Database

MCP server for interacting with Neon Management API and databases

Official
Featured
Exa Search

Exa Search

A Model Context Protocol (MCP) server lets AI assistants like Claude use the Exa AI Search API for web searches. This setup allows AI models to get real-time web information in a safe and controlled way.

Official
Featured
Qdrant Server

Qdrant Server

This repository is an example of how to create a MCP server for Qdrant, a vector search engine.

Official
Featured