Logo von AnythingLLM MCP Server

AnythingLLM MCP Server

Community
raqueljezweb

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

Herausgeberraqueljezweb
Repositoryanythingllm-mcp-server
SpracheJavaScript
Forks
16
Sterne
16
Verfügbare Tools
38
Transporttypstdio
Kategorien
LizenzMIT
Links
  • Tools mit KI-Workflows verbinden

    AnythingLLM MCP Server stellt MCP-Funktionen bereit, die kompatible KI-Clients und Agenten nutzen können.

  • 38 verfügbare Tools

    Sehen Sie sich unten die aufrufbaren Aktionen an, einschließlich Namen und Beschreibungen, sofern der Server diese bereitstellt.

  • Konfiguration zum Kopieren

    Nutzen Sie die Installationsbeispiele, um diesen Server in Ihrem bevorzugten MCP-Client zu konfigurieren.

  • Open-Source-Kennzahlen

    16 Sterne und 16 Forks im verlinkten Repository.

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

Installation

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

Verfügbare Tools

  • 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

AnythingLLM MCP Server MCP mit mehreren KI-Modellen nutzen

TypingMind bindet MCP-Tools auf Arbeitsbereichsebene ein. Sobald AnythingLLM MCP Server verbunden ist, können Sie die Integration mit verschiedenen KI-Modellen in TypingMind verwenden, statt sie für jedes Modell separat einzurichten. Diese MCP-Integration läuft lokal über den TypingMind-MCP-Konnektor auf Ihrem Gerät.

Einrichtungsanleitung für den lokalen Konnektor

Nutzen Sie diese Option, wenn der MCP-Server Zugriff auf lokale Dateien, Apps oder private Ressourcen auf Ihrem Computer benötigt.

1

MCP-Einstellungen öffnen

Gehen Sie in TypingMind zu „Einstellungen“, „Erweiterte Einstellungen“ und dann „Model Context Protocol“ und wählen Sie „Konnektor-Setup“.

  1. Öffnen Sie TypingMind in Ihrem Browser.
  2. Klicken Sie auf das Symbol „Optionen“.
  3. Gehen Sie zu „Erweiterte Einstellungen“.
  4. Öffnen Sie den Abschnitt „Model Context Protocol“.
  5. Klicken Sie auf „Konnektor-Setup“ und wählen Sie „Dieses Gerät“.
Einrichtungsbildschirm des TypingMind-MCP-Konnektors mit ausgewählter Option „Dieses Gerät“
2

Konnektor-Befehl ausführen

Wählen Sie „Dieses Gerät“, kopieren Sie den Befehl aus TypingMind und führen Sie ihn im Terminal aus. Lassen Sie den Prozess laufen, solange Sie MCP verwenden.

  1. Kopieren Sie den in TypingMind angezeigten Einrichtungsbefehl.
  2. Öffnen Sie unter macOS Terminal bzw. unter Windows Windows Terminal.
  3. Fügen Sie den Befehl ein und führen Sie ihn aus.
  4. Bestätigen Sie die Paketinstallation, wenn Sie im Terminal zum Fortfahren aufgefordert werden.
  5. Lassen Sie das Terminalfenster geöffnet und den Prozess darin laufen, solange Sie MCP-Tools verwenden.
3

AnythingLLM MCP Server als Server hinzufügen

Wenn der Konnektorstatus „Bereit“ anzeigt, klicken Sie auf „Server ändern“ und fügen Sie die MCP-Server-Konfiguration ein.

  1. Warten Sie, bis der Konnektorstatus „Bereit“ anzeigt.
  2. Klicken Sie auf „Server ändern“.
  3. Fügen Sie die MCP-Server-Konfiguration für AnythingLLM MCP Server ein.
  4. Speichern Sie die Serverliste.
  5. Aktualisieren Sie die Ansicht, um bei Bedarf zu prüfen, ob der Konnektor weiterhin bereit ist.
MCP-Einstellungen in TypingMind mit aktivem Server und der Schaltfläche „Server ändern“
{
  "mcpServers": {
    "anythingllm-mcp-server": {
      "command": "npx",
      "args": [
        "-y",
        "anythingllm-mcp-server"
      ]
    }
  }
}
4

Verbindung modellübergreifend nutzen

Speichern Sie die Serverliste, öffnen Sie „Plugins“ und aktivieren Sie die MCP-Tools von AnythingLLM MCP Server. Wählen Sie dann ein beliebiges unterstütztes KI-Modell in TypingMind und verwenden Sie die Tools im Chat oder weisen Sie sie einem KI-Agenten zu.

  1. Öffnen Sie die Seite „Plugins“ in TypingMind.
  2. Aktivieren Sie die MCP-Tools von AnythingLLM MCP Server.
  3. Starten Sie einen Chat und wählen Sie das KI-Modell, das Sie verwenden möchten.
  4. Nutzen Sie die MCP-Tools im Chat oder weisen Sie sie einem KI-Agenten zu.
  5. Wechseln Sie bei Bedarf zu einem anderen KI-Modell, ohne die MCP-Verbindung erneut herzustellen.
TypingMind-Chat mit aktivierten MCP-Tools und einem ausgewählten KI-Modell
Können Sie mir mit AnythingLLM MCP Server bei dieser Aufgabe helfen?
AnythingLLM MCP Server
Gerne. Ich habe es gelesen.
Das habe ich mit AnythingLLM MCP Server gefunden.

Häufig gestellte Fragen

Wofür wird der MCP-Server AnythingLLM MCP Server verwendet?

AnythingLLM MCP Server ist ein MCP-Server, über den kompatible KI-Clients auf externe Tools und Kontext zugreifen können. In TypingMind können Sie diesen MCP-Server einmal hinzufügen und seine Tools in Ihrem KI-Arbeitsbereich verfügbar machen.

Kann ich AnythingLLM MCP Server MCP mit mehreren KI-Modellen in TypingMind verwenden?

Ja. TypingMind bindet MCP-Tools auf Arbeitsbereichsebene ein. So können Sie AnythingLLM MCP Server mit verschiedenen KI-Modellen wie Claude, ChatGPT, Gemini oder anderen in TypingMind konfigurierten Modellen verwenden, ohne den MCP-Server für jedes Modell separat einzurichten.

Warum AnythingLLM MCP Server MCP mit TypingMind nutzen?

TypingMind ist eine der besten Oberflächen für LLM-Chats, da es mehrere KI-Modelle, Prompts, Plugins, KI-Agenten, API-Schlüssel und MCP-Tools in einem Arbeitsbereich vereint. Sobald AnythingLLM MCP Server verbunden ist, können Sie die zugehörigen MCP-Tools mit Ihren bevorzugten Modellen nutzen und Ihre Chat-Abläufe in TypingMind übersichtlich organisieren.

Wie verbinde ich AnythingLLM MCP Server MCP mit TypingMind?

AnythingLLM MCP Server wird über den lokalen MCP-Konnektor von TypingMind angebunden. Das ist die beste Wahl, wenn der MCP-Server auf lokale Dateien, Desktop-Apps, Befehlszeilentools oder private Ressourcen auf Ihrem Computer zugreifen muss.

Welche Tools stellt AnythingLLM MCP Server MCP in TypingMind bereit?

AnythingLLM MCP Server stellt 38 MCP-Tools bereit, die Sie auf der Plugins-Seite in TypingMind aktivieren und im Chat verwenden oder KI-Agenten zuweisen können.

Muss ich meine API-Schlüssel mit TypingMind teilen, um AnythingLLM MCP Server MCP zu verwenden?

Nein. TypingMind arbeitet vorrangig lokal, sodass Sie die Kontrolle über Ihre Modellanbieter, API-Schlüssel, Prompts und MCP-Konfiguration behalten. Falls AnythingLLM MCP Server eine Authentifizierung erfordert, fügen Sie beim Erstellen der Verbindung die erforderlichen Header, OAuth-Einstellungen oder die lokale Konfiguration für diesen MCP-Server hinzu.

Ähnliche MCP-Server

Alle

Jetzt eigenen KI-Arbeitsbereich einrichten

Abonnieren Sie unseren Newsletter und erfahren Sie mehr über neue Funktionen und kommende Gewinnspiele 👇