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:

# Pass parameters as a JSON string
fastmcp-tool --server https://mcp.example.com/sse call my_tool --params '{"key": "value"}'

# Or read parameters from a JSON file
fastmcp-tool --server https://mcp.example.com/sse call my_tool --params-file params.json

The --params and --params-file options are mutually exclusive.

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
--bearer-token Bearer token for HTTP server authentication
--help Show help message

Call Options

Option Description
--params JSON string of parameters to pass to the tool
--params-file Path to a JSON file containing parameters

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"}'

# Call a tool with parameters from a file
fastmcp-tool --server https://api.example.com/mcp call search --params-file search_params.json

# 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.3.tar.gz (73.7 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.3-py3-none-any.whl (8.0 kB view details)

Uploaded Python 3

File details

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

File metadata

  • Download URL: fastmcp_tool-0.1.3.tar.gz
  • Upload date:
  • Size: 73.7 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.3.tar.gz
Algorithm Hash digest
SHA256 62be1ac07dd326a5f69c6cb986383f62efff4f6a4c8e1bd2e8ceffdb94c37d2b
MD5 77ea77063036c8585fc7e58331cd920b
BLAKE2b-256 cf9441fe88f3fa373d361a034a30cc21b5c6ab55f9697b9f7134aeda61b88ef1

See more details on using hashes here.

Provenance

The following attestation bundles were made for fastmcp_tool-0.1.3.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.3-py3-none-any.whl.

File metadata

  • Download URL: fastmcp_tool-0.1.3-py3-none-any.whl
  • Upload date:
  • Size: 8.0 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.3-py3-none-any.whl
Algorithm Hash digest
SHA256 9458ae9b2abc07d37d91103f22fc6ac0781d2367282accb23c516f15bd83f76e
MD5 0e4b7e93e31c7a18d02850924f1d6cc9
BLAKE2b-256 7190b97d7ee404108b0fca644a848cd786bd44d2b526f7fd7d29870197c9f18c

See more details on using hashes here.

Provenance

The following attestation bundles were made for fastmcp_tool-0.1.3-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