Skip to main content
Glama
README.md
# @planmere/mcp

Local MCP server (`planmere-mcp`) for Planmere. It connects your AI app to Planmere over stdio using MCP and calls `/mcp/v1/*` over HTTPS with your personal MCP key.

Requires Node.js 24 or newer when run with `npx`.

## Setup

Create an MCP key in Planmere under **Settings > MCP**. Use one of your keys where it says `pmk_your_key`. Lost the key? Make a new one: keys are shown only once.

Never share your key. Treat it like a password, do not commit it to version control, and revoke it in **Settings > MCP** if it is ever exposed.

### Claude Desktop

1. Download the Planmere extension: **Download planmere.mcpb** from the latest GitHub Release on `thegayankalinga/planmere-mcp`.
2. Open the file. Claude Desktop asks if you want to install it.
3. Paste your key when it asks. It's kept in your computer's keychain.

### Claude Code

1. Run this in your terminal:

```bash
claude mcp add planmere --env PLANMERE_MCP_KEY=pmk_your_key -- npx -y @planmere/mcp
```

2. Start Claude Code. Ask it, for example: "What's due this week in Planmere?"

### Other apps

1. Add this to your app's MCP settings (Cursor, Windsurf and most others):

```json
{
  "mcpServers": {
    "planmere": {
      "command": "npx",
      "args": [
        "-y",
        "@planmere/mcp"
      ],
      "env": {
        "PLANMERE_MCP_KEY": "pmk_your_key"
      }
    }
  }
}
```

2. Restart the app. Requires Node.js 24 or newer.

## Settings

| Environment variable | Required | Default | Description |
|---|---|---|---|
| `PLANMERE_MCP_KEY` | Yes | - | Your Planmere MCP key (`pmk_...`) from Settings > MCP. Never share your key. |
| `PLANMERE_MCP_HOST` | No | `https://app.planmere.com` | Planmere HTTPS host URL. |
| `PLANMERE_CF_ACCESS_CLIENT_ID` | No | - | Cloudflare Access service token client ID (dev environments only). |
| `PLANMERE_CF_ACCESS_CLIENT_SECRET` | No | - | Cloudflare Access service token client secret (dev environments only). |

## License

MIT