Tutorial
This tutorial walks you through using mcpd from setup to making requests to a running MCP server.
1. Install mcpd via Homebrew
brew tap mozilla-ai/tap
brew install mcpdInstallation methods
Please see our Installation page for additional ways to install and run mcpd.
2. Initialize the Project
mcpd init3. Add an MCP Server
Add the latest version of the time server:
You can also restrict access to allow only specific tools:
Experiment with MCP servers
You can quickly experiment with MCP servers before properly adding them to the mcpd configuration, by running the inspector tool:
This optional tool requires npx. For more information, please refer to the official documentation of the tool.
4. Set Startup Arguments
Configure any startup flags for the server, in this case --local-timezone is optional, but let's set it:
5. Start the Daemon
Start mcpd, which launches MCP servers and exposes the HTTP API:
6. Query Running Servers
List all running servers:
7. Call a Tool on a Server
Make a request to a tool on a specific MCP server:
8. Use mcpd in your Agentic Python application
For examples on using mcpd with agents in Python, please refer to the Python SDK documentation.
Last updated