← Back to Skills Marketplace
nantes

Mcp Client

by Ivan Cetta · GitHub ↗ · v1.0.3
cross-platform ✓ Security Clean
1904
Downloads
1
Stars
7
Active Installs
4
Versions
Install in OpenClaw
/install mcp-client
Description
Model Context Protocol (MCP) client - connect to tools, data sources and services
README (SKILL.md)

MCP Client Skill

Implementation of the Model Context Protocol (MCP) client for connecting to tools and data sources.

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

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

Usage

Connect to MCP Server

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

List Available Tools

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

Call a Tool

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

List Resources

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

Read a Resource

.\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

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

Usage Guidance
This skill is internally consistent with being an MCP client, but be cautious before connecting to servers you don't control. An MCP server can expose resources including file:// URIs that cause the server to read local files (server-side) and return them — that can lead to data exposure. Practical steps before installing/using: 1) Prefer only trusted or self-hosted MCP servers; 2) Do not provide sensitive API keys to unknown servers; 3) Run the client in an isolated environment if you need to test against unknown servers; 4) Note the documentation mismatch (examples reference mcp.ps1 while the package contains a Python CLI) — verify how you actually invoke the client (python mcp_client.py ...) and review the included Python source if you need assurance; 5) If you require higher assurance, ask the publisher for an official release URL or repository and verify the server spec and any third-party dependencies.
Capability Analysis
Type: OpenClaw Skill Name: mcp-client Version: 1.0.3 The OpenClaw AgentSkills bundle implements a client for the Model Context Protocol (MCP). The code in `mcp_client.py` and the documentation in `SKILL.md` are straightforward, focusing on connecting to a remote MCP server, listing/calling tools, and accessing resources. Both files explicitly warn about the `file://` URI scheme, clarifying that it allows reading local files from the *MCP server* (the remote endpoint), not from the agent's local machine. There is no evidence of malicious intent, data exfiltration from the agent's host, unauthorized execution, persistence mechanisms, or prompt injection attempts against the agent. The skill functions as a legitimate client for a defined protocol.
Capability Assessment
Purpose & Capability
The Python client (mcp_client.py) implements the advertised MCP operations (connect, list tools, call tool, list/read resources, list prompts) and targets the expected /mcp/* endpoints. Requiring Python and the requests library is proportionate to this purpose.
Instruction Scope
SKILL.md shows how to connect, list tools, call tools, and read resources — matching the client's capabilities. However, SKILL.md's examples reference a PowerShell script (./mcp.ps1) that is not included; the provided CLI is a Python program. The documentation correctly warns about file:// URIs (server-side file reads) but the user-facing examples and a mismatch in script names are inconsistent and could confuse users.
Install Mechanism
No install spec is embedded (instruction-only), and the README suggests installing the single dependency via pip (requests). This is straightforward; there are no opaque downloads or archive extractions in the package itself.
Credentials
The client can accept an API key (Authorization: Bearer) but the registry metadata declares no required environment variables. Requiring credentials is reasonable for interacting with an MCP server, but the skill doesn't declare a primary env var or secret storage—API keys are optional per the code. No unrelated credentials or config paths are requested.
Persistence & Privilege
The skill does not request permanent presence (always: false) and does not modify other skills or system-wide settings. It performs network calls at runtime but does not persist tokens or change system config.
How to Use
  1. Make sure OpenClaw is installed (local or Docker)
  2. Run the install command in chat: /install mcp-client
  3. After installation, invoke the skill by name or use /mcp-client
  4. Provide required inputs per the skill's parameter spec and get structured output
Version History
v1.0.3
Force rescan - verified working
v1.0.2
Security: Added warning for file:// URIs, added security section to SKILL.md
v1.0.1
Fixed dependencies - now uses requests instead of mcp package
v1.0.0
Initial release of the MCP Client skill. - Implements core client for the Model Context Protocol (MCP) - Connects to MCP servers to access tools, data sources, and prompt templates - Supports tool invocation, resource listing and reading, and structured prompts - Includes both PowerShell and Python usage examples - Requires Python 3.8+ and the mcp library
Metadata
Slug mcp-client
Version 1.0.3
License
All-time Installs 9
Active Installs 7
Total Versions 4
Frequently Asked Questions

What is Mcp Client?

Model Context Protocol (MCP) client - connect to tools, data sources and services. It is an AI Agent Skill for Claude Code / OpenClaw, with 1904 downloads so far.

How do I install Mcp Client?

Run "/install mcp-client" in the OpenClaw or Claude Code chat to install it in one step — no extra setup required.

Is Mcp Client free?

Yes, Mcp Client is completely free (open-source). You can download, install and use it at no cost.

Which platforms does Mcp Client support?

Mcp Client is cross-platform and runs anywhere OpenClaw / Claude Code is available (cross-platform).

Who created Mcp Client?

It is built and maintained by Ivan Cetta (@nantes); the current version is v1.0.3.

💬 Comments