Kernel MCP Server 是一个 Model Context Protocol (MCP) 服务器,它为 AI 助手提供对 Kernel 平台 工具的安全访问权限和浏览器自动化功能。借助此服务器,AI 助手能够在云端部署和管理 Kernel 应用程序,还能启动并控制无头 Chromium 会话以实现网页自动化操作。
🌐 您可以直接在 https://mcp.onkernel.com/mcp 使用,无需进行安装!
准备尝试 Kernel,但还没有看到任何应用程序? 没问题!按照以下步骤开始:
使用下面的 设置说明 将 Kernel MCP 服务器安装到您喜欢的 MCP 客户端。
连接后,只需在 MCP 客户端聊天中询问:
"How do I get a Kernel sample app set up locally?"
您的 AI 助手将使用 search_docs 工具为您获取最新的快速入门说明,并指导您设置第一个 Kernel 应用程序!
在本地拥有示例应用程序后,询问您的助手:
"Deploy my sample app to Kernel"
注意: 请耐心等待,直到所有工具参数完全生成后再运行工具调用。
然后进行测试:
"Run my app and get the title from onkernel.com"
search_docs、deploy_app 和 invoke_action 的强大功能。您的 AI 助手将帮助您:
search_docs)deploy_app)invoke_action)create_browser)list_deployments, get_deployment)首先,使用 https://mcp.onkernel.com/mcp 将 Kernel MCP 服务器添加到您喜欢的 MCP 兼容客户端。以下是流行客户端的设置说明:
Kernelhttps://mcp.onkernel.com/mcp打开 ~/Library/Application Support/Claude/claude_desktop_config.json 并添加:
{
"mcpServers": {
"kernel": {
"command": "npx",
"args": ["-y", "mcp-remote", "https://mcp.onkernel.com/mcp"]
}
}
}
重启 Claude 桌面应用程序。
claude mcp add --transport http kernel https://mcp.onkernel.com/mcp
# 然后,在 REPL 中:
/mcp # 进行身份验证
添加到 Cursor
{
"mcpServers": {
"kernel": {
"url": "https://mcp.onkernel.com/mcp"
}
}
}
添加到 Goose
...。高级设置。扩展 下,点击 添加自定义扩展。添加自定义扩展 模态框中,输入:
Streaming HTTPkernelKernel通过 MCP 访问 Kernel 的基于云的浏览器https://mcp.onkernel.com/mcp300添加 按钮。{
"mcpServers": {
"kernel": {
"command": "npx",
"args": ["-y", "mcp-remote", "https://mcp.onkernel.com/mcp"]
}
}
}
npx -y mcp-remote https://mcp.onkernel.com/mcp
{
"mcpServers": {
"kernel": {
"command": "npx",
"args": ["-y", "mcp-remote", "https://mcp.onkernel.com/mcp"]
}
}
}
打开 settings.json 并添加:
{
"context_servers": {
"kernel": {
"command": {
"path": "npx",
"args": ["-y", "mcp-remote", "https://mcp.onkernel.com/mcp"],
"env": {}
},
"settings": {}
}
}
}
许多其他支持 MCP 的工具接受:
npx-y mcp-remote https://mcp.onkernel.com/mcpHuman: I have a Kernel Playwright automation script open in my editor. Can you deploy it to Kernel?
Assistant: I'll read your local files and deploy them to Kernel for you.
[Uses deploy_app tool to upload your code and create a cloud deployment]
Human: Run my web-scraper app to get data from reddit.com
Assistant: I'll execute your web-scraper action with reddit.com as the target.
[Uses invoke_action tool to run your deployed app in the cloud]
Human: Create a stealth browser session that I can reuse for testing login flows
Assistant: I'll create a persistent, stealth-enabled browser that maintains state between uses.
[Uses create_browser tool with persistence and stealth options]
deploy_app - 将 TypeScript 或 Python 应用程序部署到 Kernellist_apps - 列出您的 Kernel 组织中的应用程序invoke_action - 在 Kernel 应用程序中执行操作get_deployment - 获取部署状态和日志list_deployments - 列出所有部署get_invocation - 获取操作调用详情create_browser - 启动新的浏览器会话get_browser - 获取浏览器会话信息delete_browser - 终止浏览器会话list_browsers - 列出活动的浏览器会话search_docs - 搜索 Kernel 平台文档和指南服务器是开源的吗?
是的 — 代码位于 github.com/onkernel/kernel-mcp-server。欢迎浏览代码并贡献代码。为了方便起见,我们在 https://mcp.onkernel.com/mcp 提供了一个托管实例。
Kernel 会存储我的数据吗? 仅存储加密的刷新令牌和认证所需的最少元数据;浏览器状态存储在您的 Kernel 组织中,不会离开您的租户。
如果握手失败怎么办? 在提交支持工单之前,重启您的 MCP 客户端或禁用/重新启用 Kernel 服务器。大多数连接问题通过简单的重启即可解决。
我们欢迎贡献!请查看我们的贡献指南:
bun run lint
bun run format
本项目采用 MIT 许可证 - 有关详细信息,请参阅 LICENSE 文件。
由 Kernel 团队 用心打造