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 uvWinGet (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.pyRelated MCP server: Alfresco MCP Server
Box 社区 MCP 服务器工具
以下是可用工具的摘要:
可用工具 | 描述 |
基于 AI 的文件和中心查询 | |
管理文件/文件夹协作 | |
文档生成和模板管理 | |
文件操作(读取、上传、下载) | |
文件夹操作(列出、创建、删除、更新) | |
通用 Box API 实用工具 | |
组管理和查询 | |
元数据模板和实例管理 | |
搜索文件和文件夹 | |
文件/文件夹/网页链接的共享链接管理 | |
任务和任务分配管理 | |
用户管理和查询 | |
网页链接创建和管理 |
Box 社区 MCP 服务器操作详情
命令行界面参数
要使用特定配置运行 MCP 服务器,可以使用以下命令行参数:
uv run src/mcp_server_box.py --helpusage: 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
转到 Claude -> 设置 -> 连接器
选择
添加自定义连接器配置:
给它起个名字
输入 URL,例如
https://mcp.myserver.com/mcp可选地输入
client id和client secret
点击添加
点击连接。OAuth 流程应该会启动。完成该流程
回到 Claude,点击配置。您应该能看到所有可用的工具。
Maintenance
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
- FlicenseNot gradedqualityDmaintenanceA local server that enables Google's Gemini AI to safely read, write, and list files within a controlled sandbox folder on your computer through natural language chat interactions.5
- AlicenseBqualityBmaintenancePython-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.1514Apache 2.0
- AlicenseNot gradedqualityDmaintenanceA 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
- AlicenseNot gradedqualityDmaintenanceA 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.15MIT
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
Appeared in Searches
Latest Blog Posts
- Who's Calling? MCP Hosts Are an Identity Blind Spot (And the Spec Knows It)By Om-Shree-0709 on .mcpAgent IdentityOAuth 2.1
- Your AI Chatbot Just Exposed Your CEO's Salary to an InternBy Om-Shree-0709 on .Agent IdentityMCP SecurityOAuth Delegation
- Why MCP Servers Need Execution Sandboxing (And Why Your Current Stack Isn't Enough)By Om-Shree-0709 on .Agentic AiPrompt InjectionWebAssembly
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