substack-saved-mcp
Server Configuration
Describes the environment variables required to run the server.
| Name | Required | Description | Default |
|---|---|---|---|
| SUBSTACK_SAVED_DB_PATH | No | Custom path to the SQLite database file | |
| SUBSTACK_SAVED_DATA_DIR | No | Custom data directory for the database |
Instructions
Guidance the server publishes about itself, which clients place ahead of the tool catalog so the model reads it before choosing anything.
This server publishes no instructions, or was last inspected before Glama recorded them.
Capabilities
Features and capabilities supported by this server
Protocol revision2025-11-25
| Capability | Details |
|---|---|
| tools | {
"listChanged": true
} |
| logging | {} |
| prompts | {
"listChanged": false
} |
| resources | {
"subscribe": false,
"listChanged": false
} |
| extensions | {
"io.modelcontextprotocol/ui": {}
} |
| experimental | {} |
Tools
Functions exposed to the LLM to take actions
| Name | Description |
|---|---|
| search_saved_postsA | Perform full-text FTS5 search across cached saved posts. Searches title, excerpt, publication name, author, and content text (content is only present for posts fetched via get_post_content). query uses SQLite FTS5 syntax; a malformed query falls back to a substring match. Date filters take ISO 8601 strings (e.g. "2026-01-31"). Allows filtering by publication name, audience tier (see list_audiences for cached values, e.g. "everyone", "only_paid"), original post date (published_at), saved date (saved_at), and read_state ('unread', 'in_progress', 'finished', 'unfinished' (unread + in_progress), or 'started' — a post is 'finished' once its high-water reading progress crosses a threshold, default 0.95). |
| list_saved_postsA | List cached saved posts with pagination and optional publication/audience filters. sort_by can be 'saved_at', 'published_at', 'read_progress', or 'minutes_remaining'. audience filters by tier (see list_audiences for cached values, e.g. "everyone", "only_paid"). read_state filters by reading progress: 'unread', 'in_progress', 'finished', 'unfinished' (unread + in_progress), or 'started' — a post is 'finished' once its high-water reading progress crosses a threshold, default 0.95. |
| get_saved_postA | Retrieve full cached post details, timestamps (published_at and saved_at), and content by URL, local ID, or Substack post ID. content_text is empty until get_post_content has fetched the post. |
| save_postA | Bookmark a Substack post remotely on Substack and save it to the local cache. Requires an active authenticated Substack session (run 'substack-saved-mcp login' if expired). Confirmation comes from Substack's save API (keyed by the post's numeric ID, read from the page) or, failing that, from a best-effort bookmark-button click whose rendered state is checked. remote_confirmed=False means the post is still cached locally, but the tool could not verify the bookmark was actually created on Substack's side — a subsequent 'sync --force' will correct the local cache if the remote save didn't actually happen. |
| unsave_postA | Unbookmark a Substack post remotely and soft-delete it in local cache. Soft-deletion preserves post history while removing it from active search/list outputs. When the post's Substack ID is known (normally true after a sync), this calls Substack's real unsave endpoint directly and is reliably confirmed; otherwise it falls back to a best-effort DOM click (see save_post). remote_confirmed=False means the post was still soft-deleted locally, but the tool could not verify the unbookmark on Substack's side. |
| get_post_contentA | Fetch a saved post's full content, cleaned and formatted for LLM consumption. Returns the cached content_text if a previous fetch already stored it, unless force_refetch is set. Otherwise fetches the post's page directly, extracts its body_html from Substack's server-rendered window._preloads blob, converts it to plain text (headings, list items, and links kept readable), and caches the result. Requires an active authenticated Substack session. If the content can't be located on the page (e.g. Substack changed how it embeds it, or the post is paywalled beyond this account's access), returns success=False with a message suggesting the caller run 'substack-saved-mcp inspect-network' while opening the post so the real content source can be captured. |
| list_publicationsA | List all publications in local cache with post counts. |
| list_audiencesA | List distinct audience tiers present in local cache with post counts. Discovers actual values in use (e.g. "everyone", "only_paid") rather than a hardcoded enum, since Substack's audience values aren't officially documented and may vary or grow over time. |
| saved_posts_statusA | Return cache statistics, database path, and last sync run status. |
| sync_saved_postsA | Trigger incremental or full resync of saved posts from Substack account into local SQLite cache. Incremental (default) stops early once it reaches already-cached posts, so older posts' reading progress isn't refreshed. force=True fetches the whole list, refreshes every post, and soft-deletes local posts no longer saved on Substack. Returns a SyncRun whose status is 'success', 'partial' (the fetch was truncated, e.g. by rate limiting, and reconciliation was skipped), 'auth_required' (run 'substack-saved-mcp login'), or 'failed'. Requires an active authenticated Substack session and can take minutes on large accounts. |
| search_saved_notesA | Perform full-text FTS5 search across cached saved notes. Searches body text, author name/handle, and (for restacks) the attached post's title. query uses SQLite FTS5 syntax. Allows filtering by author (name or handle) and original note date (posted_after/posted_before, ISO 8601 strings). Substack exposes no bookmark time for notes, so saved_at is always None and saved_after/saved_before match nothing. |
| list_saved_notesA | List cached saved notes with pagination and optional author/restack filters. sort_by can be 'posted_at' (when the note was posted) or 'saved_at' (always None for notes, so it gives no meaningful order). restacks_only limits results to notes that restack a post. |
| get_saved_noteA | Retrieve full cached note details (author, body, engagement counts) by URL or local ID. |
| save_noteA | Bookmark a Substack note remotely on Substack and save it to the local cache. Requires an active authenticated Substack session (run 'substack-saved-mcp login' if expired). remote_confirmed=False means the note is still cached locally, but the tool could not verify the bookmark was actually created on Substack's side — a subsequent 'sync --force' will correct the local cache if the remote save didn't actually happen. |
| unsave_noteA | Unbookmark a Substack note remotely and soft-delete it in local cache. Soft-deletion preserves note history while removing it from active search/list outputs. remote_confirmed=False means the note was still soft-deleted locally, but the tool could not verify the unbookmark on Substack's side. |
| get_note_contentA | Fetch a saved note's full content, cleaned and formatted for LLM consumption. Returns the cached body_text if a previous fetch already stored it, unless force_refetch is set. Otherwise fetches the note directly via Substack's reader API (no browser page needed) and caches the result. Requires an active authenticated Substack session. |
| sync_saved_notesA | Trigger incremental or full resync of saved notes from Substack account into local SQLite cache. Incremental (default) stops early once it reaches notes already saved locally. force=True fetches the whole list and soft-deletes local notes no longer saved on Substack. Returns a SyncRun whose status is 'success', 'partial' (the fetch was truncated, e.g. by rate limiting, and reconciliation was skipped), 'auth_required' (run 'substack-saved-mcp login'), or 'failed'. Requires an active authenticated Substack session. |
Prompts
Interactive templates invoked by user choice
| Name | Description |
|---|---|
No prompts | |
Resources
Contextual data attached and managed by the client
| Name | Description |
|---|---|
| get_publications_resource | Resource returning JSON list of cached Substack publications. |
TDQS
Scored across 17 tools
Posts and notes have parallel tool sets, and most operations are distinct (list, search, sync, save, unsave). However, get_saved_post vs get_post_content and get_saved_note vs get_note_content overlap in retrieving post/note data, which could cause misselection.
Most tools use a verb_noun pattern (list_saved_posts, save_post, sync_saved_notes), but the 'saved_' prefix is applied inconsistently: save_post/unsave_post/get_post_content omit it while list_saved_posts/get_saved_post include it. saved_posts_status also breaks the verb_noun pattern.
17 tools cover two entity types (posts, notes) with parallel lifecycle operations plus three shared utilities; each tool has a clear role. Slightly heavy but reasonable for the domain.
Core lifecycle for saved posts and notes is covered: list, get, search, save, unsave, sync, and content fetch. Minor gap: no tool to manually update read state/progress despite read_state filters, and saved_posts_status is named for posts only.