How to Use Substack publication search in Windsurf
Find posts matching a topic within one publication using Substack's own archive search. Results contain post listings, so use it to locate relevant articles before reading their text.
Prompts to try with Substack publication search in Windsurf
Copy an example into Windsurf, or ask in your own words.
Use Substack publication search to find Noahpinion posts about tariffs. Add a source table to the project's research notes with titles, dates, and links.
Use Substack publication search to find Lenny's Newsletter posts about onboarding. Compare the returned titles with this project's onboarding research notes and list relevant links we have not included.
Use Substack publication search to look this up and give me the result as a table. Save the result in ./assets.
Pull the latest numbers from Substack publication search and tell me what changed since last week.
Check Substack publication search and summarize what you find in three bullet points.
How to set up Substack publication search in Windsurf
Pick the way that suits you. Each takes about two minutes.
Use Spiral's MCP server
- Add the server
Open the Customize page from the Agents window and click MCPs. Under This computer, open the config file, or edit it directly: ~/.config/devin/mcp_config.json on macOS and Linux, %APPDATA%\devin\mcp_config.json on Windows. Add this:
{ "mcpServers": { "spiral": { "url": "https://api.spiral.ai/mcp" } } } - Sign in
Click Authenticate on the Spiral server in Customize › MCPs, or let the agent call Spiral once: your browser opens. Sign in to Spiral, pick the organization and click Authorize. No API key.
devin mcp login spiral
- Check it
Spiral is listed under This computer in Customize › MCPs. From the terminal:
devin mcp list
Use the Spiral skill
- Send Windsurf this message
Your agent reads Spiral's skill and sets itself up.
set up https://spiral.ai/SKILL.md
- Sign in or paste a key
Approve Spiral in the browser, or give the agent a key from the console.
Use the Spiral CLI
- Install and sign in
Installs the Spiral CLI, signs you in and adds its skill to your coding agents.
npx -y spiral-cli@latest init
Call the Spiral API
- Create an API key
In the console, under API keys.
- Run Substack publication search
One request; the result comes back by polling or a webhook.
curl https://api.spiral.ai/v1/runs \ -H "Authorization: Bearer $SPIRAL_API_KEY" \ -H "Content-Type: application/json" \ -H "Idempotency-Key: $(uuidgen)" \ -d '{ "provider": "alexandria", "model": "substack-com/newsletters/search", "input": { "query": "<query>", "publication": "<publication>" } }'
Then paste one of the prompts above: Windsurf finds Substack publication search on Spiral, shows the price and runs it.
Substack publication search providers and prices
Spiral runs Substack publication search through Alexandria. Open a card for today's price, with every fee included.
Settings you can ask for
Ask Windsurf for any of these in your prompt.
| Setting | Allowed values | Default | Description |
|---|---|---|---|
| Sort | new, top, or pinned | new | new = newest first, top = most popular, pinned = the publication's pinned posts only (usually one, a single page). |
| Limit | 1 to 50 | 12 | Posts to return. Substack serves 25 per request, so larger pages take two requests. |
| Offset | 0 to 10000 | 0 | Posts to skip. new listings reach at most 250 by offset; follow next_cursor for deeper pages. Ignored when cursor is set. |
Every API field of Substack · Search is on its tool page: open its card above.
What can you do with Substack publication search in Windsurf?
Build a linked research brief from Substack publication listings and available article text. A coding agent can turn the results into project notes that separate complete articles from paid previews.
Prepare a newsletter reading brief
Browse recent publication entries, find articles about a chosen subject, and summarize the available text with links. Label paid previews so readers know which summaries cover only part of an article.
Check an editorial pitch
Review a newsletter's recent titles, search the proposed subject, and read relevant public articles before pitching. Turn the findings into a short list of covered angles and questions still worth investigating.
Compare published arguments
Select articles from public newsletters covering the same issue. Use their listings and available text to compare claims, dates, and supporting examples in a linked research memo.
Build a topic reading list
Find relevant titles in a publication's archive or topic results, then inspect the available articles to write useful reading notes. Keep links and distinguish complete articles from previews.
Prepare interview questions
Review a public newsletter's recent coverage and search an interview topic. Read selected articles to draft questions tied to the publication's actual claims and examples.
Review product management advice
Find relevant Lenny's Newsletter articles through recent listings or topic searches. Compare the available text to identify recommendations a product team could discuss, with a source link for each.
More on Substack publication search and Windsurf
Overview
Substack publication search in other agents
Questions about Substack publication search in Windsurf
Can Windsurf use Substack publication search?
Yes. Add Spiral to Windsurf as an MCP server, and Windsurf can find and run Substack publication search like any built-in tool.
How much does Substack publication search cost in Windsurf?
$0.00873 per call. You pay from your Spiral balance as you go, with no subscription, and a failed run is not charged. Your Windsurf plan is separate.
Do I need an Alexandria account to use Substack publication search in Windsurf?
No. Spiral runs Substack publication search on its own Alexandria account. You sign in to Spiral once and never paste a key.
How long does it take to set up Substack publication search in Windsurf?
About two minutes: add the server, then sign in, then check it.
Does Windsurf wait while Substack publication search runs?
Substack publication search runs in the background. Windsurf starts the run, checks on it and gives you the json when it's ready.
Does a publication's website contain every email it sends?
No. Substack posts addressed to free subscribers only are sent by email and do not appear on the publication page, so a public archive cannot represent every email.
How much of a paid post is public?
The writer decides where the paywall falls within the post. Public previews therefore vary in length, and post retrieval returns the preview for paid content.
Can an older free article become paywalled?
Yes. Substack lets publishers automatically paywall their free archive after a chosen period, so an article's public availability can change as it ages.
Can published articles change after their original release?
Yes. Writers can edit published posts, and those edits appear on the web and in Substack's apps. The available article can therefore differ from an earlier reading.
Does the displayed publication date prove when an article first appeared?
No. Substack allows writers to change a published post's displayed date to a past date, so that date alone does not establish its first public appearance.
Start using Substack publication search in Windsurf
One Spiral account for every tool your agent needs. No subscription; you pay per run.
Paste this into Windsurf:
set up https://spiral.ai/SKILL.md


