Skip to main content
Glama
box-community

MCP Server Box

Box MCP 服务器

[!WARNING] 此存储库已停止维护。 Box 现在提供官方支持的托管式 MCP 服务器,具有最佳体验和完整功能。 请迁移至托管式 MCP 服务器:设置 Box MCP 服务器 →

快速入门

克隆存储库:

git clone https://github.com/box-community/mcp-server-box.git
cd mcp-server-box

可选但推荐使用 uv 安装以进行虚拟环境和依赖管理:

Homebrew (macOS)

brew install uv

WinGet (Windows)

winget install --id=astral-sh.uv  -e

在 macOS 和 Linux 上

curl -LsSf https://astral.sh/uv/install.sh | sh

在 Windows 上

powershell -ExecutionPolicy ByPass -c "irm https://astral.sh/uv/install.ps1 | iex"

设置虚拟环境并安装依赖:

uv sync

设置环境变量:

.env 文件或系统环境变量中设置以下环境变量以进行 Box 身份验证。

有关全面的身份验证配置选项,请参阅 身份验证指南

使用带有 Box 应用的 OAuth2.0

BOX_CLIENT_ID = YOUR_CLIENT_ID
BOX_CLIENT_SECRET = YOUR_CLIENT_SECRET
BOX_REDIRECT_URL = http://localhost:8000/callback

# MCP Server Authentication (for HTTP transports)
BOX_MCP_SERVER_AUTH_TOKEN = YOUR_BOX_MCP_SERVER_AUTH_TOKEN
OAUTH_PROTECTED_RESOURCES_CONFIG_FILE = .oauth-protected-resource.json

注意

  • 当使用 --mcp-auth-type=token 时,BOX_MCP_SERVER_AUTH_TOKEN 用于向 MCP 服务器验证 MCP 客户端(与 Box 身份验证无关)

以 STDIO 模式运行 MCP 服务器:

uv run src/mcp_server_box.py

Related MCP server: Alfresco MCP Server

Box 社区 MCP 服务器工具

以下是可用工具的摘要:

可用工具

描述

box_tools_ai

基于 AI 的文件和中心查询

box_tools_collaboration

管理文件/文件夹协作

box_tools_docgen

文档生成和模板管理

box_tools_files

文件操作(读取、上传、下载)

box_tools_folders

文件夹操作(列出、创建、删除、更新)

box_tools_generic

通用 Box API 实用工具

box_tools_groups

组管理和查询

box_tools_metadata

元数据模板和实例管理

box_tools_search

搜索文件和文件夹

box_tools_shared_links

文件/文件夹/网页链接的共享链接管理

box_tools_tasks

任务和任务分配管理

box_tools_users

用户管理和查询

box_tools_web_link

网页链接创建和管理

Box 社区 MCP 服务器操作详情

命令行界面参数

要使用特定配置运行 MCP 服务器,可以使用以下命令行参数:

uv run src/mcp_server_box.py --help
usage: mcp_server_box.py [-h] [--transport {stdio,sse,http}] [--host HOST] [--port PORT] [--mcp-auth-type {oauth,token,none}] [--box-auth-type {oauth,ccg,jwt,mcp_client}]

Box Community MCP Server

options:
  -h, --help            show this help message and exit
  --transport {stdio,sse,http}
                        Transport type (default: stdio)
  --host HOST           Host for SSE/HTTP transport (default: localhost)
  --port PORT           Port for SSE/HTTP transport (default: 8005)
  --mcp-auth-type {oauth,token,none}
                        Authentication type for MCP server (default: token)
  --box-auth-type {oauth,ccg,jwt,mcp_client}
                        Authentication type for Box API (default: oauth)

有关身份验证类型、配置和用例的详细信息,请参阅 身份验证指南

Claude Desktop 配置

STDIO 模式

编辑您的 claude_desktop_config.json

code ~/Library/Application\ Support/Claude/claude_desktop_config.json

添加配置:

{
    "mcpServers": {
        "mcp-server-box": {
            "command": "uv",
            "args": [
                "--directory",
                "/path/to/mcp-server-box",
                "run",
                "src/mcp_server_box.py"
            ]
        }
    }
}

如果 Claude 正在运行,请重启它。

HTTP 模式

假设您的 MCP 服务器运行在 https://mcp.myserver.com/mcp

  1. 转到 Claude -> 设置 -> 连接器

  2. 选择 添加自定义连接器

  3. 配置:

    1. 给它起个名字

    2. 输入 URL,例如 https://mcp.myserver.com/mcp

    3. 可选地输入 client idclient secret

  4. 点击添加

  5. 点击连接。OAuth 流程应该会启动。完成该流程

  6. 回到 Claude,点击配置。您应该能看到所有可用的工具。

Install Server
A
license - permissive license
B
quality
F
maintenance

Maintenance

Maintainers
Response time
1wRelease cycle
11Releases (12mo)
Commit activity
Issues opened vs closed

Resources

Unclaimed servers have limited discoverability.

Looking for Admin?

If you are the server author, to access and configure the admin panel.

Related MCP Servers

  • A
    license
    B
    quality
    B
    maintenance
    Python-based server that provides AI-native access to Alfresco content management operations through the Model Context Protocol, enabling search, document lifecycle management, version control, and other content operations.
    15
    14
    Apache 2.0
  • A
    license
    Not graded
    quality
    D
    maintenance
    A Python-based MCP server that enables document-based question answering by processing PDF, TXT, and Markdown files through OpenAI's API. It provides hallucination-free responses based strictly on document content using semantic search and includes a web interface for management.
    MIT
  • A
    license
    Not graded
    quality
    D
    maintenance
    A Python-based server for managing and analyzing code context for AI-assisted development. Provides real-time code analysis, project structure analysis, dependency tracking, and secure API endpoints.
    15
    MIT

View all related MCP servers

Related MCP Connectors

  • A comprehensive Model Context Protocol (MCP) server that enables AI assistants to interact with yo…

  • Securely search and manage workspace context files for AI agents and teams.

  • GibsonAI MCP server: manage your databases with natural language

View all MCP Connectors

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/box-community/mcp-server-box'

If you have feedback or need assistance with the MCP directory API, please join our Discord server