anythingllm-mcp
Servidor MCP de AnythingLLM
Servidor MCP (Model Context Protocol) completo para AnythingLLM, la plataforma de chat de documentos de IA todo en uno.
Características
Sin interacción humana. Solo configura tu clave API y listo.
Herramientas (15 en total)
Sistema
check_token- Validar token de APIgenerate_api_key- Generar nueva clave API (administrador)
Espacios de trabajo
list_workspaces- Listar todos los espacios de trabajoget_workspace- Obtener detalles del espacio de trabajocreate_workspace- Crear nuevo espacio de trabajoupdate_workspace- Actualizar configuración del espacio de trabajodelete_workspace- Eliminar un espacio de trabajo
Chat
chat- Enviar mensaje de chat (modo chat/consulta)stream_chat- Transmitir respuesta de chat
Documentos
upload_document- Subir documento al espacio de trabajoupdate_embeddings- Gestionar incrustaciones (embeddings) del espacio de trabajolist_workspace_documents- Listar documentos del espacio de trabajo
Hilos
list_threads- Listar hilos del espacio de trabajoget_thread- Obtener detalles del hilodelete_thread- Eliminar un hilo
Sistema y compatible
get_system_env- Obtener configuración del sistemaopenai_chat_completion- Punto de conexión compatible con OpenAI
Related MCP server: AnythingLLM MCP Server
Inicio rápido
1. Instalar
npm install -g anythingllm-mcp2. Configurar clave API
Obtén tu clave API desde AnythingLLM: Settings > Developer API
export ANYTHING_LLM_API_KEY="your-api-key-here"
export ANYTHING_LLM_BASE="http://localhost:3001/api/v1" # optional, default3. Añadir a OpenCode
Añádelo a tu opencode.json:
{
"$schema": "https://opencode.ai/config.json",
"mcp": {
"anythingllm": {
"type": "local",
"command": ["anythingllm-mcp"],
"environment": {
"ANYTHING_LLM_API_KEY": "your-api-key-here",
"ANYTHING_LLM_BASE": "http://localhost:3001/api/v1"
},
"enabled": true
}
}
}4. Usar en cualquier sesión
Las herramientas ya están disponibles. Ejemplo:
> Use the chat tool to ask AnythingLLM about my documentsDesarrollo
git clone https://github.com/moliv/anythingllm-mcp.git
cd anythingllm-mcp
npm install
npm run buildRequisitos
AnythingLLM en ejecución (local o remoto)
Clave API válida de AnythingLLM
Node.js 18+
Licencia
MIT
Available Tools
17 toolschatC
Send a chat message to a workspace (mode: chat or query)
Inputs: workspace (required), message (required), mode, userId.
check_tokenA
Validate the current API token
Inputs: no named parameters.
create_workspaceC
Create a new workspace
Inputs: name (required), slug, openAiTemp, openAiHistory, +2 more.
delete_threadC
Delete a thread from a workspace
Inputs: workspace (required), threadSlug (required).
delete_workspaceC
Delete a workspace
Inputs: slug (required).
generate_api_keyB
Generate a new API key (admin)
Inputs: no named parameters.
get_system_envB
Get system environment configuration
Inputs: no named parameters.
get_threadC
Get details of a specific thread
Inputs: workspace (required), threadSlug (required).
get_workspaceB
Get details of a specific workspace
Inputs: slug (required).
list_threadsC
List all threads in a workspace
Inputs: workspace (required).
list_workspace_documentsC
List all documents in a workspace
Inputs: slug (required).
list_workspacesB
List all workspaces
Inputs: no named parameters.
openai_chat_completionC
OpenAI-compatible chat completion endpoint (use workspace as model)
Inputs: model (required), messages (required), stream.
stream_chatC
Stream a chat message to a workspace
Inputs: workspace (required), message (required), mode, userId, +1 more.
update_embeddingsC
Add or remove documents from workspace embeddings
Inputs: workspace (required), adds, deletes.
update_workspaceD
Update workspace settings
Inputs: slug (required), name, openAiTemp, openAiHistory, +3 more.
upload_documentC
Upload a document to a workspace
Inputs: workspace (required), filePath (required).
Tool Schema Changelog
Recent tool additions, removals, and schema changes observed during successful MCP inspections.
Loading tool schema changelog…
TDQS
Scored across 17 tools
All tools target distinct operations: chat, workspace, thread, document, and admin functions. Chat variants (chat, stream_chat, openai_chat_completion) differ by mode, and workspace/thread/document tools have clear boundaries.
Most tools follow verb_noun pattern in snake_case (e.g., create_workspace, list_threads). A few like 'chat' and 'openai_chat_completion' deviate slightly, but overall naming is predictable.
17 tools cover workspace, document, thread, chat, and admin operations without feeling excessive. The scope matches the server's purpose well.
CRUD operations are present for workspaces and threads (though thread creation is implicit via chat). Document management includes upload, listing, and embedding updates. Missing explicit delete document but covered via update_embeddings.
Maintenance
Related MCP Connectors
Nifty's MCP server — exposes tasks, projects, messages, and files as tools for AI agents.
MCP server for your apps' tools and custom tools, plus hosted AI agents and approval-gated workflows
An MCP server that provides an API to LLMs to manage their JumpCloud resources.
MCP server for AI dialogue using various LLM models via AceDataCloud
Related MCP Servers
- AlicenseNot gradedqualityDmaintenanceMCP server that provides tools to interact with the LiteLLM proxy API, enabling LLM completions, embeddings, image generation, and admin operations.MIT
- AlicenseAqualityCmaintenanceEnables MCP-compatible clients to interact with AnythingLLM, providing tools for workspace management, chat and thread operations, document operations, vector search, and system inspection.348MIT
- FlicenseNot gradedqualityDmaintenanceMCP server for Rocket.Chat, enabling AI agents to interact with Rocket.Chat workspaces via tools like listing users, sending messages, and managing channels.2-
- 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