Logo vun AnythingLLM MCP Server

AnythingLLM MCP Server

Communautéit
raqueljezweb

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

Editeurraqueljezweb
Repositoryanythingllm-mcp-server
SproochJavaScript
Forks
16
Stären
16
Disponibel Tools
38
Transporttypstdio
Kategorien
LizenzMIT
Linken
  • Tools mat KI-Workflows verbannen

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

  • 38 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 16 Forks aus dem verlinkte 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

Installatioun

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

Disponibel 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 mat verschiddene KI-Modeller benotzen

TypingMind verbënnt MCP-Tools um Niveau vum Aarbechtsberäich. Soubal AnythingLLM 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

AnythingLLM 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 AnythingLLM 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": {
    "anythingllm-mcp-server": {
      "command": "npx",
      "args": [
        "-y",
        "anythingllm-mcp-server"
      ]
    }
  }
}
4

D'Verbindung mat verschiddene Modeller benotzen

Späichert d'Serverlëscht, maacht „Plugins“ op an aktivéiert d'MCP-Tools vu AnythingLLM 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 AnythingLLM 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 AnythingLLM MCP Server?
AnythingLLM MCP Server
Jo. Ech hunn et gelies.
Dat hunn ech mat AnythingLLM MCP Server fonnt.

Heefeg gestallte Froen

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

AnythingLLM 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 AnythingLLM 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 AnythingLLM 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 AnythingLLM 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 AnythingLLM 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 AnythingLLM MCP Server MCP mat TypingMind?

AnythingLLM 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 AnythingLLM MCP Server MCP an TypingMind zur Verfügung?

AnythingLLM MCP Server stellt 38 MCP-Tools 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 AnythingLLM 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 AnythingLLM 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 👇