Brainstorm MCP Server

Brainstorm MCP Server

An MCP server that launches a lightweight localhost UI for interactive AI-assisted brainstorming and planning. It enables collaborative ideation workflows with visual diagrams, interactive elements, and image support for seamless human-AI collaboration.

Category
访问服务器

README

MCP Brainstorm Server

An MCP (Model Context Protocol) server that spawns a lightweight, resource-efficient localhost UI for interactive AI-assisted brainstorming, planning, and visualization. Designed to work seamlessly with Claude and other AI agents for collaborative ideation workflows.

What It Does

Core Workflow

  1. Detection: When you mention brainstorming keywords (brainstorm, plan, think, how do...), the AI agent asks if you want to use the interactive UI
  2. Launch: Server starts on localhost with a session-specific URL
  3. Interaction: Render brainstorming materials using mermaid diagrams or Tailwind-styled HTML UI
  4. Submission: Users interact with clickable buttons, input comments, and optionally upload/paste images
  5. Retrieval: AI agent reads submitted responses to continue work
  6. Documentation: Optional saving to plans/*.md for future reference

Features

  • Multi-Session Support: Each AI agent session gets its own URL (localhost:{port}/{sessionid}) with tab names reflecting working directory for easy distinction

  • Shared Single Install Across Agents: One local clone and one Python environment can be reused by Claude, Codex, and other MCP-compatible agents at the same time, so you install once per machine instead of once per agent

  • Rich Content Rendering:

    • Mermaid diagrams for graphs, flowcharts, and visualizations
    • Tailwind CSS-styled UI for brainstorming options and interfaces
    • Markdown-compatible format renderer with embedded diagrams and tables
  • Interactive Elements:

    • Auto-generated IDs for sections and options (for easy reference)
    • Clickable buttons for user choices
    • Inline comment input fields
    • Submit/Done workflow
  • Image Support:

    • Local file upload via file picker
    • Internet-accessible URLs
    • Clipboard paste-in capability
  • Resource Efficient: Lightweight Python server designed for single-user operation

  • Loopback Only: The HTTP UI is hard-limited to loopback addresses and rejects non-local clients

Architecture

Components

├── mcp_server.py          # MCP server implementation (Python)
├── server/                # localhost UI server
│   ├── app.py            # Flask/FastAPI server
│   ├── templates/        # HTML templates
│   └── static/           # CSS, JS, assets
└── requirements.txt      # Dependencies

Runtime data is stored outside the repository by default under ~/.mcp/brainstorm-mcp/:

~/.mcp/brainstorm-mcp/
├── sessions/             # Session state storage
│   └── assets/           # Uploaded or pasted image data
└── plans/                # User-saved markdown plans

Session Management

  • Each session gets a unique sessionid (UUID or similar)
  • Session state stored in lightweight persistent storage under the user's ~/.mcp/brainstorm-mcp/ directory by default
  • URLs: localhost:PORT/{sessionid}
  • Tab titles reflect the working directory (pwd) of the AI agent terminal

Tech Stack

  • MCP Framework: Python MCP SDK
  • Backend: Python (Flask/FastAPI for lightweight HTTP server)
  • Frontend Rendering:
    • Diagrams: Mermaid.js
    • UI/Styling: Tailwind CSS
    • Markdown: Compatible format with embedded Mermaid support
  • Storage: JSON/SQLite (minimal, for session state)

Installation & Usage

Prerequisites

  • Python 3.9+
  • MCP client (Claude or compatible AI agent)

Full Installation Guide

For complete installation instructions, including:

  • using an existing local clone
  • cloning into the recommended shared MCP server location
  • connecting the server to Codex
  • connecting the server to Claude Code
  • reusing one install across multiple agents

See INSTALL.md.

Setup

git clone <repo-url>
cd mcp-brainstorm-server
pip install -r requirements.txt

Running the Server

The server is started on-demand by the MCP tool when the AI agent detects brainstorming keywords. Users can also manually start it:

python mcp_server.py

Expected Dependencies

anthropic-mcp
flask  # or fastapi
pydantic
python-dotenv

Protocol Flow

Example: Planning a Feature

  1. User: "Let me brainstorm the architecture for this feature"
  2. AI Agent: Detects keyword → Asks "Should I open the interactive brainstorming UI?"
  3. User: "Yes"
  4. Server: Launches at localhost:8080/abc-def-123-ghi (sessionid based on pwd)
  5. UI: Renders mermaid diagram of possible architectures with clickable options, comment fields, and image upload area
  6. User: Clicks preferred architecture option, adds comments, optionally uploads a reference diagram
  7. User: Clicks "Submit"
  8. Server: Stores submission under sessionid
  9. User: Returns to AI agent and says "response submitted"
  10. AI Agent: Retrieves submission via MCP → Continues planning with the user's input
  11. AI Agent (optional): "Should I save this plan? Suggested location: plans/feature-architecture.md" Default saved location on disk: ~/.mcp/brainstorm-mcp/plans/feature-architecture.md

MCP Tool Specification

Available Tools

start_brainstorm_session

Starts an interactive brainstorming UI session.

Input:

  • prompt (str): Initial brainstorming prompt/context
  • content_type (str): "mermaid", "html", or "markdown"
  • working_dir (str, optional): Current working directory (used for tab title)

Output:

  • session_id (str): Unique session identifier
  • url (str): Full localhost URL to access the UI
  • port (int): Port number used

get_session_response

Retrieves user submission from a completed session.

Input:

  • session_id (str): Session identifier

Output:

  • response (dict): User's submitted choices, comments, and images
  • timestamp (str): When submission occurred
  • status (str): "pending", "submitted", "expired"

list_sessions

Lists all active sessions.

Output:

  • sessions (list): Array of active session objects with IDs, URLs, and creation times

close_session

Terminates and cleans up a session.

Input:

  • session_id (str): Session to close

Design Principles

  • Minimal Resource Usage: Single-user operation, no heavy dependencies
  • Stateless Where Possible: Sessions are ephemeral unless saved to disk
  • Ease of Reference: Auto-generated IDs on all interactive elements
  • AI-Agent Friendly: Structured response format for easy parsing and continuation
  • Visual Clarity: Clear separation of UI sections with markdown/mermaid rendering

Future Enhancements

  • Persistent session history
  • Real-time collaboration (future multi-user support)
  • Custom Tailwind component library for brainstorming templates
  • Built-in export to various formats (PDF, PNG, etc.)
  • Integration with git for automatic plan versioning

License

MIT

Contributing

Contributions welcome. Please follow PEP 8 for Python code and ensure the server remains lightweight.

推荐服务器

Baidu Map

Baidu Map

百度地图核心API现已全面兼容MCP协议,是国内首家兼容MCP协议的地图服务商。

官方
精选
JavaScript
Playwright MCP Server

Playwright MCP Server

一个模型上下文协议服务器,它使大型语言模型能够通过结构化的可访问性快照与网页进行交互,而无需视觉模型或屏幕截图。

官方
精选
TypeScript
Magic Component Platform (MCP)

Magic Component Platform (MCP)

一个由人工智能驱动的工具,可以从自然语言描述生成现代化的用户界面组件,并与流行的集成开发环境(IDE)集成,从而简化用户界面开发流程。

官方
精选
本地
TypeScript
Audiense Insights MCP Server

Audiense Insights MCP Server

通过模型上下文协议启用与 Audiense Insights 账户的交互,从而促进营销洞察和受众数据的提取和分析,包括人口统计信息、行为和影响者互动。

官方
精选
本地
TypeScript
VeyraX

VeyraX

一个单一的 MCP 工具,连接你所有喜爱的工具:Gmail、日历以及其他 40 多个工具。

官方
精选
本地
graphlit-mcp-server

graphlit-mcp-server

模型上下文协议 (MCP) 服务器实现了 MCP 客户端与 Graphlit 服务之间的集成。 除了网络爬取之外,还可以将任何内容(从 Slack 到 Gmail 再到播客订阅源)导入到 Graphlit 项目中,然后从 MCP 客户端检索相关内容。

官方
精选
TypeScript
Kagi MCP Server

Kagi MCP Server

一个 MCP 服务器,集成了 Kagi 搜索功能和 Claude AI,使 Claude 能够在回答需要最新信息的问题时执行实时网络搜索。

官方
精选
Python
e2b-mcp-server

e2b-mcp-server

使用 MCP 通过 e2b 运行代码。

官方
精选
Neon MCP Server

Neon MCP Server

用于与 Neon 管理 API 和数据库交互的 MCP 服务器

官方
精选
Exa MCP Server

Exa MCP Server

模型上下文协议(MCP)服务器允许像 Claude 这样的 AI 助手使用 Exa AI 搜索 API 进行网络搜索。这种设置允许 AI 模型以安全和受控的方式获取实时的网络信息。

官方
精选