moliver28

AnythingLLM MCP Server

Community moliver28
Updated

AnythingLLM MCP Server

Complete MCP (Model Context Protocol) server for AnythingLLM - the all-in-one AI document chat platform.

Features

Zero human interaction. Just set your API key and go.

Tools (15 total)

System

  • check_token - Validate API token
  • generate_api_key - Generate new API key (admin)

Workspaces

  • list_workspaces - List all workspaces
  • get_workspace - Get workspace details
  • create_workspace - Create new workspace
  • update_workspace - Update workspace settings
  • delete_workspace - Delete a workspace

Chat

  • chat - Send chat message (chat/query mode)
  • stream_chat - Stream chat response

Documents

  • upload_document - Upload document to workspace
  • update_embeddings - Manage workspace embeddings
  • list_workspace_documents - List workspace documents

Threads

  • list_threads - List workspace threads
  • get_thread - Get thread details
  • delete_thread - Delete a thread

System & Compatible

  • get_system_env - Get system configuration
  • openai_chat_completion - OpenAI-compatible endpoint

Quick Start

1. Install

npm install -g anythingllm-mcp

2. Set API Key

Get your API key from AnythingLLM: Settings > Developer API

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

3. Add to OpenCode

Add to your 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 in Any Session

The tools are now available. Example:

> Use the chat tool to ask AnythingLLM about my documents

Development

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

Requirements

  • AnythingLLM running (local or remote)
  • Valid API key from AnythingLLM
  • Node.js 18+

License

MIT

MCP Server · Populars

MCP Server · New

    Lissy93

    bug-bounties

    ⚔️ A compiled list of companies who have active programs for responsible disclosure. MCP-enabled.

    Community Lissy93
    samvallad33

    Vestige

    Cognitive memory for AI agents — FSRS-6 spaced repetition, 29 brain modules, 3D dashboard, single 22MB Rust binary. MCP server for Claude, Cursor, VS Code, Xcode, JetBrains.

    Community samvallad33
    HarimxChoi

    google-surf-mcp

    ✨Anti-Bot Search MCP: No API Key✨

    Community HarimxChoi
    syncable-dev

    Memtrace

    The missing memory layer for coding agents

    Community syncable-dev
    kunwar-shah

    Claudex

    MCP server with persistent memory + FTS5 search for Claude Code conversation history. Index your ~/.claude/projects/, expose 10 MCP tools, browse via web UI. MIT-licensed.

    Community kunwar-shah