
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
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
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
-
Go to TypingMind.com
-
Click on Settings → MCP Servers
-
In the MCP configuration editor, add the AnythingLLM server:
{ "mcpServers": { "anythingllm": { "command": "npx", "args": ["-y", "[email protected]"] } } } -
Click Save - TypingMind will restart the MCP servers
-
Look for the “Connected” status
First Time Usage
After the server connects, initialize it with your AnythingLLM credentials:
-
In the chat, type:
Use the initialize_anythingllm tool with apiKey: "your-api-key" and baseUrl: "http://localhost:3001" -
Replace:
"your-api-key"with your AnythingLLM API key (get it from AnythingLLM → Settings → API Keys)"http://localhost:3001"with your AnythingLLM instance URL
-
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’”
安装
npx -y [email protected]配置
{
"mcpServers": {
"anythingllm": {
"command": "npx",
"args": ["-y", "[email protected]"]
}
}
}