For the complete documentation index, see llms.txt. This page is also available as Markdown.

Tutorial

This tutorial walks you through using mcpd from setup to making requests to a running MCP server.

What you need for this tutorial

This tutorial adds the time server, which uses the uvx runtime. Install uv before starting. The API examples use curl. If you have jq installed, you can optionally append | jq to pretty-print the JSON responses.


1. Install mcpd via Homebrew

brew tap mozilla-ai/tap
brew install mcpd

2. Initialize the Project

mcpd init

Config File Location

This creates an .mcpd.toml file in your current directory.


3. Add an MCP Server

Add the latest version of the time server:

You can also restrict access to allow only specific tools:


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:

API Endpoint

The API docs will be available at http://localhost:8090/docs


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