Logo di TheBrain MCP Server

TheBrain MCP Server

Community
redmorestudio

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

Autoreredmorestudio
Repositorythebrain-mcp
LinguaJavaScript
Fork
6
Stelle
16
Strumenti disponibili
0
Tipo di trasportostdio
Categorie
LicenzaMIT
Link
  • Collega gli strumenti ai flussi di lavoro IA

    TheBrain MCP Server mette a disposizione funzionalità MCP utilizzabili da client e agenti IA compatibili.

  • 0 strumenti disponibili

    Esplora le azioni richiamabili qui sotto, con nomi e descrizioni quando forniti dal server.

  • Configurazione pronta da copiare

    Usa gli esempi di installazione per configurare questo server nel tuo client MCP preferito.

  • Indicatori di interesse open source

    16 stelle e 6 fork nel repository collegato.

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!

Usa MCP TheBrain MCP Server con più modelli IA

TypingMind collega gli strumenti MCP a livello di area di lavoro: una volta connesso TheBrain MCP Server, puoi usarlo con diversi modelli IA in TypingMind, senza configurarlo separatamente per ogni modello. Questa integrazione MCP viene eseguita localmente sul tuo dispositivo tramite il connettore MCP di TypingMind.

Guida alla configurazione del connettore locale

Usa questo metodo quando il server MCP deve accedere a file locali, app o risorse private sul tuo computer.

1

Apri le impostazioni MCP

In TypingMind, vai su Impostazioni, Impostazioni avanzate, poi su Model Context Protocol e scegli Configura MCP.

  1. Apri TypingMind nel tuo browser.
  2. Fai clic sull'icona Impostazioni.
  3. Vai a Impostazioni avanzate.
  4. Apri la sezione Model Context Protocol.
  5. Fai clic su Configura MCP e scegli Questo dispositivo.
Schermata di configurazione del connettore MCP di TypingMind con Questo dispositivo selezionato
2

Esegui il comando del connettore

Scegli Questo dispositivo, copia il comando da TypingMind ed eseguilo nel terminale. Lascia il processo in esecuzione mentre usi MCP.

  1. Copia il comando di configurazione mostrato da TypingMind.
  2. Apri Terminale su macOS o Windows Terminal su Windows.
  3. Incolla ed esegui il comando.
  4. Conferma l'installazione del pacchetto se il terminale ti chiede di procedere.
  5. Tieni aperta la finestra del terminale con il processo in esecuzione mentre usi gli strumenti MCP.
3

Aggiungi TheBrain MCP Server come server

Quando lo stato del connettore è Pronto, fai clic su Modifica server e incolla la configurazione del server MCP.

  1. Attendi che lo stato del connettore sia Pronto.
  2. Fai clic su Modifica server.
  3. Incolla la configurazione del server MCP di TheBrain MCP Server.
  4. Salva l'elenco dei server.
  5. Aggiorna per verificare che il connettore sia ancora pronto.
Impostazioni MCP di TypingMind con un server attivo e il pulsante Modifica server
{
  "mcpServers": {
    "thebrain-mcp": {
      "command": "npx",
      "args": [
        "-y",
        "<mcp-server-package>"
      ]
    }
  }
}
4

Usa la connessione con diversi modelli

Salva l'elenco dei server, apri Plugin, abilita gli strumenti MCP di TheBrain MCP Server, poi seleziona un modello IA supportato in TypingMind e usa gli strumenti in chat o assegnali a un agente IA.

  1. Apri la pagina Plugin in TypingMind.
  2. Abilita gli strumenti MCP di TheBrain MCP Server.
  3. Avvia una chat e scegli il modello IA che vuoi usare.
  4. Usa gli strumenti MCP in chat o assegnali a un agente IA.
  5. Passa a un altro modello IA quando serve, senza riconnettere MCP.
Chat di TypingMind che usa gli strumenti MCP abilitati con un modello IA selezionato
Puoi usare TheBrain MCP Server per aiutarmi con questa attività?
TheBrain MCP Server
Certo. Ho letto.
Ecco cosa ho trovato con TheBrain MCP Server.

Domande frequenti

A cosa serve il server MCP TheBrain MCP Server?

TheBrain MCP Server è un server MCP che consente ai client IA compatibili di accedere a strumenti e informazioni di contesto esterni. In TypingMind puoi aggiungere questo server MCP una sola volta e rendere disponibili i suoi strumenti nella tua area di lavoro IA.

Posso usare TheBrain MCP Server MCP con più modelli IA in TypingMind?

Sì. TypingMind collega gli strumenti MCP a livello di area di lavoro, quindi puoi usare TheBrain MCP Server con diversi modelli IA come Claude, ChatGPT, Gemini o altri modelli che hai configurato in TypingMind, senza dover configurare il server MCP separatamente per ogni modello.

Perché usare il connettore MCP TheBrain MCP Server con TypingMind?

TypingMind è una delle migliori interfacce per chattare con gli LLM perché riunisce più modelli IA, prompt, plugin, agenti IA, chiavi API e strumenti MCP in un'unica area di lavoro. Collegando TheBrain MCP Server, puoi usare i suoi strumenti MCP con i tuoi modelli preferiti e mantenere organizzato il tuo flusso di lavoro in chat su TypingMind.

Come collego TheBrain MCP Server MCP a TypingMind?

TheBrain MCP Server funziona tramite il connettore MCP locale di TypingMind. È la soluzione ideale quando il server MCP deve accedere a file locali, app desktop, strumenti da riga di comando o risorse private sul tuo computer.

Quali strumenti offre TheBrain MCP Server MCP in TypingMind?

TheBrain MCP Server mette a disposizione funzionalità MCP che puoi attivare dalla pagina Plugin di TypingMind e usare in chat o assegnare agli agenti IA.

Devo condividere le mie chiavi API con TypingMind per usare TheBrain MCP Server MCP?

No. TypingMind privilegia il funzionamento in locale e ti permette di mantenere il controllo su fornitori di modelli, chiavi API, prompt e configurazione MCP. Se TheBrain MCP Server richiede l'autenticazione, aggiungi le intestazioni, le impostazioni OAuth o la configurazione locale necessarie per quel server MCP quando crei la connessione.

Server MCP correlati

Vedi tutti

Crea subito la tua area di lavoro IA

Iscriviti alla nostra newsletter per ricevere aggiornamenti sulle nuove funzionalità e sulle prossime iniziative a premi 👇