شعار AnythingLLM MCP Server

AnythingLLM MCP Server

المجتمع
raqueljezweb

An MCP (Model Context Protocol) server that enables seamless integration between AnythingLLM and MCP-compatible clients like TypingMind, Claude Desktop, and more.

الناشرraqueljezweb
المستودعanythingllm-mcp-server
اللغةJavaScript
التفريعات
16
النجوم
16
الأدوات المتاحة
38
نوع نقل البياناتstdio
الفئات
الترخيصMIT
الروابط
  • اربط الأدوات بسير عمل الذكاء الاصطناعي

    يتيح AnythingLLM MCP Server إمكانات MCP التي يمكن لتطبيقات الذكاء الاصطناعي العميلة ووكلاء الذكاء الاصطناعي المتوافقة استخدامها.

  • الأدوات المتاحة: 38

    تصفّح الإجراءات القابلة للاستدعاء أدناه، بما في ذلك أسماؤها وأوصافها عندما يوفّرها الخادم.

  • إعدادات جاهزة للنسخ

    استخدم أمثلة إعداد التثبيت لتهيئة هذا الخادم في تطبيق MCP العميل المفضّل لديك.

  • مؤشرات الاهتمام بالمصدر المفتوح

    النجوم: 16، والنسخ المتفرعة: 16 في المستودع المرتبط.

AnythingLLM MCP Server

An MCP (Model Context Protocol) server that enables seamless integration between AnythingLLM and MCP-compatible clients like TypingMind, Claude Desktop, and more.

Features

  • 🚀 Complete AnythingLLM API Integration: Access all AnythingLLM features through MCP
  • 💬 Workspace Management: Create, update, delete, list workspaces and manage their settings
  • 🤖 Chat Integration: Send messages, manage chat history, and stream responses
  • 📄 Document Management: Upload, list, delete documents, process URLs, and manage vectors
  • 🔍 Embedding & Search: Embed text/webpages and search within workspaces
  • 👥 User Management: Create, update, delete users and manage permissions
  • 🔑 API Key Management: Programmatically manage API keys
  • ⚙️ System Administration: Configure LLM providers, vector databases, and system settings
  • 🤖 Agent Support: Create and manage AI agents with custom prompts and tools
  • 📊 System Monitoring: Access system information and statistics
  • 🔐 Secure Authentication: API key-based authentication with environment variable support

Prerequisites

  • Node.js 18+ installed
  • AnythingLLM instance running with API access enabled
  • AnythingLLM API key (obtain from your AnythingLLM instance at /settings/api-keys)

Installation

Option 1: Using npx (Recommended)

No installation needed! You can run the server directly with npx when configuring your MCP client.

Option 2: Global Installation

bash
npm install -g anythingllm-mcp-server

Option 3: Local Installation

bash
git clone https://github.com/yourusername/anythingllm-mcp-server.git
cd anythingllm-mcp-server
npm install

Configuration

For TypingMind.com

Setup Instructions

  1. Go to TypingMind.com

  2. Click on Settings → MCP Servers

  3. In the MCP configuration editor, add the AnythingLLM server:

    json
    {
     "mcpServers": {
       "anythingllm": {
         "command": "npx",
         "args": ["-y", "anythingllm-mcp-server@2.0.0"]
        }
      }
    }
  4. Click Save - TypingMind will restart the MCP servers

  5. Look for the "Connected" status

First Time Usage

After the server connects, initialize it with your AnythingLLM credentials:

  1. In the chat, type:

    Use the initialize_anythingllm tool with apiKey: "your-api-key" and baseUrl: "http://localhost:3001"
  2. Replace:

    • "your-api-key" with your AnythingLLM API key (get it from AnythingLLM → Settings → API Keys)
    • "http://localhost:3001" with your AnythingLLM instance URL
  3. You'll see: "AnythingLLM client initialized successfully"

Example Commands

After initialization, use natural language to interact with AnythingLLM:

  • "List all my workspaces"
  • "Create a new workspace called 'Project Documentation'"
  • "Chat with the 'research' workspace about the latest findings"
  • "Show me all documents in the 'knowledge-base' workspace"

TypingMind will automatically use the appropriate AnythingLLM tools.

For Claude Desktop

Add to your Claude Desktop configuration file:

On macOS: ~/Library/Application Support/Claude/claude_desktop_config.json
On Windows: %APPDATA%\Claude\claude_desktop_config.json

json
{
  "mcpServers": {
    "anythingllm": {
      "command": "npx",
      "args": ["-y", "anythingllm-mcp-server@1.0.3"]
    }
  }
}

Initialization

When first using the server in your MCP client, you'll need to initialize it with your AnythingLLM credentials by calling the initialize_anythingllm tool:

Use the initialize_anythingllm tool with apiKey: "your-api-key" and baseUrl: "http://localhost:3001"
  • apiKey: Get this from your AnythingLLM instance at /settings/api-keys
  • baseUrl: Your AnythingLLM instance URL (default: http://localhost:3001)

You can also set these as environment variables:

  • ANYTHINGLLM_API_KEY: Your API key
  • ANYTHINGLLM_BASE_URL: Your instance URL

Available Tools

Initialization

ToolDescriptionParameters
initialize_anythingllmInitialize the AnythingLLM client with API credentialsapiKey (string), baseUrl (optional string)

Workspace Management

ToolDescriptionParameters
list_workspacesGet all workspacesNone
get_workspaceGet details of a specific workspaceslug (string)
create_workspaceCreate a new workspacename (string)
update_workspaceUpdate workspace settingsslug (string), updates (object)
delete_workspaceRemove a workspaceslug (string)
get_workspace_settingsGet settings for a specific workspaceslug (string)
update_workspace_settingsUpdate workspace-specific settingsslug (string), settings (object)

Chat Operations

ToolDescriptionParameters
chat_with_workspaceSend messages to a workspaceslug (string), message (string), mode (optional: "chat" or "query")
get_chat_historyGet chat history for a workspaceslug (string), limit (optional number)
clear_chat_historyClear all chat history for a workspaceslug (string)

Document Management

ToolDescriptionParameters
list_documentsView all documents in a workspaceslug (string)
delete_documentRemove a document from a workspaceslug (string), documentId (string)
process_document_urlProcess a document from a URLslug (string), url (string)
get_document_vectorsGet vector embeddings for a documentslug (string), documentId (string)

Embedding & Search

ToolDescriptionParameters
embed_textEmbed text directly into a workspaceslug (string), texts (array of strings)
embed_webpageEmbed a webpage into a workspaceslug (string), url (string)
search_workspaceSearch within a workspaceslug (string), query (string), limit (optional number)

User Management

ToolDescriptionParameters
list_usersList all users in the systemNone
create_userCreate a new userusername (string), password (string), role (optional string)
update_userUpdate an existing useruserId (string), updates (object)
delete_userDelete a useruserId (string)

API Key Management

ToolDescriptionParameters
list_api_keysList all API keysNone
create_api_keyCreate a new API keyname (string)
delete_api_keyDelete an API keykeyId (string)

System Administration

ToolDescriptionParameters
get_system_settingsView system configurationNone
update_system_settingsModify system settingssettings (object)
get_system_infoGet general system informationNone
get_system_statsGet system statisticsNone

LLM Provider Management

ToolDescriptionParameters
list_llm_providersList available LLM providersNone
update_llm_providerUpdate LLM provider configurationprovider (string), apiKey (optional string), model (optional string)

Vector Database Management

ToolDescriptionParameters
get_vector_database_infoGet vector database configurationNone
update_vector_databaseUpdate vector database configurationprovider (string), config (object)

Agent Management

ToolDescriptionParameters
list_agentsList all available agentsNone
create_agentCreate a new agentname (string), systemPrompt (optional string), tools (optional array)
update_agentUpdate an existing agentagentId (string), updates (object)
delete_agentDelete an agentagentId (string)
invoke_agentInvoke an agent with inputagentId (string), input (string)

Usage Examples

Once configured, you can interact with AnythingLLM through your MCP client:

List all workspaces

"Use the list_workspaces tool to show me all available workspaces"

Create a new workspace

"Create a new workspace called 'Project Documentation' using the create_workspace tool"

Chat with a workspace

"Use chat_with_workspace to ask the 'research' workspace: What are the key findings from the latest report?"

Manage documents

"List all documents in the 'knowledge-base' workspace"
"Delete document with ID 'doc123' from the 'archive' workspace"

API Reference

This MCP server connects to the following AnythingLLM API endpoints:

  • /api/v1/workspaces - Workspace operations
  • /api/v1/workspace/{slug}/chat - Chat functionality
  • /api/v1/workspace/{slug}/documents - Document management
  • /api/v1/system/settings - System configuration

For complete API documentation, visit /api/docs on your AnythingLLM instance.

Troubleshooting

Connection Issues

  • ✅ Ensure your AnythingLLM instance is running and accessible
  • ✅ Verify the API key has proper permissions
  • ✅ Check that the base URL is correct (include http/https)
  • ✅ Make sure the AnythingLLM API is enabled in your instance

API Errors

  • Most errors will include descriptive messages
  • Check AnythingLLM logs for detailed error information
  • Ensure your API key hasn't expired
  • Verify workspace slugs are correct when accessing specific workspaces

Common Issues

"Client not initialized" error:

  • Make sure you've initialized the server with your API key and base URL

"Workspace not found" error:

  • Check that the workspace slug is correct
  • Use list_workspaces to see available workspaces

Connection refused:

  • Verify AnythingLLM is running on the specified port
  • Check firewall settings

Security Notes

  • 🔐 Keep your API key secure and never commit it to version control
  • 🔒 Use environment variables for sensitive configuration in production
  • 🛡️ Restrict API key permissions to only what's needed
  • ⚠️ Never share your API key publicly

Contributing

Contributions are welcome! Please feel free to submit a Pull Request.

  1. Fork the repository
  2. Create your feature branch (git checkout -b feature/AmazingFeature)
  3. Commit your changes (git commit -m 'Add some AmazingFeature')
  4. Push to the branch (git push origin feature/AmazingFeature)
  5. Open a Pull Request

License

This project is licensed under the MIT License - see the LICENSE file for details.

Support

Acknowledgments


Made with ❤️ for the AnythingLLM community

التثبيت

TypingMind
{
  "mcpServers": {
    "anythingllm-mcp-server": {
      "command": "npx",
      "args": [
        "anythingllm-mcp-server"
      ]
    }
  }
}

الأدوات المتاحة

  • initialize_anythingllm

    Initialize the AnythingLLM client with API credentials

  • list_workspaces

    List all available workspaces in AnythingLLM

  • get_workspace

    Get details of a specific workspace

  • create_workspace

    Create a new workspace

  • update_workspace

    Update an existing workspace

  • delete_workspace

    Delete a workspace

  • chat_with_workspace

    Send a chat message to a workspace

  • list_documents

    List all documents in a workspace

  • delete_document

    Delete a document from a workspace

  • get_system_settings

    Get system settings

  • update_system_settings

    Update system settings

  • list_users

    List all users in the system

  • create_user

    Create a new user

  • update_user

    Update an existing user

  • delete_user

    Delete a user

  • list_api_keys

    List all API keys

  • create_api_key

    Create a new API key

  • delete_api_key

    Delete an API key

  • embed_text

    Embed text directly into a workspace

  • embed_webpage

    Embed a webpage into a workspace

  • get_chat_history

    Get chat history for a workspace

  • clear_chat_history

    Clear all chat history for a workspace

  • get_system_info

    Get general system information

  • get_system_stats

    Get system statistics

  • list_llm_providers

    List available LLM providers

  • update_llm_provider

    Update LLM provider configuration

  • get_vector_database_info

    Get vector database configuration

  • update_vector_database

    Update vector database configuration

  • get_workspace_settings

    Get settings for a specific workspace

  • update_workspace_settings

    Update settings for a specific workspace

  • process_document_url

    Process a document from a URL

  • get_document_vectors

    Get vector embeddings for a document

  • search_workspace

    Search within a workspace

  • list_agents

    List all available agents

  • create_agent

    Create a new agent

  • update_agent

    Update an existing agent

  • delete_agent

    Delete an agent

  • invoke_agent

    Invoke an agent with input

استخدم MCP الخاص بـ AnythingLLM MCP Server مع نماذج ذكاء اصطناعي متعددة

يربط TypingMind أدوات MCP على مستوى مساحة العمل، لذا بمجرد توصيل AnythingLLM MCP Server، يمكنك استخدامه مع نماذج ذكاء اصطناعي مختلفة في TypingMind بدلًا من إعداده لكل نموذج على حدة. يعمل تكامل MCP هذا محليًا عبر موصل MCP الخاص بـ TypingMind على جهازك.

دليل الإعداد لاستخدام الموصل المحلي

استخدم هذا الخيار عندما يحتاج خادم MCP إلى الوصول إلى ملفات محلية أو تطبيقات أو موارد خاصة على جهاز الكمبيوتر لديك.

1

فتح إعدادات MCP

في TypingMind، انتقل إلى «الإعدادات»، ثم «الإعدادات المتقدمة»، ثم «بروتوكول سياق النموذج»، واختر «إعداد الموصل».

  1. افتح TypingMind في متصفحك.
  2. انقر على أيقونة الإعدادات.
  3. انتقل إلى الإعدادات المتقدمة.
  4. افتح قسم بروتوكول سياق النموذج.
  5. انقر على «إعداد الموصل» واختر «هذا الجهاز».
شاشة إعداد موصل MCP في TypingMind مع تحديد «هذا الجهاز»
2

تنفيذ أمر الموصل

اختر «هذا الجهاز»، وانسخ الأمر من TypingMind وشغّله في Terminal. أبقِ العملية قيد التشغيل أثناء استخدام MCP.

  1. انسخ أمر الإعداد الذي يعرضه TypingMind.
  2. افتح Terminal على macOS أو Windows Terminal على Windows.
  3. الصق الأمر ونفّذه.
  4. وافق على تثبيت الحزمة إذا طلب منك Terminal تأكيد المتابعة.
  5. أبقِ نافذة Terminal والعملية التي تعمل فيها قيد التشغيل أثناء استخدام أدوات MCP.
3

أضف AnythingLLM MCP Server كخادم

عندما تظهر حالة الموصل «جاهز»، انقر على «تعديل الخوادم» والصق إعدادات خادم MCP.

  1. انتظر حتى تظهر حالة الموصل «جاهز».
  2. انقر على «تعديل الخوادم».
  3. الصق إعدادات خادم MCP الخاص بـ AnythingLLM MCP Server.
  4. احفظ قائمة الخوادم.
  5. حدّث الحالة إذا أردت التأكد من أن الموصل لا يزال جاهزًا.
إعدادات MCP في TypingMind تعرض خادمًا نشطًا وزر «تعديل الخوادم»
{
  "mcpServers": {
    "anythingllm-mcp-server": {
      "command": "npx",
      "args": [
        "-y",
        "anythingllm-mcp-server"
      ]
    }
  }
}
4

استخدام الاتصال مع نماذج مختلفة

احفظ قائمة الخوادم، وافتح «الإضافات»، وفعّل أدوات MCP الخاصة بـ AnythingLLM MCP Server، ثم اختر أي نموذج ذكاء اصطناعي مدعوم في TypingMind واستخدم الأدوات في المحادثة أو أسندها إلى وكيل ذكاء اصطناعي.

  1. افتح صفحة الإضافات في TypingMind.
  2. فعّل أدوات MCP الخاصة بـ AnythingLLM MCP Server.
  3. ابدأ محادثة واختر نموذج الذكاء الاصطناعي الذي تريد استخدامه.
  4. استخدم أدوات MCP في المحادثة أو عيّنها لوكيل ذكاء اصطناعي.
  5. انتقل إلى نموذج ذكاء اصطناعي آخر عند الحاجة دون إعادة الاتصال بـ MCP.
محادثة في TypingMind تستخدم أدوات MCP المفعّلة مع نموذج ذكاء اصطناعي محدّد
هل يمكنك استخدام AnythingLLM MCP Server لمساعدتي في هذه المهمة؟
AnythingLLM MCP Server
بالتأكيد. قرأته.
إليك ما وجدته باستخدام AnythingLLM MCP Server.

الأسئلة الشائعة

ما استخدامات خادم MCP AnythingLLM MCP Server؟

AnythingLLM MCP Server هو خادم MCP يتيح لتطبيقات الذكاء الاصطناعي المتوافقة الاتصال بأدوات ومصادر سياق خارجية. في TypingMind، يمكنك إضافة خادم MCP هذا مرة واحدة وإتاحة أدواته في مساحة عملك للذكاء الاصطناعي.

هل يمكنني استخدام خادم MCP AnythingLLM MCP Server مع نماذج ذكاء اصطناعي متعددة في TypingMind؟

نعم. يربط TypingMind أدوات MCP على مستوى مساحة العمل، لذا يمكنك استخدام AnythingLLM MCP Server مع نماذج ذكاء اصطناعي مختلفة مثل Claude أو ChatGPT أو Gemini أو غيرها من النماذج التي أعددتها في TypingMind، دون إعداد خادم MCP لكل نموذج على حدة.

لماذا تستخدم موصل MCP AnythingLLM MCP Server مع TypingMind؟

يُعد TypingMind من أفضل واجهات المحادثة مع النماذج اللغوية الكبيرة، إذ يجمع نماذج ذكاء اصطناعي متعددة ومطالبات وإضافات ووكلاء ذكاء اصطناعي ومفاتيح API وأدوات MCP في مساحة عمل واحدة. بعد توصيل AnythingLLM MCP Server، يمكنك استخدام أدوات MCP الخاصة به عبر نماذجك المفضلة مع الحفاظ على سير عمل محادثاتك منظمًا في TypingMind.

كيف أوصّل خادم MCP AnythingLLM MCP Server بـ TypingMind؟

يعمل AnythingLLM MCP Server عبر موصل MCP المحلي في TypingMind. هذا هو الخيار الأنسب عندما يحتاج خادم MCP إلى الوصول إلى ملفات محلية أو تطبيقات سطح المكتب أو أدوات سطر الأوامر أو موارد خاصة على حاسوبك.

ما الأدوات التي يوفّرها خادم MCP AnythingLLM MCP Server في TypingMind؟

يتيح AnythingLLM MCP Server أدوات MCP بعدد 38، يمكنك تفعيلها من صفحة الإضافات في TypingMind واستخدامها في المحادثات أو تعيينها لوكلاء ذكاء اصطناعي.

هل أحتاج إلى مشاركة مفاتيح API الخاصة بي مع TypingMind لاستخدام خادم MCP AnythingLLM MCP Server؟

لا. يعطي TypingMind الأولوية للعمل المحلي ويُبقي مزوّدي النماذج ومفاتيح API والمطالبات وإعدادات MCP تحت تحكمك. إذا كان AnythingLLM MCP Server يتطلب مصادقة، فأضف الترويسات أو إعدادات OAuth أو الإعدادات المحلية المطلوبة لخادم MCP هذا عند إنشاء الاتصال.

خوادم MCP ذات صلة

عرض الكل

أنشئ مساحة عملك للذكاء الاصطناعي الآن

اشترك في نشرتنا البريدية لتصلك أخبار الميزات الجديدة والهدايا القادمة 👇