Ivan Cetta

Mcp Client

AI 智慧體v1.0.3
作者:Ivan Cetta更新於 2026-05-11共 4 個版本 · 最新版本釋出於 2026-02-22mcp-client@clawhub_nantes/mcp-client
工具呼叫

據 AlphaMoat 統計,截至 2026-09,Mcp Client 累計下載 3,801 次、獲 1 個星標,在全部 5,078 個 AI 技能中排名第 2,775 位,在「AI 智慧體」分類(969 個)中排名第 550 位。

累計安裝
114
累計下載
3801
星標
1
全站排名
#2,775
全站前 55% · 「AI 智慧體」前 57%
平台累計安裝累計下載星標評論
ClawHub ↗11435701-
SkillHub ↗11438011—

各平台的計數口徑不同,統計時間不一致。

這個技能是做什麼的

該客戶端可連線 MCP 伺服器、列出工具、呼叫工具、讀取資源並檢視提示模板;資源可能包括檔案、資料庫和 API。僅連線受信任的服務,呼叫前先檢查可用工具和資源 URI;使用 HTTPS,並避免把 API 金鑰直接放在命令列引數中。

資料釋出於 2026-10-29

可以用來做什麼

  • 連線 MCP 伺服器並檢視工具列表
  • 呼叫服務公開的工具
  • 讀取受信任服務的資源或提示模板

什麼時候用

  • 需要在代理中接入受信任的 MCP 服務時
  • 需要審查伺服器提供的工具和資源時

示例提示詞

以下是根據技能文件生成的示例,不代表實際執行結果。

連線我指定的受信任 HTTPS MCP 伺服器,先列出工具和資源,不要呼叫任何工具。
讀取這個資源 URI 前先說明伺服器來源和它可能暴露的資料;不要顯示 API 金鑰。

月度資料趨勢

累計下載3801
1481272739732026-03 · 累計下載 16532026-05 · 累計下載 27572026-06 · 累計下載 29662026-07 · 累計下載 33862026-08 · 累計下載 34922026-09 · 累計下載 380126-0326-09
星標1
0112026-03 · 星標 -2026-05 · 星標 12026-06 · 星標 12026-07 · 星標 12026-08 · 星標 12026-09 · 星標 126-0326-09

2026-09 起統計方法調整:同名技能按作者分別統計,並覆蓋全部技能。圖中虛線為調整前的月份,與之後的資料不直接比較,也不計算跨越調整的增長。

月份累計下載環比星標
2026-093801—1
2026-083492+3.1%1
2026-073386+14.2%1
2026-062966+7.6%1
2026-052757—1
2026-031653—-

SKILL.md 原文

以下是作者釋出的原始檔案,按純文字顯示,本站未做修改或稽核;其中的連結不可點選,命令請核實後再執行。抓取於 2026-10-23。

2.8 KB · ClawHub v1.0.3
---
name: mcp-client
version: 1.0.0
description: Model Context Protocol (MCP) client - connect to tools, data sources and services
metadata: {"openclaw": {"emoji": "🔌", "category": "integration", "requires": {"bins": ["python"], "pip": ["requests"]}, "homepage": "https://modelcontextprotocol.io"}}
---

# MCP Client Skill

Implementation of the Model Context Protocol (MCP) client for connecting to tools and data sources.
展開全部(共 117 行)

## What it does

- **Connect to MCP Servers** - Access tools and resources from MCP-enabled services
- **Tool Invocation** - Call tools exposed by MCP servers
- **Resource Access** - Read files, databases, APIs
- **Prompt Templates** - Use structured prompts from MCP servers

## Installation

```powershell
# Install Python dependencies (requests is the only required dependency)
pip install requests
```

## Usage

### Connect to MCP Server

```powershell
.\mcp.ps1 -Action connect -ServerUrl "https://mcp-server.com" -ApiKey "your-key"
```

### List Available Tools

```powershell
.\mcp.ps1 -Action tools -ServerUrl "https://mcp-server.com"
```

### Call a Tool

```powershell
.\mcp.ps1 -Action call -ServerUrl "https://mcp-server.com" -ToolName "search" -Arguments '{"query": "AI agents"}'
```

### List Resources

```powershell
.\mcp.ps1 -Action resources -ServerUrl "https://mcp-server.com"
```

### Read a Resource

```powershell
.\mcp.ps1 -Action read -ServerUrl "https://mcp-server.com" -ResourceUri "file:///data/config.json"
```

## MCP Concepts

- **MCP Server**: Service that exposes tools, resources, and prompts
- **Tools**: Functions the LLM/agent can call
- **Resources**: Data sources (files, APIs, DBs)
- **Prompts**: Pre-defined prompt templates

## API Reference

```
POST /mcp/connect     - Connect to server
GET  /mcp/tools       - List available tools
POST /mcp/call       - Invoke a tool
GET  /mcp/resources  - List resources
GET  /mcp/read       - Read resource
GET  /mcp/prompts    - List prompt templates
```

## Examples

### Python Usage

```python
from mcp_client import MCPClient

client = MCPClient("https://mcp-server.com", api_key="key")

# List tools
tools = client.list_tools()
print(tools)

# Call tool
result = client.call_tool("search", {"query": "quantum"})
print(result)

# Read resource
data = client.read_resource("file:///config.json")
print(data)
```

## ⚠️ Security Warnings

### file:// URI Risk
The MCP protocol allows `file:///path` URIs to read files from the server. **Only connect to trusted MCP servers.** A malicious server could exfiltrate sensitive files.

### Best Practices
- Only use MCP servers you control or trust
- Don't connect to random public MCP servers
- Review what tools/resources are available before using

## Requirements
- Review what tools/resources are available before using

- Python 3.8+
- requests library

## License

MIT

「AI 智慧體」分類下的熱門技能

資料月份:2026-09 · 下載/星標/安裝數聚合自公開技能註冊庫(ClawHub、SkillHub),按月更新。口徑說明見資料方法。