Skip to main content
Glama
moliver28

anythingllm-mcp

by moliver28

AnythingLLM MCP 服务器

适用于 AnythingLLM(一体化 AI 文档聊天平台)的完整 MCP(模型上下文协议)服务器。

功能

无需人工干预。只需设置您的 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 的端点

快速入门

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

Install Server
F
license - not found
C
quality
C
maintenance

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