integrate with solstone

your journal runs an MCP server. this page covers how to connect an agent to it or build something on it: what it offers, what you as the owner control, and where the code lives.

at a glance

what it is
a Model Context Protocol server inside your journal. any MCP client can use it.
address
/mcp on whichever route you turn on. on the journal's own computer: http://127.0.0.1:7659/mcp
protocol
MCP 2025-03-26 over Streamable HTTP. POST JSON-RPC and get JSON back. initialize returns an Mcp-Session-Id, and DELETE ends the session.
sign-in
OAuth 2.1 hosted by the journal (PKCE S256), or a key you create for a script
offers
journal reads, the agent's own notes and its suggestions. no resources, no prompts, no event stream, no stdio.
writes
only the agent's own notes and its suggestions, which wait for you to accept them. an agent can't change or delete anything else in your journal.

connect an agent

  1. pick where the agent runs. in your journal, open agents and choose connect an agent. the route decides the address:
    the agent runsaddressdefault
    on the journal's computerhttp://127.0.0.1:7659/mcpon
    on your wifi or VPNhttps://<private address>:7660/mcpoff. uses a certificate from your journal's own authority, which the agents page offers for download.
    anywhere, through solstone.mehttps://<8 characters>.solstone.me/mcpoff. $5/yr. the relay passes encrypted bytes through, and the journal holds the certificate.
    anywhere, at your own domainhttps://<your domain>/mcpoff. needs a linux server you run with a public IPv4 address, an SSH admin login and port 443 open, plus an A and a CAA record. the journal holds the connection to your server and its own certificate.
  2. make a pairing code for that route. it's 8 characters, works once, and expires after 10 minutes. until a code is open, the journal won't answer a sign-in from anyone.
  3. add the address to your agent:
    agentadd itthen sign in
    Claude Codeclaude mcp add --transport http journal <address>type /mcp, choose journal
    Codexcodex mcp add journal --url <address>codex mcp login journal
    Gemini CLIgemini mcp add --transport http journal <address>/mcp auth journal
    Claude on the webadd a custom connector in Claude's settings, with your solstone.me or own-domain addressconnect it from there
    any other MCP clientadd an HTTP server at the addressit should find the OAuth sign-in on its own
  4. approve it. your browser opens a page served by your journal. choose what the agent may see (next section), enter the code, and connect.

what you control

every connection gets its own grant. you choose it when you approve the agent, and you can change it later in agents or with the solstone journal mcp commands.

policyyour choices
how much of your journalyour whole journal: everything now and anything added later, including facets you create later.
only the facets you choose: just those facets, as they grow. facets you create later aren't included.
what kinds of materialany of these:
transcripts: what was said in your recordings and imports, as text. never the audio or the screen images themselves. screen text, body and messages have their own permissions. messages covers words written and sent in chats and AI chats you imported; an agent needs both transcripts and messages to read a conversation when your journal can't tell if it was spoken or written.
entities: the people, places and projects your journal knows, and what it has noted about them. its profile pics option adds the picture your journal shows for a person.
summaries, granted as facets: facet names and descriptions, and the activities, events and summaries filed in them.
screen text: text recognized from your screens or shown in your terminal, with the time it appeared. this says what was visible, not what you read, typed or did. masking passwords and other secrets is best effort; your redaction rules do not apply. its include screenshots option lets the agent see your screenshots and ask for a picture of your screen at a moment, while your journal still has the recording.
body: readings, sleep, workouts, mindfulness sessions and what you logged, such as food or symptoms, imported from apps and devices like Apple Health, Oura or Strava, with their values and any notes you wrote on them.
notes: notes you import, highlights and notes saved by other agents.
documents: text from imported documents such as PDFs and Word files.
calendar: events from calendars you've connected or imported.
places: places and times from your journal's location history, at the detail level you choose. places you hid stay out.
photos: photos you import, both the pictures and what your journal described in them.
its own noteson unless you pause it. every connection can save notes, and recall only the ones it saved. other agents can find them through search if their grant covers them. you can read and delete them in your journal.
where it connects froma signed-in agent only works at the route it was paired on. turn a route off in agents and nothing reaches your journal that way.
how long it lastsa signed-in agent stays connected while it's in use. after 30 days unused it pauses until you resume it. you can also pause any agent yourself. if you set an agent up again, connect it again from its page in your journal and it keeps its notes. a script key lasts until you revoke it.
changing your mindchange what it may see, pause it, rename a key, or disconnect it. its activity (which tools it called and with what, when, how it ended and which entries it got back, as links, never a copy) stays in your journal.

the approval form preselects transcripts, entities and its profile pics, summaries, screen text and body. it leaves include screenshots, messages, notes, documents, calendar, places and photos unchecked. existing connections keep their approved kinds until you change them: one with entities keeps profile pics, one with screen text gets screenshots only once you turn on include screenshots, and one with transcripts gets written chats only once you turn on messages.

places needs your whole journal, and has three detail levels. exact locations, the default when you turn places on, gives coordinates. ~1 km areas gives roughly 1 km grid cells instead of exact coordinates. names only gives place names, area names and times, with no coordinates or grid cells. choose one when you connect an agent, in the agents app, or with solstone journal mcp permission set --places-precision and full, approx or names. a connection that had places before this choice stays at names only until you change it, and places you hid stay out at every level.

cycle and pregnancy entries (menstrual cycle, fertility, pregnancy and related logs from Garmin or Apple Health) stay withheld under a plain body grant. they need body and its cycle and pregnancy option, granted as womens_health. existing body connections keep them withheld until you turn that option on.

workout start and end coordinates imported from Garmin follow the connection's places detail level: exact locations shares exact coordinates, ~1 km areas shares roughly 1 km grid cells, and names only or no places leaves coordinates out while keeping workout names, place names and exercise stats.

suggestions

your agent can suggest a correction when you tell it something is wrong, when it did the work itself, or when you ask it to look. the suggestion names the agent and waits in your journal's suggestions. you can accept it, edit what happened or a name before accepting, or dismiss it. accepting uses the same correction you can make yourself, with undo. when your agent suggests that two people are the same person, you choose which name to keep. accepting the suggestion merges the two people. a merge can't be undone. you can turn suggestions off for an agent in the agents app; suggestions already waiting stay there for you to review.

how a grant shapes what the agent sees

  • a tool that needs a kind you didn't grant is left out of the agent's tool list
  • the facet and category arguments only list what you granted, so the agent is never told about a facet it can't read
  • every call is checked again when it arrives, so narrowing a grant takes effect at once

for example, with transcripts only, limited to two facets, the agent is offered search like this. the facet values are the journal's ids for those facets, not their names:

{
  "name": "search",
  "title": "search the journal",
  "annotations": { "title": "search the journal", "readOnlyHint": true, "openWorldHint": false },
  "inputSchema": {
    "type": "object",
    "additionalProperties": false,
    "properties": {
      "query":    { "type": "string" },
      "category": { "type": "string", "enum": ["transcripts"] },
      "facet":    { "type": "string", "enum": ["3f1c2a9e-7b4d-4e8a-9c21-5d6e0f4b7a13", "b82e4d10-1c5f-4a7e-8d3b-2f9a6c0e5d84"] },
      …
    }
  }
}

tools

your agent discovers the available tools through tools/list; they depend on your journal version and the grant. "needs" is the kind you must grant before a tool is offered. days are YYYYMMDD or YYYY-MM-DD. search and the list_ tools take a limit of 1–100; recall uses 1–20.

toolwhat it doesneedsinputs
searchsearch what this connection may see: screen text, summaries of conversations and work sessions, activities, imported documents, calendar events, and notes on people and projects. leave out the query to list what a day holds.transcripts, messages, facets, screen text, body, notes, documents, calendar, places or photosquery, day / day_from / day_to, category, kind, person, place, activity, facet, cursor
fetchread the document or activity record behind a reference, or up to 12 at once. long screen-text records return a reference for the next part. an imported photo or screenshot can come with a smaller copy of its picture.transcripts, messages, facets, screen text, body, notes, documents, calendar, places or photos; each reference still needs its own permissionreference / references, size
list_transcriptslist transcript segments with their times, sources and how much was said, newest days first. pass a source label, from a listed segment or the day's other_sources, as source to list that source's segments for one day. a day's list returns a span_reference for what it matched.transcripts, messages, body, notes, documents, calendar, photos or screenshots; each segment still needs its own permissionday / day_from / day_to, time_from / time_to (HH:MM), facet, source, entry_kind, kind, person, place, activity, cursor
get_transcriptread what was said in one segment, word for word. pass a span_reference as reference to page through everything a day's list matched in time order: what was said that day, or a body source's readings. with include screenshots, it can also return a picture of a screen segment at one moment.transcripts, messages, body, notes, documents, calendar, photos or screenshots; each segment still needs its own permissionreference / references, cursor, offset_ms, display
list_activitieslist activities by day or inclusive date range, with their facet, kind, source, times, duration, participants, entities and a reference. with places, an activity carries its place when it has one, at the detail level you chose. people seen in imported photos are listed apart from people on screen. an activity in several facets is listed once, with the others in also_in. filter by a person or entity name, or an entity reference.facetsday / day_from / day_to, facet, entity, kind, person, place, activity, cursor
get_activity_sourcesread the source passages an activity spans, word for word, with source linksfacets, with transcripts, messages or bodyreference / references, cursor
list_entitieslist the people, projects and other entities this connection may see, each with its type when known, and has_photo for a confirmed photo whose source belongs to that facet. one in several facets is listed once unless the agent asks about a single facetentitiesfacet, cursor
get_entityread what the journal has noted about an entity, or up to 12 at once: its type, description, the last day it came up, and notes. unless the owner has turned photo suggestions off, photo.state says none, possible, suggested, confirmed or dismissed. a suggested or confirmed photo also arrives as a JPEG image, at most 256 pixels on either side, when its source belongs to that facetentitiesreference / references
list_facetslist the facets this connection may seenothingcursor
get_weekread a week, or a date range of up to 366 days as one row per day. a week is drawn from activities, even without a generated reflection. memories are derived from activities; quotes, when available, are the owner's words. a week lists some of its activities; list_activities has them all.your whole journal, with transcripts and facetsweek (any day in it, YYYYMMDD or YYYY-MM-DD; the current week when omitted) / day_from / day_to, cursor, include
save_memorysave a note of the agent's own, up to 32 KB. retrying with the same operation_id and content saves it once.nothingcontent, operation_id (both required)
suggest_correctionsuggest a correction to a recording, what happened, who said a line or a person's name, or suggest that two people in the journal are the same person. it waits in suggestions until you accept it.the target must be something this connection may seekind, target, value, basis, reason, operation_id (all required)
recall_memoryread back this connection's own notes. leave out the query to browse.nothingquery, day / day_from / day_to, continuation, limit 1–20

when search or a list returns next_cursor, pass it back as cursor with the same filters to continue. the reference a list gives for a segment, an activity or an entity is a short name that stays the same across calls, journal restarts and grant changes, so an agent can keep it. every read checks again what the connection may see. cursors, span_reference and search references belong to that connection and stop working after a journal restart or grant change; list or search again for a new one. entity descriptions carry description_truncated: true when shortened.

fetch, get_transcript and get_activity_sources also take references: up to 12 references read in one call. each item carries its own result or error, in the order you gave them. read an item on its own when it reaches the batch size limit, and use cursor only with a single reference. get_week takes include for a summary inside each day of body, places, photos, notes or entities. entities gives a count of the people listed as present or heard, with up to 50 other people a day. a summary uses only what the connection may read, and a kind it can't read gets a note instead.

get_week with day_from and day_to reads a date range of up to 366 days, such as a month or a year, as one row per day: its journal link, activity count and top memory, plus the day's state and the owner's quotes, with the activity each came from, where the week has a week page. a range leaves out activity rows and returns up to 100 days at a time; pass next_cursor as cursor with the same arguments to continue. days after today are left out.

search, list_transcripts and list_activities share the find filters kind, person, place and activity. kind takes one journal kind this connection may read, such as notes or calendar, or a list of them. person matches a person named on an activity, and activity a type of activity such as writing; both need facets. place matches named location information and needs places and your whole journal. with a find filter, each list returns journal entries to read with fetch, and takes a date range or facet. entry_kind is different: on list_transcripts it keeps one kind of entry within a body source, such as sleep, and needs day and source.

for example, the params of a few tools/call requests:

# read three entries in one call
{"name":"fetch","arguments":{"references":["<reference>","<reference>","<reference>"]}}

# this week, with each day's body and places
{"name":"get_week","arguments":{"include":["body","places"]}}

# october, one row per day, with each day's photos
{"name":"get_week","arguments":{"day_from":"2026-10-01","day_to":"2026-10-31","include":["photos"]}}

# who you were with in october, and who with whom
{"name":"get_week","arguments":{"day_from":"2026-10-01","day_to":"2026-10-31","include":["entities"]}}

# three people and their profile pics in one call
{"name":"get_entity","arguments":{"references":["<entity reference>","<entity reference>","<entity reference>"]}}

# one day's places in full
{"name":"fetch","arguments":{"reference":"<places reference>"}}

# small copies of three photos for a contact sheet
{"name":"fetch","arguments":{"references":["<photo reference>","<photo reference>","<photo reference>"],"size":"thumb"}}

# notes and documents from one week, without a query
{"name":"search","arguments":{"kind":["notes","documents"],"day_from":"2026-11-15","day_to":"2026-11-21"}}

# one body source's sleep on one day
{"name":"list_transcripts","arguments":{"day":"2026-11-20","source":"<source label>","entry_kind":"sleep"}}

# one moment in a screen recording, on one of several displays
{"name":"get_transcript","arguments":{"reference":"<segment reference>","offset_ms":90000,"display":"<display>"}}

journal text in what the tools return uses Markdown escapes wherever it holds link, image or HTML markup. the JSON text of a result also writes link, image and HTML delimiters as \u escapes. recall_memory returns your agent's own notes as it wrote them.

some tool results include a link to that place in your journal. your agent can give you that link when it refers to an activity, person, day or recording. opening it needs a version of the solstone app that supports journal links; an older version may open the app without opening the place. the link gives no permission to read your journal. reference is still what the agent passes to a tool.

to point to a moment in a recording, your agent can add ~HHMMSS to its link, using the time on a line it has read: 09:00:20 becomes ~090020. it must leave the time off when the transcript says untimed.

transcript times use the recording device's clock. when its reported UTC offset differs from your journal's, capture_zone gives the offset and, when available, the zone name. an absent field means the offsets match or the recording had no usable zone information. source links carry the same information.

each transcript segment also carries source: where it came from, in the words your journal uses, such as "your mac · audio". two segments at the same time with different sources are separate recordings. when two sources would otherwise read alike, the journal adds a device name or a number. source links carry it too.

a plain list leaves out segments that hold only body records: the readings, workouts and sleep imported from Apple Health or Oura. body records are read with the body permission; without it none are listed or counted, and body_note says so. a day's list names their sources in other_sources, such as Apple Health · imported or Oura · imported. to list one source's segments, pass one of those labels exactly as given as source, with day and without facet. add kind, which needs source, to keep one kind of entry, as the source's entries name it, such as resting heart rate, workout or sleep. the response then adds span_reference and gaps, the stretches where this connection can read nothing from that source (a gap means no segment, not that nothing happened). a page of readings can be short, so read on while next_cursor is present. no label lists Strava workouts: omitted_workouts counts them, search finds them, and list_activities lists the activity recorded for each, when it has one.

a hidden activity and what your journal wrote for it, such as its story, are left out of search, and an agent can't reach them. search results mark activities with Stories and weekly reflections as derived: true. read their source passages before treating a summary as someone's words. leaving a memory or quote off the week page leaves its source available to the other tools.

pictures from fetch and get_transcript arrive as an MCP image block in content: a JPEG made again from the pixels alone, at most 1024 pixels on its longer side, so no camera details or location go with it. when a connection may read photos, fetch of an imported photo adds its picture, and picture.state says attached, with its width and height, or not_kept when your journal no longer has the original. in a batch, image_content_index says which content block holds an item's picture.

for photos, include lists up to 50 a day, earliest first, each with its time when known, time_source when available, and its description. more means a day has more than 50, and count_is_lower_bound means a range's count is incomplete; search finds the rest. photo results from search and fetch carry time and time_source too. fetch takes size: full, the default, at most 1024 pixels on its longer side, or thumb, at most 320 pixels on its longer side, for grids, contact sheets and batches.

for places, include lists up to 50 visits, stays and stretches of location readings a day, each with a reference that fetch reads in full. get_week, and search with places in kind, also return on their first page places_precision and your places with how many days each came up. searching places returns one result per day. each of these carries exact coordinates, ~1 km cells or names only, as you chose.

for people, include lists up to 50 other people a day who were present or heard, and more means a day has more. on its first page it also returns people, every other person across the whole range with the days and activities they were present or heard in, plus in_photo_days and in_photo_activities for imported photos they appear in, and co_occurrence, how many days and activities each pair of people was present together. activity rows list people seen in imported photos in in_photo, apart from on_screen, which covers screen recordings and imported screenshots. list_entities lists someone in several facets once, with all of them in facets and each facet's reference in facet_references, unless you pass facet. get_entity takes references for up to 12 entities; in a batch, image_content_index says which image block holds each profile pic.

for body, include gives each day what your journal holds, by source and by the app or device that recorded it: movement with steps, distance and active calories; nights with bedtime, waking, time asleep and stages_seconds, the time in each sleep stage, with time awake kept apart from time asleep; and readings with the low, the high and the number of readings for resting heart rate, heart rate variability and heart rate, plus when the day's lowest and highest heart rate came. each night sits on the morning it ended, so what happened the evening before is on the previous day, and a split night can have more than one entry. nothing is averaged, compared or scored, and a movement total or reading your journal can't read comes back as a note. a day's body document, found by searching body or read with fetch, shows the same values and ranges, daily totals for steps, distance and flights climbed, and sleep stages from Apple Health and Garmin. Oura's daily readiness, sleep and activity entries are named there without their scores or values.

screenshots need screen text and its include screenshots option, granted as screenshots. an existing screen text connection needs it turned on too. with it, fetch of an imported screenshot adds its picture the same way; without it, picture.state says not_allowed. to see one moment in a screen recording, pass a single segment reference to get_transcript with offset_ms, the milliseconds from the segment's start (0 for a screenshot). when the segment has several displays, picture.state says choose_display and lists them in displays; call again with one as display and the same offset_ms. picture also carries description, the journal's description of that screen at or before the moment, with its time in description_offset_ms, or segment_description for the whole segment. when your journal no longer keeps the recording, picture.state says not_kept, and the description it kept still comes back when it has one.

a profile pic, the photo your journal shows for a person, needs entities and its profile pics option, granted as profile_pics. an entities grant made before that choice existed keeps profile pics. a result with an image adds an MCP image block to content, beside the entity JSON text. the same entity JSON stays in structuredContent.

when a source passage says untimed, the times inside it are not real. list_activities reads activity records directly, without waiting for search indexing. its times include the journal's zone. fetch reads a whole activity from a file that holds several. search references to changed activity files stay unavailable until indexing catches up. when the connection reads your whole journal with transcripts, list_activities also adds a scheduled field to an activity when your calendar had something planned while it ran. if the connection can also read entities, it names the people on the invite who are already in your journal. it says what was planned, not who was there. it comes from search indexing, so it can arrive after the activity does.

search finds calendar events, and anything else in your journal that belongs to no facet, only for a connection that reads your whole journal. when a connection sees only some facets, its search results say so in coverage.outside_facets.

the agent's tool descriptions and input schemas come from the tool registry. your agent sees the available ones when it calls tools/list.

build an integration

a script on the journal's computer: use a key

create a key, then grant it what it needs. a new key can only use its own notes until you grant it more.

solstone journal mcp token create --label my-script
solstone journal mcp permission set --token my-script --category transcripts --category entities
# or: transcripts from one facet only
solstone journal mcp permission set --token my-script --category transcripts --facet work

keys work at the journal's own computer and through solstone.me. the wifi or VPN and own-domain routes take signed-in agents only. token list and token revoke --label manage them, and permission show / clear manage grants.

then talk to it like any MCP server:

# start a session, and keep the Mcp-Session-Id header it returns
curl -si http://127.0.0.1:7659/mcp \
  -H "Authorization: Bearer $JOURNAL_KEY" -H "Content-Type: application/json" \
  -d '{"jsonrpc":"2.0","id":1,"method":"initialize","params":{"protocolVersion":"2025-03-26","capabilities":{},"clientInfo":{"name":"my-script","version":"1"}}}'

# see what this key may use
curl -s http://127.0.0.1:7659/mcp -H "Authorization: Bearer $JOURNAL_KEY" \
  -H "Content-Type: application/json" -H "Mcp-Session-Id: $SESSION" \
  -d '{"jsonrpc":"2.0","id":2,"method":"tools/list"}'

# call a tool
curl -s http://127.0.0.1:7659/mcp -H "Authorization: Bearer $JOURNAL_KEY" \
  -H "Content-Type: application/json" -H "Mcp-Session-Id: $SESSION" \
  -d '{"jsonrpc":"2.0","id":3,"method":"tools/call","params":{"name":"search","arguments":{"query":"lease renewal"}}}'

# end the session
curl -s -X DELETE http://127.0.0.1:7659/mcp -H "Authorization: Bearer $JOURNAL_KEY" -H "Mcp-Session-Id: $SESSION"

an app or agent other people install: use OAuth

your client signs in the way the agents above do. each route hosts its own sign-in:

discovery
/.well-known/oauth-protected-resource, then /.well-known/oauth-authorization-server
registration
POST /register: dynamic client registration, or a client ID metadata document (your own https:// URL as client_id)
authorization
/authorize with PKCE S256 and the resource from the protected-resource metadata. public clients only, no client secrets.
tokens
POST /token, authorization_code and refresh_token. access tokens last 1 hour. refresh tokens rotate on every use, and reusing an old one revokes the grant.
scopes
none. the owner picks the grant on the consent page, and your client discovers the result through tools/list.
redirects
loopback (localhost or 127.0.0.1, any port), or the exact callback of a hosted agent the journal recognises. the list

design for it: /register and /authorize answer 403 until the owner has a pairing code open, so tell the owner to make one first. each refresh keeps the grant live for 30 days from then, and after 30 days without one the connection pauses. a paused connection can still refresh, but every tool call returns an error that says it's paused, so tell the owner to resume it in their journal's agents app. a refresh answered invalid_grant means this credential no longer works, so ask the owner to connect your client again in their journal's agents app.

limits

limit
pairing code8 characters · one use · 10 minutes · one route · one open at a time
wrong codes5 per sign-in attempt. 20 from one source lock the code until you make a new one.
sessions16 per agent · end after 30 minutes idle
open connections256 at once (64 on the wifi or VPN and own-domain routes)
request body200 KB
one saved note32,768 bytes
one recall page20 notes · 65,536 bytes

read the source

the server is open source. if you're building against it, or you want your agent to understand it, start here:

whatwhere
the MCP servercore/crates/solstone-core-mcp-endpoint
the tools, their schemas, and how a grant filters themsrc/registry.rs · tool code in src/tools/
grants: whole journal, facets, kindssrc/permissions.rs
sign-in: pairing, OAuth, redirectssrc/oauth/ · the written reference, docs/MCP_OAUTH.md
routes, keys and the solstone journal mcp commandsdocs/SOLCLI.md

to have your agent read it, give it this: read https://github.com/solpbc/solstone-journal/tree/main/core/crates/solstone-core-mcp-endpoint and docs/MCP_OAUTH.md, then help me connect to my journal.

early days. found something that doesn't match what your journal does? tell us.