RA

raqueljezweb/anythingllm-mcp-server

开发工具

本页由 AI 翻译,技术细节请以原文为准。 查看原文

16 stars 15 forks 质量 65 趋势 21MIT

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

概览

An MCP (Model Context Protocol) server that enables seamless integration between AnythingLLM and MCP-compatible clients like TypingMind, Claude Desktop, and more. - 🚀 : Access all AnythingLLM features through MCP - 💬 : Create, update, delete, list workspaces and manage their settings - 🤖 : Send messages, manage chat history, and stream responses - 📄 : Upload, list, delete documents, process URLs, and manage vectors - 🔍 : Embed text/webpages and search within workspaces - 👥 : Create, update, delete users and manage permissions - 🔑 : Programmatically manage API keys - ⚙️ : Configure LLM providers, vector databases, and system settings - 🤖 : Create and manage AI agents with custom prompts and tools - 📊 : Access system information and statistics - 🔐 : API key-based authentication with environment variable support - Node.

README

以下为原文 README 节选,完整内容请查看原文。

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

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

Option 2: Global Installation

npm install -g anythingllm-mcp-server

Option 3: Local Installation

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:

    {
     "mcpServers": {
       "anythingllm": {
         "command": "npx",
         "args": ["-y", "[email protected]"]
        }
      }
    }
    
  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’”
在 GitHub 查看完整 README

安装

npx -y [email protected]
新手?先看 mcpskill.org 教程 →

配置

{ "mcpServers": { "anythingllm": { "command": "npx", "args": ["-y", "[email protected]"] } } }