SuperAPI AI Directory

mcptools

mcptools is a command-line interface tool for interacting with MCP (Model Context Protocol) servers, supporting stdio and HTTP transports. It can discover, invoke, and manage the tools, resources, and prompts provided by MCP servers, supports multiple output formats, and provides advanced features such as mock servers, proxy servers, and guard mode.

Open website

About this tool

mcptools is a comprehensive command-line interface for interacting with MCP (Model Context Protocol) servers. It supports multiple transport methods, including stdio, HTTP SSE, and Streamable HTTP, and provides rich features for discovering, invoking, and managing tools, resources, and prompts on MCP servers.\n\nMain capabilities:\n- Discover and invoke tools provided by MCP servers\n- Access and use resources exposed by MCP servers\n- Create mock servers for testing client applications\n- Proxy MCP requests to shell scripts for easy extension\n- Create an interactive shell for exploring and using MCP servers\n- Scaffold new MCP projects with TypeScript support\n- Format output in multiple styles (JSON, pretty-print, table)\n- Guard and restrict access to specific tools and resources\n- Support all transport methods (HTTP, stdio)\n\nUsage:\nInstallation: Can be installed via Homebrew (macOS) or from source (Windows and GNU/Linux). The Homebrew-installed binary is named mcp and can also be accessed via mcpt to avoid conflicts; the source-installed binary is named mcptools and can be aliased as mcpt.\n\nBasic usage: Connect to an MCP server and list available tools. Supports an interactive shell mode to run multiple MCP commands in a single session. Provides a web interface to interact with MCP servers through the browser, including a sidebar listing tools, resources, and prompts, forms and JSON parameter editing, and formatted and raw JSON response views.\n\nProject scaffolding: Quickly create a TypeScript MCP server project, including server setup, TypeScript configuration, component implementation, and automatic import initialization.\n\nConfiguration management: Save and reuse aliases for server commands, stored in $HOME/.mcpt/aliases.json. The configuration management system (currently macOS only) can scan MCP server configurations from applications such as VS Code and Claude Desktop.\n\nServer modes:\n- Mock server mode: Create a mock MCP server for testing clients, supporting the full initialization handshake, tool listing, tool invocation,resource listing and reading, prompt listing and retrieval (with parameter substitution), and logging to ~/.mcpt/logs/mock.log.\n- Proxy mode: Register shell scripts or inline commands as MCP tools, with parameters passed to the script as environment variables and output returned as the tool response. Supports returning base64-encoded PNG images. Tools are registered in ~/.mcpt/proxy_config.json, and logs are written to ~/.mcpt/logs/proxy.log.\n- Guard mode: Restrict access to specific tools, prompts, and resources based on pattern matching, supporting only STDIO transport. Filter requests through allow and deny patterns, with logs written to ~/.mcpt/logs/guard.log.\n\nUse cases: Developers and testers interacting with MCP servers, testing MCP client applications, extending MCP functionality, restricting AI assistant capabilities, creating sandbox environments, and more.\n\nLimitations: HTTP SSE supports only MCP protocol version 2024-11-05; configuration management is currently macOS only; guard mode supports only STDIO transport. Future plans include support for authentication mechanisms.