Логотип TheBrain MCP Server

TheBrain MCP Server

Спільнота
redmorestudio

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

Видавецьredmorestudio
Репозиторійthebrain-mcp
МоваJavaScript
Форки
6
Зірки
16
Доступні інструменти
0
Тип транспортуstdio
Категорії
ЛіцензіяMIT
Посилання
  • Підключайте інструменти до робочих процесів із ШІ

    TheBrain MCP Server надає можливості MCP, які можуть використовувати сумісні клієнтські ШІ-застосунки та агенти.

  • Доступні інструменти: 0

    Перегляньте нижче дії, які можна викликати, з назвами й описами, якщо сервер їх надає.

  • Готова конфігурація для копіювання

    Скористайтеся прикладами конфігурації, щоб налаштувати цей сервер у вибраному клієнті MCP.

  • Показники інтересу до відкритого коду

    Зірки: 16, форки: 6 — у пов’язаному репозиторії.

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!

Використовуйте MCP TheBrain MCP Server з різними моделями ШІ

TypingMind підключає інструменти MCP на рівні робочого простору, тож після підключення TheBrain MCP Server ви можете використовувати їх із різними моделями ШІ в TypingMind, а не налаштовувати окремо для кожної моделі. Ця інтеграція MCP працює локально через конектор MCP TypingMind на вашому пристрої.

Інструкція з налаштування локального конектора

Виберіть цей варіант, якщо серверу MCP потрібен доступ до локальних файлів, програм або приватних ресурсів на вашому комп’ютері.

1

Відкрийте налаштування MCP

У TypingMind перейдіть до розділу «Налаштування», відкрийте «Розширені налаштування», потім «Протокол контексту моделі» й виберіть «Параметри конектора».

  1. Відкрийте TypingMind у браузері.
  2. Натисніть значок налаштувань.
  3. Перейдіть до розділу «Розширені налаштування».
  4. Відкрийте розділ «Протокол контексту моделі».
  5. Натисніть «Параметри конектора» й виберіть «Цей пристрій».
Екран налаштування конектора MCP у TypingMind з вибраним варіантом «Цей пристрій»
2

Виконайте команду конектора

Виберіть «Цей пристрій», скопіюйте команду з TypingMind і виконайте її в терміналі. Не зупиняйте процес, поки користуєтеся MCP.

  1. Скопіюйте команду налаштування, показану в TypingMind.
  2. Відкрийте «Термінал» у macOS або Windows Terminal у Windows.
  3. Вставте й виконайте команду.
  4. Підтвердьте встановлення пакета, якщо термінал запитає дозволу продовжити.
  5. Не закривайте вікно термінала й не зупиняйте процес, поки користуєтеся інструментами MCP.
3

Додайте TheBrain MCP Server як сервер

Коли статус конектора зміниться на «Готово», натисніть «Змінити сервери» та вставте конфігурацію сервера MCP.

  1. Зачекайте, доки статус конектора зміниться на «Готово».
  2. Натисніть «Змінити сервери».
  3. Вставте конфігурацію сервера MCP TheBrain MCP Server.
  4. Збережіть список серверів.
  5. Оновіть дані, щоб переконатися, що конектор досі готовий до роботи.
Налаштування MCP у TypingMind з активним сервером і кнопкою «Змінити сервери»
{
  "mcpServers": {
    "thebrain-mcp": {
      "command": "npx",
      "args": [
        "-y",
        "<mcp-server-package>"
      ]
    }
  }
}
4

Використовуйте підключення з різними моделями

Збережіть список серверів, відкрийте «Плагіни», увімкніть інструменти MCP для TheBrain MCP Server, а потім виберіть будь-яку підтримувану модель ШІ в TypingMind і використовуйте інструменти в чаті або призначте їх агенту ШІ.

  1. Відкрийте сторінку «Плагіни» в TypingMind.
  2. Увімкніть інструменти MCP для TheBrain MCP Server.
  3. Почніть чат і виберіть модель ШІ, яку хочете використовувати.
  4. Використовуйте інструменти MCP у чаті або призначте їх агенту ШІ.
  5. За потреби перемикайтеся на іншу модель ШІ без повторного підключення MCP.
Чат TypingMind із використанням увімкнених інструментів MCP і вибраної моделі ШІ
Допоможете з цим завданням через TheBrain MCP Server?
TheBrain MCP Server
Звісно. Я це прочитав.
Ось що я знайшов за допомогою TheBrain MCP Server.

Поширені запитання

Для чого використовується сервер MCP TheBrain MCP Server?

TheBrain MCP Server — це сервер MCP, який дає змогу сумісним клієнтам ШІ підключатися до зовнішніх інструментів і контексту. У TypingMind ви можете додати цей сервер MCP один раз і зробити його інструменти доступними у своєму робочому просторі ШІ.

Чи можу я використовувати MCP TheBrain MCP Server з кількома моделями ШІ в TypingMind?

Так. TypingMind підключає інструменти MCP на рівні робочого простору, тому ви можете використовувати TheBrain MCP Server з різними моделями ШІ, як-от Claude, ChatGPT, Gemini або іншими моделями, які ви налаштували в TypingMind, без окремого налаштування сервера MCP для кожної моделі.

Навіщо використовувати MCP TheBrain MCP Server із TypingMind?

TypingMind — один із найкращих інтерфейсів для чату з великими мовними моделями, адже він об’єднує різні моделі ШІ, промпти, плагіни, агентів ШІ, ключі API та інструменти MCP в одному робочому просторі. Підключивши TheBrain MCP Server, ви зможете використовувати його інструменти MCP з вибраними моделями та впорядковано працювати з чатами в TypingMind.

Як підключити MCP TheBrain MCP Server до TypingMind?

TheBrain MCP Server працює через локальний конектор MCP TypingMind. Це найкращий варіант, коли серверу MCP потрібен доступ до локальних файлів, настільних застосунків, інструментів командного рядка або приватних ресурсів на вашому комп’ютері.

Які інструменти надає MCP TheBrain MCP Server у TypingMind?

TheBrain MCP Server надає можливості MCP, які можна ввімкнути на сторінці «Плагіни» в TypingMind і використовувати в чаті або призначати агентам ШІ.

Чи потрібно передавати свої ключі API в TypingMind, щоб використовувати MCP TheBrain MCP Server?

Ні. TypingMind орієнтований насамперед на локальну роботу й дає змогу зберігати контроль над постачальниками моделей, ключами API, промптами та конфігурацією MCP. Якщо TheBrain MCP Server потребує автентифікації, під час створення підключення додайте потрібні заголовки, налаштування OAuth або локальну конфігурацію для цього сервера MCP.

Схожі сервери MCP

Усі

Створіть власний ШІ-простір уже зараз

Підпишіться на нашу розсилку, щоб дізнаватися про нові функції та майбутні розіграші 👇