The blog as an MCP server
A public MCP endpoint that lets an assistant search the blog, browse its catalog, and retrieve complete articles.
FastAPI · MCP · PostgreSQL · Hybrid search

How the pieces connect
An MCP client
Public MCP endpoint
search_articles
list_articles
get_article
Replay the captured session
Engineering brief
- Problem
- Make the site’s published articles available to assistants through inspectable tool contracts.
- My contribution
- Implemented a public MCP endpoint with search_articles, list_articles, and get_article, sharing the site’s retrieval services.
- Key decision
- Expose three read-only tools with explicit error handling and reuse the existing search and Markdown services.
- Result & evidence
- A real recorded client session covers initialization, tool discovery, search, retrieval, and a missing-article error; requests and responses are saved.
- Limitations
- The recording verifies the demonstrated client flow, not compatibility with every MCP client. The public companion uses synthetic data.
What it does
Connect an MCP client to https://thelatentsource.com/mcp. It exposes three read-only tools: search_articles, list_articles, and get_article.
The narrated demonstration records a real client session: initialization, tool discovery, article search and retrieval, and an intentional missing-article error. The saved JSON contains the requests and responses.
How it is built
The technical post explains the JSON-RPC transport, tool contracts, shared search and Markdown services, error handling, and the test isolation bug behind the build.
Let agents read this blog