MCP桌面客户端 是 AI Skill Hub 本期精选MCP工具之一。综合评分 8.0 分,整体质量较高。我们强烈推荐将其纳入你的 AI 工具库,帮助提升工作效率。
MCP桌面客户端 是一款遵循 MCP(Model Context Protocol)标准协议的 AI 工具扩展。通过 MCP 协议,它可以让 Claude、Cursor 等主流 AI 客户端直接访问和操作外部工具、数据源和服务,实现 AI 能力的无缝扩展。无论是文件操作、数据库查询还是 API 调用,都可以通过自然语言在 AI 对话中直接触发,极大提升生产效率。
MCP桌面客户端 是一款遵循 MCP(Model Context Protocol)标准协议的 AI 工具扩展。通过 MCP 协议,它可以让 Claude、Cursor 等主流 AI 客户端直接访问和操作外部工具、数据源和服务,实现 AI 能力的无缝扩展。无论是文件操作、数据库查询还是 API 调用,都可以通过自然语言在 AI 对话中直接触发,极大提升生产效率。
# 方式一:通过 Claude Code CLI 一键安装
claude skill install https://github.com/http4k/mcp-desktop
# 方式二:手动配置 claude_desktop_config.json
{
"mcpServers": {
"mcp-----": {
"command": "npx",
"args": ["-y", "mcp-desktop"]
}
}
}
# 配置文件位置
# macOS: ~/Library/Application Support/Claude/claude_desktop_config.json
# Windows: %APPDATA%/Claude/claude_desktop_config.json
# 安装后在 Claude 对话中直接使用 # 示例: 用户: 请帮我用 MCP桌面客户端 执行以下任务... Claude: [自动调用 MCP桌面客户端 MCP 工具处理请求] # 查看可用工具列表 # 在 Claude 中输入:"列出所有可用的 MCP 工具"
// claude_desktop_config.json 配置示例
{
"mcpServers": {
"mcp_____": {
"command": "npx",
"args": ["-y", "mcp-desktop"],
"env": {
// "API_KEY": "your-api-key-here"
}
}
}
}
// 保存后重启 Claude Desktop 生效
A command-line desktop client for connecting to MCP (Model Context Protocol) servers via standard input/output (StdIO). This client is designed to work seamlessly with AI assistants and applications that communicate through StdIO, such as Claude and other desktop AI applications.
The http4k MCP Desktop Client serves as a proxy that enables communication between desktop applications and MCP servers. While it works with any MCP-compliant server, it's specially optimized for servers built using the http4k MCP SDK.
http4k-mcp-desktop --url http://localhost:3001/<protocol> [OPTIONS]
| Option | Description | Default |
|---|---|---|
--transport | MCP transport mode: http-stream, http-nonstream, sse (legacy), jsonrpc (non-streaming), websocket (streaming) | http-stream |
--url | URL of the MCP server to connect to (required) | N/A |
--reconnectDelay | Reconnect delay in seconds if disconnected | 0 |
--version | Get the version information for the app | N/A |
At time of writing, the MCP auth standards are in flux, but http4k-mcp-desktop has implemented some standard HTTP mechanisms into the http4k-mcp-desktop.
* This is the OAuth standard which is currently in the post 2025-03-26 draft specification which uses auto discovery of the authentication token using OAuth Protected Resource and OAuth Client Credentials. This requires:
/.well-knwon/oauth-protected-resource)/.well-knwon/oauth-authorization-server)MCP servers built using the http4k MCP SDK do support the above, but other servers may not.
| Option | Description | Format |
|---|---|---|
--apiKey | API key for server authentication | String |
--apiKeyHeader | Custom header name for API key | X-Api-key (default) |
--bearerToken | Bearer token for server authentication | String |
--basicAuth | Basic authentication credentials | <user>:<password> |
--oauthScopes | OAuth scopes to request | Comma-separated list |
--oauthClientCredentials | OAuth client credentials | <client>:<secret> |
To configure Claude Desktop to use the http4k MCP Desktop Client, you'll need to create a JSON configuration file. Note that if you're on mac and installed the app via Brew, it will already be on your path. Here's how to set it up:
config.json file with the following structure:{
"command": "/path/to/http4k-mcp-desktop",
"args": [
"--url",
"http://your-mcp-server:port/mcp"
],
"env": {}
}
2. Adjust the parameters as needed: - Update the path to where you've installed the http4k-mcp-desktop binary. For brew users it's already on your path so just use http4k-mcp-desktop - Set the correct URL and protocol options for your MCP server (see examples) - Add any authentication options required (see examples)
config.json file.Basic MCP Server Connection:
{
"command": "/usr/local/bin/http4k-mcp-desktop",
"args": [
"--url",
"http://localhost:3001/sse"
],
"env": {}
}
With API Key Authentication:
{
"command": "/usr/local/bin/http4k-mcp-desktop",
"args": [
"--url",
"http://localhost:3001/sse",
"--apiKey",
"your-api-key"
],
"env": {}
}
With OAuth Authentication:
{
"command": "/usr/local/bin/http4k-mcp-desktop",
"args": [
"--url",
"http://localhost:3001/sse",
"--oauthTokenUrl",
"http://localhost:3001/token",
"--oauthClientCredentials",
"client:secret"
],
"env": {}
}
http4k-mcp-desktop --transport jsonrpc --url http://localhost:3001/jsonrpc --apiKey your-api-key
This client is specifically designed to work with desktop AI applications that use StdIO for communication. It handles:
This enables seamless connections between desktop AI applications like Claude and remote MCP servers.
The MCP Standard remote protocol is HTTP Streaming, which superceded the previous standard (SSE) in the 2025-03-26 version. http4k has implemented other standard transports into the http4k-mcp-desktop, as these will be more appropriate for distributed/hosted MCP servers.
| Protocol | Standard/Extension | State | Default server path | Setting | Description |
|---|---|---|---|---|---|
| HTTP Non-streaming | MCP Standard | Stateless | http://host/mcp | http-nonstream | Pure HTTP-based streaming communication **Use this setting for Cursor!** |
| HTTP Streaming | MCP Standard | Stateful | http://host/mcp | http-stream | HTTP/SSE-based streaming communication. Supports sessions and replaying/reconnection of stram |
| SSE | MCP (Legacy) | Stateful | http://host/sse | sse | Server-Sent Events, part of HTML5 spec, ideal for streaming data from server to client |
| WebSocket | Protocol Extension | Stateful | http://host/ws | websocket | Full-duplex communication protocol, maintains persistent connection |
| JSON-RPC | Protocol Extension | Stateless | http://host/jsonrpc | jsonrpc | Remote Procedure Call protocol encoded in JSON, request/response model |
--transport http-nonstream)http4k MCP Desktop Client 是一个基于命令行(CLI)的桌面客户端,旨在通过标准输入输出(StdIO)连接到 MCP (Model Context Protocol) 服务器。该工具充当了桌面 AI 应用与 MCP 服务器之间的代理层,能够实现两者间的无缝通信。虽然它兼容任何符合 MCP 标准的服务器,但针对使用 http4k MCP SDK 构建的服务器进行了深度优化,特别适合与 Claude 等桌面级 AI 助手协同工作。
本客户端提供了丰富的传输与安全特性。在传输层,支持 HTTP Streaming、SSE (Server-Sent Events)、JSON-RPC 以及 WebSocket 等多种远程传输模式;在身份验证方面,集成了 API Key、Bearer Token、Basic Auth 以及基于标准自动发现机制的 OAuth 认证;此外,它还具备可自定义的重连策略,并为原生编译的 Kotlin 应用提供了简洁的 StdIO 接口,极大简化了集成难度。
您可以通过命令行直接启动客户端,并指定目标 MCP 服务器的 URL。基本命令格式为 `http4k-mcp-desktop --url <URL> [OPTIONS]`。例如,若要连接到本地运行的 JSON-RPC 服务,请使用 `--transport jsonrpc` 参数并配合相应的 `--apiKey` 进行身份验证。请根据您的服务器协议类型灵活调整参数配置。
客户端通过命令行选项进行配置。核心参数 `--transport` 用于指定 MCP 传输模式,可选值包括 `http-stream`(默认)、`http-nonstream`、`sse`、`jsonrpc` 以及 `websocket`。在身份验证配置上,支持 Basic Auth、Bearer Token、API Key 以及符合 2025-03-26 草案标准的 OAuth 自动发现机制,确保了与不同安全策略服务器的兼容性。
客户端支持通过 JSON-RPC 协议进行通信,并可结合 API Key 进行身份验证。例如,在需要调用受保护的 JSON-RPC 接口时,可以使用如下命令:`http4k-mcp-desktop --transport jsonrpc --url http://localhost:3001/jsonrpc --apiKey your-api-key`,从而实现安全的数据交互。
该客户端专门为通过 StdIO 进行通信的桌面 AI 应用设计。其核心工作流如下:首先,实时读取来自 AI 应用的 stdin 输入;随后,将该输入转发至指定的 MCP 服务器;接着,接收来自服务器的响应数据;最后,将处理后的响应结果通过 StdIO 传回给 AI 应用,从而完成完整的上下文交互闭环。
针对开发者在使用过程中可能遇到的问题,我们提供了针对性解答。例如,在使用 Cursor 等 AI 编辑器安装 MCP 连接时,如果遇到错误提示,建议将传输模式切换为 `http-nonstream`(即使用 `--transport http-nonstream` 参数),以确保与当前编辑器通信机制的兼容性。
开源MCP工具,支持http4k协议,代码质量较高
该工具使用 NOASSERTION 协议,商用场景请仔细阅读协议条款,必要时咨询法律意见。
AI Skill Hub 为第三方内容聚合平台,本页面信息基于公开数据整理,不对工具功能和质量作任何法律背书。
建议在沙箱或测试环境中充分验证后,再部署至生产环境,并做好必要的安全评估。
📄 NOASSERTION — 请查阅原始协议条款了解具体使用限制。
经综合评估,MCP桌面客户端 在MCP工具赛道中表现稳健,质量优秀。如果你已有明确的使用需求,可以直接上手体验;如果还在评估阶段,建议对比同类工具后再做决策。
| 原始名称 | mcp-desktop |
| 原始描述 | 开源MCP工具:http4k MCP Desktop Client。⭐40 · Kotlin |
| Topics | mcpllmmodelcontextprotocolkotlin |
| GitHub | https://github.com/http4k/mcp-desktop |
| License | NOASSERTION |
| 语言 | Kotlin |
收录时间:2026-07-04 · 更新时间:2026-07-04 · License:NOASSERTION · AI Skill Hub 不对第三方内容的准确性作法律背书。
选择 Agent 类型,复制安装指令后粘贴到对应客户端