journa.link

Connect an AI assistant to journa.link

Install with your AI assistant

The local MCP server connects an assistant to your journal. It encrypts and decrypts notes on your computer. The assistant can receive readable note content and send it to its AI provider.

Plan access

MCP access is included with Beta. Free does not include MCP access. Pro will include MCP when that plan is available. See the Pricing link in the page navigation for plan details.

  1. Copy the installation prompt above.
  2. Paste it into your local assistant.
  3. Let the assistant install and configure MCP.
  4. Run setup in your own terminal.
  5. Enter your credentials in the hidden prompts.

Never put a password or passphrase in chat. An assistant running in the cloud may not be able to reach a localhost guide.

Requirements

Node.js 22 or later, npm, and an assistant with local MCP support over stdio are required. Setup and the assistant must use the same OS account and secure store. The MCP needs an API connection. A browser is used only for Google sign-in.

Install the package

The download link above provides the package. Its SHA-256 checksum is in the package manifest.

  1. Download the package from this guide.
  2. Check its SHA-256 against the manifest.
  3. Install the downloaded file.
  4. Run journalink-mcp --help.

Checksum commands:

Installation command; replace FILE with the downloaded file path:

npm install --global FILE

macOS secure storage

Credentials are stored in macOS Keychain. Allow access if macOS asks. A locked Keychain must be unlocked before setup.

Windows secure storage

Credentials are stored in Windows Credential Manager. Run setup and the assistant under the same Windows user. For WSL, use the Linux instructions.

Linux secure storage

Credentials require secret-tool and an unlocked Secret Service store, such as GNOME Keyring. The package is libsecret-tools on Debian and Ubuntu, or libsecret on Fedora. Setup and the assistant must share the desktop and D-Bus session. There is no plaintext storage fallback.

Sign in

The sign-in command is `journalink-mcp setup`. There is no separate login command. Use an existing journa.link account. If you do not have one, complete signup in the app first.

Run setup in your own terminal after installing the package. Choose the same sign-in method that you use in the app. Signing in to the app does not sign in the MCP server.

The HTML and downloaded Markdown guides fill in the configured addresses and Google client ID for this site. Missing values remain as placeholders. Repository copies use API_ORIGIN, APP_ORIGIN and CLIENT_ID. Replace EMAIL with your account email. Your account password signs you in; your journal passphrase unlocks your notes. These can be different.

Sign in with your email and password

Use this command if you sign in to the app with an email address and password. It does not open a browser. Leave out the Google options.

journalink-mcp setup --api API_ORIGIN --account EMAIL
  1. Run the command in your own terminal.
  2. Enter your account password at the Account password prompt.
  3. At the Journal passphrase prompt, enter the password again if the app created your current vault when you set that password. If you set a separate passphrase for this vault, enter that passphrase.
  4. If setup asks you to repeat the journal passphrase, enter the same value again.
  5. Wait for Setup complete. Then run the status command below.

Input is hidden: typed characters do not appear. Setup saves the session token and journal passphrase in your operating system's secure storage. It does not save your account password.

Sign in with Google

journalink-mcp setup --api API_ORIGIN --account EMAIL --app APP_ORIGIN --google-client-id CLIENT_ID
  1. Run the command in your own terminal.
  2. Complete Google sign-in in the browser window that opens. Select the account whose email matches EMAIL.
  3. Return to the terminal and enter your existing journal passphrase.
  4. Wait for Setup complete.

If the browser does not open, setup prints a sign-in URL for you to open. Google sign-in does not unlock your notes. The journal passphrase stays in the terminal and secure storage; it is not entered on the Google page.

Check sign-in

Ask your assistant to run `get_status`. It shows the API address, account email, and MCP version of the running server. It also checks the active session.

The tool also checks the package version on the About site for that API. If a newer version is available, the assistant can offer to install it. The assistant must wait for your agreement, verify the download checksum, and restart its MCP connection after installation. An unavailable update check does not change the session result.

For a custom installation, add `--about` followed by the About site origin to the assistant's MCP arguments. The About site must list the connected API in its public configuration.

Before you connect the assistant, check sign-in in your terminal:

journalink-mcp status --api API_ORIGIN --account EMAIL

A successful check prints the MCP version and confirms the API connection and authentication. It does not display notes or verify that every vault is unlocked.

If password sign-in fails before the Journal passphrase prompt, check your account email and password. If it fails after that prompt, check your vault passphrase.

If you see Run setup for this account or Sign-in expired, run the setup command for your sign-in method again. Use the same API_ORIGIN and EMAIL as the assistant configuration. An existing MCP connection needs a restart to load new credentials.

Configure the assistant

Setup prints the command and arguments for the assistant. Keep existing MCP entries. Use the executable's absolute path if the assistant cannot find journalink-mcp.

Codex configuration:

[mcp_servers.journalink]
command = "journalink-mcp"
args = ["serve", "--api", "API_ORIGIN", "--account", "EMAIL"]

VS Code with GitHub Copilot, in the user MCP configuration:

{"servers":{"journalink":{"type":"stdio","command":"journalink-mcp","args":["serve","--api","API_ORIGIN","--account","EMAIL"]}}}

Other clients may use a different configuration format. No configuration file should contain secrets.

Version check (no sign-in required):

journalink-mcp --version

The MCP handshake reports the same version and includes it in the server title. Your assistant controls whether its interface displays that title. Restart its MCP connection after an update; an existing process keeps its old version.

Note tools

Examples: “List my latest 20 notes.” “Create a note: Today's walk helped me focus.” “Read note n_example with read_notes.”

Ask the assistant to confirm deletion. The MCP server does not enforce that confirmation. Concurrent edits can overwrite each other. Before retrying a failed create, check whether the note was saved. Reuse request_id for the same create within one MCP process; this retry protection does not survive a restart.

Read notes in batches

read_notes accepts IDs from list_notes or search_notes. Use one ID to read one note, or several IDs for a batch:

{"ids": ["n_one", "n_two"]}

Provide 1 to 100 distinct IDs. Results keep the requested order. Each note has a readable, locked_or_damaged or not_found status. Missing and foreign-account IDs both return not_found. The batch uses one API request, then decrypts locally.

list_notes and search_notes use paging. Their next_cursor selects the next page when has_more is true. read_notes requires IDs and has no paging arguments. A failed API request returns an error, not an empty journal.

Example: “Search for project deadlines, then read the matching note IDs.” Full readable notes and metadata go to the assistant and can reach its provider. Request only what you need.

Use read_notes with IDs to read one or more notes. Restart the assistant after updating the package.

Search notes

search_notes searches locally decrypted text. It skips locked notes. Each call searches a limited number of notes, so a result is not necessarily a search of the whole journal. The assistant can continue with the returned next_cursor and the same query.

Search excerpts contain at most 160 characters by default. Set excerpt_chars from 0 to 400; 0 returns IDs and dates without excerpts.

Example: “Search my notes for project deadlines.”

Statistics and vaults

Each result has one text copy. Large note reads still use substantial context.

MCP does not generate the app's AI Reflections.

Unlock an older vault

  1. Use list_vaults to find the vault ID.
  2. Run setup with --vault VAULT_ID.
  3. Enter that vault's original passphrase.
  4. Restart the assistant's MCP connection.

Use --vault legacy for notes from before password vaults. Setup preserves other saved vault passphrases for the same account.

Privacy and access

The API token and journal passphrases are stored in the OS secure store. Note encryption and decryption happen locally; readable text returned by a tool goes to the assistant. The assistant or its provider can retain tool inputs and results. Their settings control retention and training use. This access is separate from the app's Reflection consent. See the Privacy draft for details.

The token lasts 30 days and has app-session permissions, not a notes-only scope. The running MCP holds credentials and derived keys in memory without an idle-lock timer. Browser lock, browser logout and sign-in in another terminal do not change its access. Only connect an assistant that you trust with this access.

Troubleshooting

Updates and removal

  1. Download the new package from this guide.
  2. Verify its checksum.
  3. Install it with npm.
  4. Restart the assistant's MCP connection.

Removal:

  1. Run logout for each configured API and account.
  2. Remove the assistant's MCP entry.
  3. Stop running MCP processes.
  4. Uninstall the package.
journalink-mcp logout --api API_ORIGIN --account EMAIL
npm uninstall --global journalink-mcp

Logout removes the selected API/account credential entry. It does not revoke token copies or stop running MCP processes. Account deletion blocks API access but does not erase OS credentials or assistant copies. Uninstalling the package alone does not remove credentials.

Instructions for installing agents

Use this guide's origin for all installation metadata. Read /runtime-config.js for API_BASE_URL, APP_BASE_URL, and GOOGLE_CLIENT_ID. Read /docs/package.json for the package version, URL, and SHA-256. Do not guess addresses or install a similarly named registry package.

  1. Read the environment configuration and package manifest.
  2. Verify the download URL is on this origin.
  3. Download and verify the package checksum.
  4. Install the fixed package version.
  5. Preserve existing assistant settings when adding MCP.
  6. Give the user the exact setup command for a separate terminal. Fill in the API address, app address, Google client ID when needed, and account email. Ask for the email and sign-in method if unknown.
  7. Check status without displaying notes.

Never collect secrets through chat, captured terminal tools, command arguments, environment variables, or configuration files. Do not weaken OS security to complete installation.