Skip to main content

terminal and IDE

Connect Daylog to Claude Code

Use a Daylog personal access token with Claude Code’s native Streamable HTTP transport.

authentication
Personal access token
availability
Claude Code with MCP support
  1. 01

    Generate a Daylog token

    Sign in to Daylog, open API & MCP in the app, create a token labelled Claude Code, and copy it immediately. The full token is shown once.

  2. 02

    Add the remote server

    Run the command below. Replace YOUR_DAYLOG_PAT with the token you just copied. Keep the quotes around the Authorization header.

    terminal
    claude mcp add --transport http daylog https://daylog.aasimahmed.com/api/mcp --header "Authorization: Bearer YOUR_DAYLOG_PAT"
  3. 03

    Choose the right scope

    Claude Code stores servers locally by default. Add --scope user if you want Daylog available in every project, or --scope project only when your team should share the non-secret server configuration. Never commit the token.

  4. 04

    Inspect the connection

    Run claude mcp list, then open Claude Code and use /mcp. Daylog should appear with its six action-based tools.

verify the connection

Ask Claude Code: Use Daylog to read today’s summary. A successful read confirms the endpoint and token are valid.

security

Daylog tools can create, update, and delete your entries. Connect only from a client you trust, review write approvals, and revoke personal access tokens from the app when a device or configuration is no longer in use.