Bastrio
Gérez les serveurs distants, les terminaux SSH, les fichiers, les bases de données et les proxys avec un accès limité et des approbations.
Serveur MCP hébergé
npx add-mcp 'https://bastr.io/api/mcp'S’installe dans Claude Code, Codex, Cursor et plus
Documentation
Get connected
- Sign in to your Bastrio workspace → MCP API keys.
- Create a key with the permissions and expiry your client needs. Save the key when it is displayed; it is shown only once.
- Connect an MCP client using the endpoint above and the header
Authorization: Bearer <your-key>. In a Registry installation prompt, the Authorization value must include theBearerprefix. - Call
identity.getfirst, then discover available tools withtools/list. Your permissions determine the visible tools.
Claude Code
Set BASTRIO_MCP_API_KEY securely in your shell environment, then run:
claude mcp add --transport http bastrio https://bastr.io/api/mcp --header "Authorization: Bearer $BASTRIO_MCP_API_KEY"
Other MCP clients
Use the client's remote HTTP MCP settings with the endpoint and Authorization header. A typical configuration is:
{
"mcpServers": {
"bastrio": {
"url": "https://bastr.io/api/mcp",
"headers": {
"Authorization": "Bearer <your-key>"
}
}
}
}
Client configuration formats vary. Use your client's secure secret storage where available. An HTTP 401 response without credentials is expected. OAuth discovery is also available for clients that support interactive authorization.
Permissions and approvals
Bastrio requires an account and an authorized workspace; service limits or charges follow your account plan. Grant only the scopes you need. When a tool returns approval_required, review the supplied approval link and follow the returned operation instructions. Revoke keys from the same workspace page.
Do not share keys in chat, screenshots, public configurations or source control. Registry publication makes the service discoverable; it does not grant access to your servers.
中文接入说明
Bastrio MCP 是托管的远程管理服务,让 AI 在授权范围内管理服务器、SSH 终端、文件、数据库和代理。需要 Bastrio 账号和有权限的工作区,额度与费用以账号方案为准。
- 登录 工作区 → MCP API 密钥 ,创建所需权限及有效期的密钥,并保存仅显示一次的完整密钥。
- 在支持远程 HTTP MCP 的客户端填写
https://bastr.io/api/mcp;请求头填写Authorization: Bearer <你的密钥>。 - 如果通过 Registry 安装,Authorization 输入框必须填写完整的
Bearer前缀和密钥。上面的客户端配置示例使用占位符,不包含真实密钥。 - 先调用
identity.get,再通过tools/list发现当前密钥可用的工具。收到approval_required时,打开返回的审批链接并按操作说明继续。
未携带凭据时返回 HTTP 401 属于正常鉴权行为。此条目发布的是现有托管端点;独立开源 MCP 服务目前尚未提供可执行发行包。