Local MCP server over stdio¶
In this scenario, the agent’s MCP client starts the server as a child process and talks to it over stdin and stdout. Nothing listens on the network. The data stays in a local SQLite file.
Install¶
Install the package as a uv tool:
uv tool install backlog-tiny-mcp
The package backlog-tiny-mcp installs two commands: backlog and backlog-mcp.
The server command¶
An MCP client starts this command:
backlog mcp
backlog-mcp is the same command without the word mcp. stdio is the default protocol, so
backlog mcp --protocol=stdio does the same thing.
The server writes the MCP protocol to stdout and every log line to stderr. Do not wrap the command in a script that prints to stdout.
The server selects the project from its working directory. It uses the deepest registered
project of this computer that contains that directory. If no project contains it, the server
creates a project for that directory. To fix the project whatever the directory is, give the
global option --project before mcp.
Register the server with an MCP client¶
Claude Code and Codex¶
backlog install registers the server with Claude Code and Codex on this computer:
backlog install # both clients
backlog install --claude # Claude Code only
backlog install --codex # Codex only
The command uses the client’s own CLI when it is installed. Otherwise it edits
~/.claude.json or ~/.codex/config.toml directly. --name changes the server name
(default: backlog), and --force replaces an existing entry.
Warning
backlog install also changes the user configuration of both clients. It auto-approves the
tools of this server in Claude Code and Codex, and it sets the user-wide
sandbox_mode = "danger-full-access" in Codex, which disables the Codex sandbox.
Other clients¶
Most clients accept an mcpServers entry with a command and its arguments. This is the
generic form:
{
"mcpServers": {
"backlog": {
"command": "backlog",
"args": ["mcp"]
}
}
}
The file name and the exact keys differ between clients. See the documentation of your client. For a remote server, the Connect agent page generates the configuration for each supported client.
If the client does not find backlog on its PATH, use the absolute path of the command.
uv tool dir --bin prints the directory that holds it.
Where the data is¶
By default, the server uses $XDG_DATA_HOME/backlog-mcp/backlog.sqlite3. When
XDG_DATA_HOME is not set, the path is ~/.local/share/backlog-mcp/backlog.sqlite3.
To use a different file, choose one of these methods:
Set the environment variable
BACKLOG_MCP_DATABASEin the client’s server entry.Give the global option
--databasebeforemcp:backlog --database PATH mcp.Set
databasein the global section of a configuration file.
--database is a global option of backlog. backlog-mcp does not accept it, so use the
environment variable or the configuration file with backlog-mcp.
The terminal commands use the same database when no server URL is configured. See Where the data lives for the configuration files and their search order.
Check the connection¶
Restart the client, or reload its MCP servers.
Open the list of MCP servers in the client. The
backlogserver must show its tools, for examplewhoami,project_board,task_listandsearch.Ask the agent to call
whoami. Over stdio, the result showsauth_typenone, the principal, and the name of this computer.Ask the agent to call
project_boardwith the project name or the path of the checkout. The result shows the project, task counts, and thereadyandclaimedtasks.
The server instructions in the MCP initialize response tell the agent to start with
project_board(project) and then to read the resource backlog://guide/workflow. If the agent
does not follow them, ask it to read that resource.
The principal over stdio is the value of --default-user. Without that option, it is $USER.
To check the same database without an agent, run a terminal command from the checkout:
backlog whoami
backlog board
Without a configured server URL, each command starts its own local stdio server on the same database. See Command line.