anythingllm-mcp
AnythingLLM MCP-Server
Vollständiger MCP-Server (Model Context Protocol) für AnythingLLM – die All-in-One-KI-Dokumenten-Chat-Plattform.
Funktionen
Keine menschliche Interaktion erforderlich. Einfach API-Schlüssel festlegen und loslegen.
Tools (insgesamt 15)
System
check_token- API-Token validierengenerate_api_key- Neuen API-Schlüssel generieren (Admin)
Arbeitsbereiche (Workspaces)
list_workspaces- Alle Arbeitsbereiche auflistenget_workspace- Details eines Arbeitsbereichs abrufencreate_workspace- Neuen Arbeitsbereich erstellenupdate_workspace- Einstellungen eines Arbeitsbereichs aktualisierendelete_workspace- Einen Arbeitsbereich löschen
Chat
chat- Chat-Nachricht senden (Chat-/Abfragemodus)stream_chat- Chat-Antwort streamen
Dokumente
upload_document- Dokument in Arbeitsbereich hochladenupdate_embeddings- Embeddings des Arbeitsbereichs verwaltenlist_workspace_documents- Dokumente des Arbeitsbereichs auflisten
Threads
list_threads- Threads des Arbeitsbereichs auflistenget_thread- Details eines Threads abrufendelete_thread- Einen Thread löschen
System & Kompatibilität
get_system_env- Systemkonfiguration abrufenopenai_chat_completion- OpenAI-kompatibler Endpunkt
Schnellstart
1. Installation
npm install -g anythingllm-mcp2. API-Schlüssel festlegen
Erhalten Sie Ihren API-Schlüssel von AnythingLLM: Einstellungen > Entwickler-API
export ANYTHING_LLM_API_KEY="your-api-key-here"
export ANYTHING_LLM_BASE="http://localhost:3001/api/v1" # optional, default3. Zu OpenCode hinzufügen
Fügen Sie dies zu Ihrer opencode.json hinzu:
{
"$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. In jeder Sitzung verwenden
Die Tools sind jetzt verfügbar. Beispiel:
> Use the chat tool to ask AnythingLLM about my documentsEntwicklung
git clone https://github.com/moliv/anythingllm-mcp.git
cd anythingllm-mcp
npm install
npm run buildAnforderungen
AnythingLLM läuft (lokal oder remote)
Gültiger API-Schlüssel von AnythingLLM
Node.js 18+
Lizenz
MIT
Resources
Unclaimed servers have limited discoverability.
Looking for Admin?
If you are the server author, to access and configure the admin panel.
Latest Blog Posts
MCP directory API
We provide all the information about MCP servers via our MCP API.
curl -X GET 'https://glama.ai/api/mcp/v1/servers/moliver28/anythingllm-mcp'
If you have feedback or need assistance with the MCP directory API, please join our Discord server