AnythingLLM MCP Server
Click on "Deploy Server".
Wait a few minutes for the server to deploy. Once ready, it will show a "Started" state.
In the chat, type
@followed by the MCP server name and your instructions, e.g., "@AnythingLLM MCP Server list all my workspaces"
That's it! The server will respond to your query, and you can continue using it as needed.
Here is a step-by-step guide with screenshots.
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
Related MCP server: AnythingLLM MCP Server
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-serverOption 3: Local Installation
git clone https://github.com/yourusername/anythingllm-mcp-server.git
cd anythingllm-mcp-server
npm installConfiguration
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", "anythingllm-mcp-server@2.0.0"] } } }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'"
"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
{
"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-keysbaseUrl: Your AnythingLLM instance URL (default:
http://localhost:3001)
You can also set these as environment variables:
ANYTHINGLLM_API_KEY: Your API keyANYTHINGLLM_BASE_URL: Your instance URL
Available Tools
Initialization
Tool | Description | Parameters |
| Initialize the AnythingLLM client with API credentials |
|
Workspace Management
Tool | Description | Parameters |
| Get all workspaces | None |
| Get details of a specific workspace |
|
| Create a new workspace |
|
| Update workspace settings |
|
| Remove a workspace |
|
| Get settings for a specific workspace |
|
| Update workspace-specific settings |
|
Chat Operations
Tool | Description | Parameters |
| Send messages to a workspace |
|
| Get chat history for a workspace |
|
| Clear all chat history for a workspace |
|
Document Management
Tool | Description | Parameters |
| View all documents in a workspace |
|
| Remove a document from a workspace |
|
| Process a document from a URL |
|
| Get vector embeddings for a document |
|
Embedding & Search
Tool | Description | Parameters |
| Embed text directly into a workspace |
|
| Embed a webpage into a workspace |
|
| Search within a workspace |
|
User Management
Tool | Description | Parameters |
| List all users in the system | None |
| Create a new user |
|
| Update an existing user |
|
| Delete a user |
|
API Key Management
Tool | Description | Parameters |
| List all API keys | None |
| Create a new API key |
|
| Delete an API key |
|
System Administration
Tool | Description | Parameters |
| View system configuration | None |
| Modify system settings |
|
| Get general system information | None |
| Get system statistics | None |
LLM Provider Management
Tool | Description | Parameters |
| List available LLM providers | None |
| Update LLM provider configuration |
|
Vector Database Management
Tool | Description | Parameters |
| Get vector database configuration | None |
| Update vector database configuration |
|
Agent Management
Tool | Description | Parameters |
| List all available agents | None |
| Create a new agent |
|
| Update an existing agent |
|
| Delete an agent |
|
| Invoke an agent with input |
|
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_workspacesto 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.
Fork the repository
Create your feature branch (
git checkout -b feature/AmazingFeature)Commit your changes (
git commit -m 'Add some AmazingFeature')Push to the branch (
git push origin feature/AmazingFeature)Open a Pull Request
License
This project is licensed under the MIT License - see the LICENSE file for details.
Support
π Issues: GitHub Issues
π AnythingLLM Docs: docs.useanything.com
π¬ AnythingLLM Community: Discord
Acknowledgments
AnythingLLM by Mintplex Labs
Model Context Protocol by Anthropic
TypingMind for MCP support
Made with β€οΈ for the AnythingLLM community
Available Tools
38 toolschat_with_workspaceC
Send a chat message to a workspace
Inputs: slug (required), message (required), mode.
clear_chat_historyC
Clear all chat history for a workspace
Inputs: slug (required).
create_agentC
Create a new agent
Inputs: name (required), systemPrompt, tools.
create_api_keyC
Create a new API key
Inputs: name (required).
create_userC
Create a new user
Inputs: username (required), password (required), role.
create_workspaceC
Create a new workspace
Inputs: name (required).
delete_agentC
Delete an agent
Inputs: agentId (required).
delete_api_keyC
Delete an API key
Inputs: keyId (required).
delete_documentC
Delete a document from a workspace
Inputs: slug (required), documentId (required).
delete_userC
Delete a user
Inputs: userId (required).
delete_workspaceC
Delete a workspace
Inputs: slug (required).
embed_textC
Embed text directly into a workspace
Inputs: slug (required), texts (required).
embed_webpageC
Embed a webpage into a workspace
Inputs: slug (required), url (required).
get_chat_historyC
Get chat history for a workspace
Inputs: slug (required), limit.
get_document_vectorsC
Get vector embeddings for a document
Inputs: slug (required), documentId (required).
get_system_infoC
Get general system information
Inputs: no named parameters.
get_system_settingsC
Get system settings
Inputs: no named parameters.
get_system_statsC
Get system statistics
Inputs: no named parameters.
get_vector_database_infoC
Get vector database configuration
Inputs: no named parameters.
get_workspaceC
Get details of a specific workspace
Inputs: slug (required).
get_workspace_settingsC
Get settings for a specific workspace
Inputs: slug (required).
initialize_anythingllmC
Initialize the AnythingLLM client with API credentials
Inputs: apiKey (required), baseUrl.
invoke_agentC
Invoke an agent with input
Inputs: agentId (required), input (required).
list_agentsB
List all available agents
Inputs: no named parameters.
list_api_keysB
List all API keys
Inputs: no named parameters.
list_documentsB
List all documents in a workspace
Inputs: slug (required).
list_llm_providersB
List available LLM providers
Inputs: no named parameters.
list_usersB
List all users in the system
Inputs: no named parameters.
list_workspacesB
List all available workspaces in AnythingLLM
Inputs: no named parameters.
process_document_urlC
Process a document from a URL
Inputs: slug (required), url (required).
search_workspaceC
Search within a workspace
Inputs: slug (required), query (required), limit.
update_agentC
Update an existing agent
Inputs: agentId (required), updates (required).
update_llm_providerC
Update LLM provider configuration
Inputs: provider (required), apiKey, model.
update_system_settingsC
Update system settings
Inputs: settings (required).
update_userC
Update an existing user
Inputs: userId (required), updates (required).
update_vector_databaseC
Update vector database configuration
Inputs: provider (required), config (required).
update_workspaceC
Update an existing workspace
Inputs: slug (required), updates (required).
update_workspace_settingsC
Update settings for a specific workspace
Inputs: slug (required), settings (required).
Tool Schema Changelog
Recent tool additions, removals, and schema changes observed during successful MCP inspections.
Loading tool schema changelogβ¦
TDQS
Scored across 38 tools
Most tools have distinct purposes targeting specific resources (e.g., workspaces, agents, users) and actions (CRUD operations). However, some potential overlap exists between workspace/document embedding tools (embed_text, embed_webpage, process_document_url) and between various 'get_' information tools (system_info, system_stats, vector_database_info), which could cause minor confusion.
Tool names follow a highly consistent verb_noun pattern throughout, using snake_case exclusively. Examples include create_workspace, delete_user, update_agent, list_documents, get_system_info, and embed_text. This predictability makes the toolset easy to navigate and understand.
With 38 tools, the count feels heavy for a single server, bordering on excessive. While the domain (AnythingLLM management) is broad, many tools could potentially be consolidated (e.g., multiple embedding methods) or grouped into subservers. This may overwhelm agents with choice complexity.
The toolset provides comprehensive coverage for the AnythingLLM domain, including full CRUD operations for core resources (workspaces, agents, users, documents), system configuration (settings, LLM providers, vector database), workspace interactions (chat, search, embedding), and administrative functions. No obvious gaps are present for the stated purpose.
Maintenance
Related MCP Connectors
Manage Chatbase agents, sources, conversations and help-desk tickets.
Build and run agents and automations across hundreds of apps using natural language.
Create and manage AI agents that collaborate and solve problems through natural language interactiβ¦
Connect assistants to your workspace knowledge, skills, and work tools.
Related MCP Servers
- AlicenseAqualityCmaintenanceEnables interaction with an Airbyte instance through natural language, supporting workspaces, sources, destinations, connections, jobs, logs, tags, streams, and connector definitions.365Apache 2.0
- AlicenseAqualityCmaintenanceEnables MCP-compatible clients to interact with AnythingLLM, providing tools for workspace management, chat and thread operations, document operations, vector search, and system inspection.347MIT
- AlicenseAqualityBmaintenanceEnables managing and controlling AnythingLLM instances through MCP, providing tools to list, create, and delete workspaces, retrieve system environment settings, and get vector counts.51MIT
- AlicenseAqualityCmaintenanceEnables AI assistants to search and ask questions about documents stored in AnythingLLM workspaces through MCP tools.4MIT