Skip to main content
Glama
anythingllm-mcp

anythingllm-mcp

by moliver28

AnythingLLM MCP 서버

올인원 AI 문서 채팅 플랫폼인 AnythingLLM을 위한 완전한 MCP(Model Context Protocol) 서버입니다.

기능

사람의 개입이 전혀 필요 없습니다. API 키만 설정하면 바로 사용할 수 있습니다.

도구 (총 15개)

시스템

  • check_token - API 토큰 유효성 검사

  • generate_api_key - 새 API 키 생성 (관리자)

워크스페이스

  • list_workspaces - 모든 워크스페이스 목록 조회

  • get_workspace - 워크스페이스 세부 정보 조회

  • create_workspace - 새 워크스페이스 생성

  • update_workspace - 워크스페이스 설정 업데이트

  • delete_workspace - 워크스페이스 삭제

채팅

  • chat - 채팅 메시지 전송 (채팅/쿼리 모드)

  • stream_chat - 채팅 응답 스트리밍

문서

  • upload_document - 워크스페이스에 문서 업로드

  • update_embeddings - 워크스페이스 임베딩 관리

  • list_workspace_documents - 워크스페이스 문서 목록 조회

스레드

  • list_threads - 워크스페이스 스레드 목록 조회

  • get_thread - 스레드 세부 정보 조회

  • delete_thread - 스레드 삭제

시스템 및 호환성

  • get_system_env - 시스템 구성 조회

  • openai_chat_completion - OpenAI 호환 엔드포인트

Related MCP server: AnythingLLM MCP Server

빠른 시작

1. 설치

npm install -g anythingllm-mcp

2. API 키 설정

AnythingLLM에서 API 키를 가져오세요: 설정 > 개발자 API

export ANYTHING_LLM_API_KEY="your-api-key-here"
export ANYTHING_LLM_BASE="http://localhost:3001/api/v1"  # optional, default

3. OpenCode에 추가

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. 모든 세션에서 사용

이제 도구를 사용할 수 있습니다. 예시:

> Use the chat tool to ask AnythingLLM about my documents

개발

git clone https://github.com/moliv/anythingllm-mcp.git
cd anythingllm-mcp
npm install
npm run build

요구 사항

  • AnythingLLM 실행 중 (로컬 또는 원격)

  • AnythingLLM에서 발급받은 유효한 API 키

  • Node.js 18 이상

라이선스

MIT

Available Tools

17 tools
chatC

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

    C2.9/5.0

    Scored across 17 tools

    Disambiguation5/5

    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.

    Naming Consistency4/5

    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.

    Tool Count5/5

    17 tools cover workspace, document, thread, chat, and admin operations without feeling excessive. The scope matches the server's purpose well.

    Completeness4/5

    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

    ActivityInactive
    ResponsivenessOutdated data

    Related MCP Connectors

    Related MCP Servers

    • A
      license
      Not graded
      quality
      D
      maintenance
      MCP server that provides tools to interact with the LiteLLM proxy API, enabling LLM completions, embeddings, image generation, and admin operations.
      MIT
    • A
      license
      A
      quality
      C
      maintenance
      Enables MCP-compatible clients to interact with AnythingLLM, providing tools for workspace management, chat and thread operations, document operations, vector search, and system inspection.
      34
      8
      MIT
    • F
      license
      Not graded
      quality
      D
      maintenance
      MCP server for Rocket.Chat, enabling AI agents to interact with Rocket.Chat workspaces via tools like listing users, sending messages, and managing channels.
      2
      -