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
      -