Command line tool for interacting with MCP servers
Project description
fastmcp-tool
A command line tool for interacting with MCP (Model Context Protocol) servers.
Installation
pip install fastmcp-tool
Or with uv:
uv pip install fastmcp-tool
Usage
Connecting to a Server
Use the --server option to specify an MCP server. This can be either:
- An HTTP/HTTPS URL for streamable HTTP transport
- A shell command for stdio transport
# HTTP server
fastmcp-tool --server https://mcp.example.com/sse <command>
# Stdio server (runs command via bash)
fastmcp-tool --server "python my_mcp_server.py" <command>
Commands
List Tools
List all available tools on the MCP server:
fastmcp-tool --server https://mcp.example.com/sse tools
Call a Tool
Call a specific tool with optional JSON parameters:
fastmcp-tool --server https://mcp.example.com/sse call my_tool --params '{"key": "value"}'
List Resources
List all available resources:
fastmcp-tool --server https://mcp.example.com/sse resources
List Prompts
List all available prompts:
fastmcp-tool --server https://mcp.example.com/sse prompts
Options
| Option | Description |
|---|---|
--server |
MCP server URL or stdio command |
--debug |
Enable debug logging |
--help |
Show help message |
Examples
# List tools from a local stdio server
fastmcp-tool --server "uv run my_server.py" tools
# Call a tool with parameters
fastmcp-tool --server https://api.example.com/mcp call search --params '{"query": "hello"}'
# List resources with debug output
fastmcp-tool --server "python server.py" --debug resources
License
Apache License 2.0 - see LICENSE for details.
Project details
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file fastmcp_tool-0.1.1.tar.gz.
File metadata
- Download URL: fastmcp_tool-0.1.1.tar.gz
- Upload date:
- Size: 72.9 kB
- Tags: Source
- Uploaded using Trusted Publishing? Yes
- Uploaded via: twine/6.1.0 CPython/3.13.7
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
7df8604be4448fd02191a834e2efca7625b25427c83f6f7a455cde961ea27c5f
|
|
| MD5 |
29dc24d7b6bf86073314a226ffe26ad3
|
|
| BLAKE2b-256 |
68e1021e6f0b3c150c42a7fd9b623cd8d2e06a1bf09ffdce2d21b1287dc1d51d
|
Provenance
The following attestation bundles were made for fastmcp_tool-0.1.1.tar.gz:
Publisher:
publish.yml on jonpspri/fastmcp-tool
-
Statement:
-
Statement type:
https://in-toto.io/Statement/v1 -
Predicate type:
https://docs.pypi.org/attestations/publish/v1 -
Subject name:
fastmcp_tool-0.1.1.tar.gz -
Subject digest:
7df8604be4448fd02191a834e2efca7625b25427c83f6f7a455cde961ea27c5f - Sigstore transparency entry: 937346241
- Sigstore integration time:
-
Permalink:
jonpspri/fastmcp-tool@01cf6d45dd68fe5982c55ec5fb294f0f93e140cd -
Branch / Tag:
refs/tags/v0.1.1 - Owner: https://github.com/jonpspri
-
Access:
public
-
Token Issuer:
https://token.actions.githubusercontent.com -
Runner Environment:
github-hosted -
Publication workflow:
publish.yml@01cf6d45dd68fe5982c55ec5fb294f0f93e140cd -
Trigger Event:
release
-
Statement type:
File details
Details for the file fastmcp_tool-0.1.1-py3-none-any.whl.
File metadata
- Download URL: fastmcp_tool-0.1.1-py3-none-any.whl
- Upload date:
- Size: 7.6 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? Yes
- Uploaded via: twine/6.1.0 CPython/3.13.7
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
17c6b31c9966fc3a06b247dd0f6c3bdf8c8a3c186c13f49552b974c8e00055c9
|
|
| MD5 |
f52f83d0ca962537b108d68a9b8e5fea
|
|
| BLAKE2b-256 |
0fdb116302ecba863787fbe3bd0483de2e1e9acde6a350b66d7f66c7213777e7
|
Provenance
The following attestation bundles were made for fastmcp_tool-0.1.1-py3-none-any.whl:
Publisher:
publish.yml on jonpspri/fastmcp-tool
-
Statement:
-
Statement type:
https://in-toto.io/Statement/v1 -
Predicate type:
https://docs.pypi.org/attestations/publish/v1 -
Subject name:
fastmcp_tool-0.1.1-py3-none-any.whl -
Subject digest:
17c6b31c9966fc3a06b247dd0f6c3bdf8c8a3c186c13f49552b974c8e00055c9 - Sigstore transparency entry: 937346262
- Sigstore integration time:
-
Permalink:
jonpspri/fastmcp-tool@01cf6d45dd68fe5982c55ec5fb294f0f93e140cd -
Branch / Tag:
refs/tags/v0.1.1 - Owner: https://github.com/jonpspri
-
Access:
public
-
Token Issuer:
https://token.actions.githubusercontent.com -
Runner Environment:
github-hosted -
Publication workflow:
publish.yml@01cf6d45dd68fe5982c55ec5fb294f0f93e140cd -
Trigger Event:
release
-
Statement type: