Skip to main content

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

fastmcp_tool-0.1.0.tar.gz (72.5 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

fastmcp_tool-0.1.0-py3-none-any.whl (7.5 kB view details)

Uploaded Python 3

File details

Details for the file fastmcp_tool-0.1.0.tar.gz.

File metadata

  • Download URL: fastmcp_tool-0.1.0.tar.gz
  • Upload date:
  • Size: 72.5 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: twine/6.1.0 CPython/3.13.7

File hashes

Hashes for fastmcp_tool-0.1.0.tar.gz
Algorithm Hash digest
SHA256 4307bd2b8bd4137014346f538e527c939c173f0157b24c97fdb8cffd1b655cf9
MD5 760a515ea2441318160f7d73c15c57fc
BLAKE2b-256 ca0eb84e7f4a087067350a4a5b56f4bea935fa3256751c1e0a494ab22bd21253

See more details on using hashes here.

Provenance

The following attestation bundles were made for fastmcp_tool-0.1.0.tar.gz:

Publisher: publish.yml on jonpspri/fastmcp-tool

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

File details

Details for the file fastmcp_tool-0.1.0-py3-none-any.whl.

File metadata

  • Download URL: fastmcp_tool-0.1.0-py3-none-any.whl
  • Upload date:
  • Size: 7.5 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: twine/6.1.0 CPython/3.13.7

File hashes

Hashes for fastmcp_tool-0.1.0-py3-none-any.whl
Algorithm Hash digest
SHA256 734896e0a0fea3dcafb6273894d7819cf1399de9f6f2424ae162c041bda2f0df
MD5 360d7c84a349498e2764d01e2fd4e254
BLAKE2b-256 678d8ea99e330550cad143c68723421a2eb9c43c48a9535c823dfe4ab3962b63

See more details on using hashes here.

Provenance

The following attestation bundles were made for fastmcp_tool-0.1.0-py3-none-any.whl:

Publisher: publish.yml on jonpspri/fastmcp-tool

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page