File Locations
MCPlexer stores all data in ~/.mcplexer/. This page lists every file the system creates, what it does, and how to back it up.
Data Directory
The root data directory is ~/.mcplexer/. All paths below are relative to this directory unless noted otherwise.
File Reference
mcplexer.db
The SQLite database. Holds everything: workspaces, downstream servers, route rules, auth scopes, OAuth tokens, encrypted secrets, and audit logs.
- Created by:
mcplexer initormcplexer setup - Override:
MCPLEXER_DB_DSNenvironment variable - Backup:
sqlite3 ~/.mcplexer/mcplexer.db ".backup /path/to/backup.db"
mcplexer.yaml
YAML configuration file for downstream server definitions. Read on startup and synced to the database. Optional — you can manage everything through the UI instead.
- Created by:
mcplexer initor manually - Override:
MCPLEXER_CONFIGenvironment variable - Details: See Configuration
age-identity.txt
The age encryption key used to encrypt and decrypt secrets at rest. Generated automatically on first use.
- Created by:
mcplexer initor on first secret write - Override:
MCPLEXER_AGE_KEYenvironment variable
Back up this file
If you lose your age identity file, all encrypted secrets become unrecoverable. Store a backup in a secure, separate location.
daemon.pid
PID file written when the daemon starts. Used by mcplexer daemon stop and mcplexer daemon status to locate the running process.
- Created by:
mcplexer daemon start - Removed by:
mcplexer daemon stopor on clean shutdown
daemon.sock
Unix socket the daemon listens on. Clients connect to this socket via mcplexer connect.
- Created by:
mcplexer daemon start - Override:
MCPLEXER_SOCKET_PATHenvironment variable - Removed by:
mcplexer daemon stopor on clean shutdown
daemon.log
Log output from the daemon process.
- Created by:
mcplexer daemon start - View:
mcplexer daemon logsormcplexer daemon logs -f
Overriding the Data Directory
Individual paths can be overridden with environment variables:
| Variable | Default | Description |
|---|---|---|
MCPLEXER_DB_DSN | ~/.mcplexer/mcplexer.db | Database path |
MCPLEXER_CONFIG | ~/.mcplexer/mcplexer.yaml | YAML config path |
MCPLEXER_AGE_KEY | ~/.mcplexer/age-identity.txt | Age key path |
MCPLEXER_SOCKET_PATH | ~/.mcplexer/daemon.sock | Daemon socket path |
Claude Desktop Config
MCPlexer writes an entry to the Claude Desktop config file during mcplexer setup:
| Platform | Path |
|---|---|
| macOS | ~/Library/Application Support/Claude/claude_desktop_config.json |
| Linux | ~/.config/Claude/claude_desktop_config.json |
| Windows | %APPDATA%\Claude\claude_desktop_config.json |
Backup
Back up these three files to fully restore an MCPlexer installation:
The database contains encrypted secrets, but they are only decryptable with the age identity file. Back up both together.