Logo vun TheBrain MCP Server

TheBrain MCP Server

Communautéit
redmorestudio

MCP server for TheBrain API - enables AI assistants to interact with TheBrain knowledge management system with rich visual properties, attachments, and notes support

Editeurredmorestudio
Repositorythebrain-mcp
SproochJavaScript
Forks
6
Stären
16
Disponibel Tools
0
Transporttypstdio
Kategorien
LizenzMIT
Linken
  • Tools mat KI-Workflows verbannen

    TheBrain MCP Server stellt MCP-Funktioune bereit, déi vu kompatibele KI-Clienten a KI-Agente kënne benotzt ginn.

  • 0 disponibel Tools

    Kuckt Iech déi opruffbar Aktiounen hei drënner un, mat Nimm a Beschreiwungen, wa se vum Server geliwwert ginn.

  • Konfiguratioun fir ze kopéieren

    Benotzt d'Installatiounsbeispiller, fir dëse Server an Ärem bevorzugte MCP-Client ze konfiguréieren.

  • Indicateure fir Open Source

    16 Stären an 6 Forks aus dem verlinkte Repository.

TheBrain MCP Server

An MCP (Model Context Protocol) server that enables AI assistants to interact with TheBrain's knowledge management system. This server provides comprehensive access to TheBrain's API, focusing on natural language interaction with TheBrain's powerful knowledge management capabilities.

🔧 What's an MCP Server?

MCP (Model Context Protocol) is a standard that lets AI assistants like Claude connect to external tools and services. Think of it as a translator between natural language and software APIs.

How It Works:

You → Claude → MCP Server → TheBrain API → Your Brain
  1. You say: "Create a project with three phases"
  2. Claude understands what you want to accomplish
  3. MCP Server translates this into specific TheBrain API calls
  4. TheBrain API creates the thoughts and connections
  5. Your Brain updates with the new structure

The magic is that you don't need to know any technical details - just describe what you want in plain English!

🚀 What Actually Works

✅ Core Functionality (Working)

  • Content Management: Create, update, delete thoughts and notes
  • File Attachments: Upload images, PDFs, documents to thoughts
  • Web References: URL attachments with auto-title extraction
  • Rich Notes: Full Markdown support with embedded content
  • Relationship Mapping: Connect thoughts with meaningful relationships
  • Search: Full-text search across thoughts, notes, and attachments
  • Brain Management: Switch between multiple brains seamlessly
  • Natural Language Interface: Describe what you want, Claude handles the details

❌ Current Issues & Limitations

🚨 Major Visual Styling Problems

The biggest limitation: Visual properties don't actually apply despite API success responses.

  • ❌ Thought colors: API accepts colors but they don't appear in TheBrain
  • ❌ Link colors: Similar issue - accepted but not applied
  • ❌ Link thickness: API reports success but thickness doesn't change
  • ❌ Visual formatting: All visual styling features are currently non-functional

🐛 Other Known Issues

  • Intermittent connection problems: "Field required" errors after successful operations
  • Long notes limitations: Issues with very long markdown content (keep under 10k characters)
  • File path sensitivity: Requires absolute file paths; relative paths can fail
  • Connection timing: MCP initialization race condition causing sporadic failures
  • Memory constraints: Large file attachments can cause timeouts
  • Search limitations: Complex queries sometimes return incomplete results

📋 API Dependencies & Constraints

  • Single-user operations: No real-time collaboration features
  • No bulk operations: Can't import/export large datasets efficiently
  • API connectivity required: No offline mode available
  • TheBrain API limitations: Bound by existing API capabilities
  • Authentication required: Must have valid TheBrain API key

🛠 Current Workarounds

Until visual styling is fixed, use these alternatives:

  • Emojis for distinction: 🟢🟡🔴⚪🔵 instead of colors
  • Descriptive names: "🔴 Urgent Task" instead of colored thoughts
  • Rich markdown notes: Use formatting within notes for visual organization
  • Hierarchical structure: Rely on parent/child relationships for organization

Installation

  1. Clone this repository:
bash
git clone https://github.com/redmorestudio/thebrain-mcp.git
cd thebrain-mcp
  1. Install dependencies:
bash
npm install
  1. Create a .env file with your API key:
bash
THEBRAIN_API_KEY=your_api_key_here
THEBRAIN_DEFAULT_BRAIN_ID=optional_default_brain_id

Configuration

For Claude Desktop

Add to your Claude Desktop configuration:

json
{
  "mcpServers": {
    "thebrain": {
      "command": "node",
      "args": ["/absolute/path/to/thebrain-mcp/index.js"],
      "env": {
        "THEBRAIN_API_KEY": "your_api_key_here"
      }
    }
  }
}

⚠️ Important: Use absolute file paths in the configuration and for file attachments.

Debugging & Troubleshooting

Common Issues & Solutions

"Field required" errors:

  • Restart Claude Desktop
  • Verify .env file has correct API key
  • Always set active brain first: "Set my active brain to [name]"

File upload failures:

  • Use absolute file paths: /Users/username/Documents/file.pdf
  • Check file permissions and existence
  • Keep file sizes reasonable (< 50MB)

Long note problems:

  • Keep notes under 10,000 characters
  • Break large content into multiple thoughts
  • Use attachments for lengthy documents

Debug mode:

bash
VERBOSE=true node index.js

Available Tools (25+ Functions)

Brain Management

  • list_brains - List all available brains
  • get_brain - Get brain details
  • set_active_brain - Set the active brain for operations
  • get_brain_stats - Get comprehensive brain statistics

Thought Operations

  • create_thought - Create thoughts (visual properties don't work)
  • get_thought - Retrieve thought details
  • update_thought - Update thought properties
  • delete_thought - Delete a thought
  • search_thoughts - Search across the brain
  • get_thought_graph - Get thought with all connections
  • get_types - List all thought types
  • get_tags - List all tags

Link Operations

  • create_link - Create links between thoughts (styling doesn't work)
  • update_link - Modify link properties
  • get_link - Get link details
  • delete_link - Remove a link

Attachment Operations

  • add_file_attachment - Attach files/images to thoughts ✅
  • add_url_attachment - Attach web URLs ✅
  • get_attachment - Get attachment metadata
  • get_attachment_content - Download attachment content
  • delete_attachment - Remove attachments
  • list_attachments - List thought attachments

Note Operations

  • get_note - Retrieve notes in markdown/html/text ✅
  • create_or_update_note - Create or update notes ✅
  • append_to_note - Append content to existing notes ✅

Advanced Features

  • get_modifications - View brain modification history

Usage Examples (What Actually Works)

Project Organization

You: "Create a project called 'Kitchen Renovation'"
Claude: Creates central project thought

You: "Add phases for planning, demolition, and installation"  
Claude: Creates connected sub-thoughts for each phase

You: "Attach my contractor quotes to the planning phase"
Claude: Uploads files to the planning thought

You: "Add a detailed note about the timeline to the project"
Claude: Creates rich markdown note with your timeline

Research & Knowledge Management

You: "Create a research topic about sustainable energy"
Claude: Sets up main research thought

You: "Add sub-topics for solar, wind, and hydro power"
Claude: Creates organized thought hierarchy

You: "Attach relevant papers and web articles"
Claude: Adds file and URL attachments

You: "Search for everything related to efficiency"
Claude: Finds all relevant thoughts and content

🔮 Roadmap & Future Development

Immediate Priorities (v1.2.0)

  • 🚨 Fix visual styling: Investigate why colors/thickness don't apply
  • 🔧 Connection stability: Resolve MCP timing/race condition issues
  • 📝 Long notes support: Better handling of extensive markdown content
  • 🛡️ Error handling: More graceful failures and recovery

Future Enhancements

  • Bulk operations for large-scale organization
  • Enhanced templates for common workflows
  • Performance optimizations for complex brains
  • Offline capabilities and caching

Technical Architecture

What Makes This Server Special

  • Natural language interface: No technical knowledge required
  • Complete API coverage: 25+ tools spanning all TheBrain operations
  • Robust error handling: Graceful failures and clear error messages
  • Modular design: Clean, maintainable code architecture
  • Production ready: Proper logging, testing, and documentation

Current Status

  • Version: 1.1.0 (June 2025)
  • Core functionality: ✅ Complete and working
  • Visual properties: ❌ Major issues need investigation
  • Stability: 🟡 Generally stable with intermittent connection issues

Contributing

Contributions are welcome! Areas where help is especially needed:

  • Visual styling investigation: Why don't colors/thickness apply?
  • Connection stability: Debugging MCP race conditions
  • Performance optimization: Large brain handling
  • Documentation: More usage examples and tutorials

Please feel free to submit issues or pull requests.

License

MIT License - see LICENSE file for details.

Support


⚠️ Current Recommendation: Use this server for content management and organization with natural language interaction. Don't rely on visual styling features until they're fixed. The core functionality is solid and very useful for managing TheBrain content through conversation!

TheBrain MCP Server MCP mat verschiddene KI-Modeller benotzen

TypingMind verbënnt MCP-Tools um Niveau vum Aarbechtsberäich. Soubal TheBrain MCP Server verbonnen ass, kënnt Dir et mat verschiddene KI-Modeller an TypingMind benotzen, amplaz et fir all Modell separat anzeriichten. Dës MCP-Integratioun leeft lokal iwwer den TypingMind-MCP-Connector op Ärem Apparat.

Ariichtungsuleedung fir de lokale Connector ze benotzen

Benotzt dës Optioun, wann den MCP-Server Zougrëff op lokal Fichieren, Appen oder privat Ressourcen op Ärem Computer brauch.

1

D'MCP-Astellungen opmaachen

Gitt an TypingMind op „Astellungen“, „Erweidert Astellungen“, dann op „Model Context Protocol“ a wielt „Connector ariichten“.

  1. Maacht TypingMind an Ärem Browser op.
  2. Klickt op d'Astellungssymbol.
  3. Gitt op „Erweidert Astellungen“.
  4. Maacht d'Sektioun „Model Context Protocol“ op.
  5. Klickt op „Connector ariichten“ a wielt „Dësen Apparat“.
Ariichtungsbildschierm vum TypingMind-MCP-Connector mat „Dësen Apparat“ ausgewielt
2

De Connector-Befeel ausféieren

Wielt „Dësen Apparat“, kopéiert de Befeel aus TypingMind a féiert en am Terminal aus. Loosst de Prozess lafen, wärend Dir MCP benotzt.

  1. Kopéiert den Ariichtungsbefeel, deen TypingMind uweist.
  2. Maacht Terminal op macOS oder Windows Terminal op Windows op.
  3. Pescht de Befeel an a féiert en aus.
  4. Bestätegt d'Installatioun vum Package, wann den Terminal Iech freet, ob Dir weiderfuere wëllt.
  5. Loosst den Terminal an de Prozess doranner lafen, wärend Dir MCP-Tools benotzt.
3

TheBrain MCP Server als Server derbäisetzen

Wann de Connector-Status „Prett“ ass, klickt op „Serveren änneren“ a pescht d'MCP-Serverkonfiguratioun an.

  1. Waart, bis de Connector-Status „Prett“ weist.
  2. Klickt op „Serveren änneren“.
  3. Pescht d'MCP-Serverkonfiguratioun vu TheBrain MCP Server an.
  4. Späichert d'Serverlëscht.
  5. Aktualiséiert, wann Dir kontrolléiere wëllt, ob de Connector nach ëmmer prett ass.
MCP-Astellunge vun TypingMind mat aktivem Server an dem Knäppchen „Serveren änneren“
{
  "mcpServers": {
    "thebrain-mcp": {
      "command": "npx",
      "args": [
        "-y",
        "<mcp-server-package>"
      ]
    }
  }
}
4

D'Verbindung mat verschiddene Modeller benotzen

Späichert d'Serverlëscht, maacht „Plugins“ op an aktivéiert d'MCP-Tools vu TheBrain MCP Server. Wielt dann e belibegen ënnerstëtzte KI-Modell an TypingMind a benotzt d'Tools am Chat oder weist se engem KI-Agent zou.

  1. Maacht d'Säit „Plugins“ an TypingMind op.
  2. Aktivéiert d'MCP-Tools vu TheBrain MCP Server.
  3. Start e Chat a wielt de KI-Modell, deen Dir benotze wëllt.
  4. Benotzt d'MCP-Tools am Chat oder weist se engem KI-Agent zou.
  5. Wiesselt bei Bedarf op en anere KI-Modell, ouni MCP nei ze verbannen.
TypingMind-Chat mat aktivéierte MCP-Tools an engem ausgewielte KI-Modell
Hëlleft Dir mir bei dëser Aufgab mat TheBrain MCP Server?
TheBrain MCP Server
Jo. Ech hunn et gelies.
Dat hunn ech mat TheBrain MCP Server fonnt.

Heefeg gestallte Froen

Fir wat gëtt de MCP-Server TheBrain MCP Server benotzt?

TheBrain MCP Server ass e MCP-Server, deen et kompatibele KI-Clienten erlaabt, sech mat externen Tools a Kontext ze verbannen. An TypingMind kënnt Dir dëse MCP-Server eemol derbäisetzen a seng Tools an Ärem KI-Aarbechtsberäich zur Verfügung stellen.

Kann ech TheBrain MCP Server MCP mat méi KI-Modeller an TypingMind benotzen?

Jo. TypingMind verbënnt MCP-Tools um Niveau vum Aarbechtsberäich. Sou kënnt Dir TheBrain MCP Server mat verschiddene KI-Modeller wéi Claude, ChatGPT, Gemini oder anere Modeller benotzen, déi Dir an TypingMind konfiguréiert hutt, ouni de MCP-Server fir all Modell separat anzeriichten.

Firwat TheBrain MCP Server MCP mat TypingMind benotzen?

TypingMind ass eng vun de beschte Benotzeruewerfläche fir LLM-Chat, well et méi KI-Modeller, Prompts, Plugins, KI-Agenten, API-Schlësselen a MCP-Tools an engem Aarbechtsberäich zesummebréngt. Wann TheBrain MCP Server verbonnen ass, kënnt Dir seng MCP-Tools mat Äre bevorzugte Modeller benotzen a gläichzäiteg Är Chataarbecht an TypingMind organiséieren.

Wéi verbannen ech TheBrain MCP Server MCP mat TypingMind?

TheBrain MCP Server leeft iwwer de lokale MCP-Connector vun TypingMind. Dat eegent sech am beschten, wann de MCP-Server Zougrëff op lokal Fichieren, Desktop-Apps, Kommandozeilen-Tools oder privat Ressourcen op Ärem Computer brauch.

Wéi eng Tools stellt TheBrain MCP Server MCP an TypingMind zur Verfügung?

TheBrain MCP Server stellt MCP-Funktiounen zur Verfügung, déi Dir op der Plugins-Säit vun TypingMind aktivéiere kënnt, fir se am Chat ze benotzen oder KI-Agenten zouzeweisen.

Muss ech meng API-Schlëssele mat TypingMind deelen, fir TheBrain MCP Server MCP ze benotzen?

Nee. TypingMind setzt op lokal Veraarbechtung a léisst Iech d'Kontroll iwwer Är Modellubidder, API-Schlësselen, Prompts a MCP-Konfiguratioun. Wann TheBrain MCP Server eng Authentifizéierung verlaangt, setzt déi néideg Headeren, OAuth-Astellungen oder lokal Konfiguratioun fir dee MCP-Server derbäi, wann Dir d'Verbindung erstallt.

Änlech MCP-Serveren

All weisen

Elo Ären eegene KI-Workspace ariichten

Abonnéiert Iech op eisen Newsletter, fir iwwer nei Funktiounen an zukünfteg Gewënnspiller informéiert ze ginn 👇