NewsBlog Composer MCP
A research and audit tool for people who write. It finds corroborated stories, pulls out facts with their sources attached, mines keywords from that reporting, hands the writer a brief, reviews the draft they wrote, and builds the schema, banner prompt and publishing pack around it.
It does not write the prose, on purpose. A model writing the sentences is exactly what an AI detector catches, and no amount of cliché-removal changes that: detectors measure how predictable the wording is, not how many stock phrases it contains. More to the point, the byline claims a person wrote it.
So the split is: the server does search, verification, extraction, keywords,
structure, schema and auditing. The person writes the sentences. draft_brief
gives them everything to start with; review_draft tells them where the draft is
weak without rewriting a word.
It runs with zero API keys. Every credential is an upgrade, not a requirement. See No keys? Start here.
Install
Windows:
git clone https://github.com/Mohammed-Jameal-J/newsblog-composer-mcp.git
cd newsblog-composer-mcp
py -m venv .venv
.venv\Scripts\activate
pip install -e .
copy .env.example .env # optional: every value in it is optional too
macOS / Linux:
git clone https://github.com/Mohammed-Jameal-J/newsblog-composer-mcp.git
cd newsblog-composer-mcp
python3 -m venv .venv
source .venv/bin/activate
pip install -e .
cp .env.example .env # optional: every value in it is optional too
Check what it can do on your machine:
python -m newsblog_mcp.diagnose "your test headline here"
That prints which providers are configured, which will be tried, and the result
of a live verify_news call. Run it before wiring the server into a client —
if search is blocked by a corporate proxy or VPN, this is where you find out.
Offline test suite (no network needed):
python tests\smoke_test.py
Connect it
Claude Desktop — %APPDATA%\Claude\claude_desktop_config.json:
{
"mcpServers": {
"newsblog": {
"command": "C:\\path\\to\\newsblog-composer-mcp\\.venv\\Scripts\\python.exe",
"args": ["-m", "newsblog_mcp.server"]
}
}
}
On macOS the file is ~/Library/Application Support/Claude/claude_desktop_config.json
and the command is /path/to/newsblog-composer-mcp/.venv/bin/python.
Claude Code — .mcp.json in your project:
{
"mcpServers": {
"newsblog": {
"command": ".venv/Scripts/python.exe",
"args": ["-m", "newsblog_mcp.server"]
}
}
}
Any other MCP client: launch python -m newsblog_mcp.server over stdio.
Where it keeps your files
Installed from PyPI, the server writes to your user data directory, so nothing is lost when you upgrade:
| Windows | %LOCALAPPDATA%\newsblog-composer-mcp |
| macOS | ~/Library/Application Support/newsblog-composer-mcp |
| Linux | ~/.local/share/newsblog-composer-mcp |
That folder holds profile.json (the identity you set at first run), output/
(every generated post) and an optional .env. Set NEWSBLOG_DATA_DIR to put
them somewhere else. Run from a cloned checkout instead and everything stays in
the project folder, beside the code.
python -m newsblog_mcp.diagnose prints the exact paths for your install.
Publishing and connecting
Claude Desktop / Claude Code run it over stdio, which is what the install section above sets up.
ChatGPT cannot spawn a local process, so stdio will never reach it. Run the same server over HTTP and deploy it behind HTTPS:
newsblog-composer-mcp --http --host 0.0.0.0 --port 8000
Then in ChatGPT: Settings → Connectors → Advanced → Developer mode, then Add
custom connector pointing at https://your-host/mcp. Custom connectors need a
Pro, Team, Enterprise or Edu plan.
Publishing to the MCP Registry needs the package on PyPI first, then the
mcp-publisher CLI with server.json in this repo. The name field must match
your GitHub username: io.github.<username>/newsblog-composer.
How to test it
Three levels, cheapest first.
1. Offline, no network — proves the logic.
python tests\smoke_test.py
159 checks covering schema parity, the SEO audit, AI-word detection, publisher identity behind aggregator links, clustering, the publishing pack, the derived image concept and the install paths. All should pass in about two seconds.
2. Network — proves search reaches you.
python -m newsblog_mcp.diagnose "a headline you saw in the news today"
One line per provider with timings, then the verdict. What you want to see is
independent_publishers naming several real outlets and reference_candidates
holding real publisher URLs.
3. A whole post, end to end.
python examples\build_today_example.py
Builds a complete package from a real story using facts already in the file, and
prints the keywords, schema validation, AI-word check, human score and SEO score
before writing the output folder. Use it as the reference for what a good run
looks like. examples\build_mistral_example.py does the same for the
hand-written reference post.
4. In Claude Desktop, after restarting it:
Use find_stories to get today's AI stories, pick the best corroborated one, and build the full blog package. Run find_ai_words until it comes back clean, then give me the publishing pack and the paste file.
The tools
| Tool | What it does | Needs a key? |
|---|---|---|
capabilities |
Reports which providers are live and which fallbacks are in use | no |
find_stories |
Turns a topic into today's actual stories, grouped and ranked by corroboration and freshness | no |
verify_news |
Searches news providers, keeps matching results, counts independent publishers | no (keyless RSS) |
fetch_article_facts |
Downloads sources, extracts facts, short attributed quotes and figures | never |
draft_brief |
Hands the writer the structure, sourced facts, keywords and FAQ candidates | never |
review_draft |
Reads the writer's draft and says where it is weak. Rewrites nothing | never |
humanize_text |
Optional rewrite pass. Prefer review_draft |
optional |
find_ai_words |
Finds every stock AI phrase with the sentence it sits in | never |
score_ai_text |
0–100 human-readability score | optional |
generate_image |
Concept banner, trademark filter applied first | no (watermarked) |
seo_keywords |
Mines keywords from the fetched sources; long-tail and FAQ queries from Google autocomplete | no |
seo_audit |
Scores the finished body against on-page rules, returns fixes | never |
build_publishing_pack |
Title, labels, permalink, alt text and a paste-ready Gemini image prompt | never |
build_schema |
Renders HTML body + both JSON-LD blocks, then validates them | never |
save_and_present |
Writes the package to output/, with canonical/OG/Twitter tags |
never |
Resources: newsblog://house-style (structure and sourcing rules for the
drafting step) and newsblog://humanizer-rules (the rewrite rule set).
The flow
There are two entry points, depending on what you type.
A topic — "today's AI news", "electric vehicles", "Indian fintech". There is no claim to verify yet, so start by finding out what happened:
find_stories("AI", days=1)
↓ stories grouped by event, ranked by publisher count then freshness
pick one from ready_to_write, check its age_hours
verify_news(story.headline)
↓ … and continue as below
A specific headline — start at verify_news directly. Note that an old
headline correctly returns old sources; days limits how far back to look.
verify_news(title)
↓ stop here if is_legit is false
fetch_article_facts(result.fetchable_urls) # or story.fetchable_urls
↓
seo_keywords(title, [fact.text for fact in facts])
↓ primary + secondary keywords, slug, meta title/description,
and FAQ questions taken from real autocomplete data
draft_brief(headline, facts, keywords)
↓ the writer writes the draft themselves
review_draft(draft, facts) → must_fix / worth_fixing / consider
↓ the writer revises; repeat until must_fix is empty
find_ai_words(draft) → until `clean` is true
↓
build_publishing_pack(...) → title, labels, permalink, Gemini image prompt
paste the prompt into Gemini, upload the image, take the public URL
↓
build_schema(article, faq, image, references, keywords)
↓ fix anything in validation.issues, then call again
seo_audit(html_body, primary_keyword, ...)
↓ fix everything in must_fix, then call again
save_and_present(..., meta=schema.meta, pack=pack)
Output lands in a timestamped folder under output/:
| File | What it is |
|---|---|
publish-pack.md |
Title, labels, custom permalink, search description, alt text, Gemini image prompt |
paste-into-blogger.html |
Both JSON-LD blocks then the styled body — the file you paste |
report.md |
Verification verdict, human score, AI-word status, SEO score, references |
index.html |
Standalone preview with meta, canonical, OG and Twitter tags |
body.html, *.jsonld, meta.json |
The pieces, separately |
Three guardrails are enforced in code, not left to the model:
verify_newsreturnsis_legit: falseunless at least two independent publishers match the headline, or one primary/official source does.build_schemareturnsvalidation.issueslisting every mismatch: an FAQ question that differs between the HTML and the FAQPage schema, an image URL that differs between the<img>tag andNewsArticle.image, a reference that is not a real fetched URL. A non-empty list means don't publish.seo_auditreturnsmust_fixfor the things that actually cost rankings — a duplicate H1, a missing keyword in the opening, images with no alt text, a meta description of the wrong length, fewer than two external source links.
Everything fetch_article_facts returns carries a source_url, so any claim in
the finished post can be traced back to the page it came from.
No keys? Start here
With an empty .env the pipeline still runs end to end. Here is what you get,
and what each key would change.
| Step | With no key | With a key |
|---|---|---|
| Search | GDELT DOC 2.0 — official, free, no signup, news-specific — then Bing/Google News RSS as backup | Tavily / Brave / Serper / Google CSE: cleaner snippets, higher limits |
| Article extraction | Full quality. trafilatura runs locally. | — no key exists |
| Keywords | Full quality. Mined from your fetched sources, plus keyless Google autocomplete. | — a paid keyword API would add search-volume data |
| Humanise | Returns the rule set and asks the calling model to rewrite. Works well in Claude; varies elsewhere. | Rewrite happens server-side, identical everywhere |
| Human score | Local heuristic, labelled is_real_detector: false |
A real detector's score |
| Image | Pollinations anonymous: ~1 request/15s, and may watermark | Cloudflare/OpenAI/Stability: clean, fast |
| Schema, audit, files | Full quality. | — no key exists |
Search: what changed in 2026
Brave is no longer the free recommendation. In February 2026 Brave removed its free tier and moved every plan to credit-based billing — a card is required, a $5 monthly credit covers roughly 1,000 requests, and you are billed past that.
Free options that still hold up, best first:
- GDELT — no key, no signup, no limit to speak of. Already the default.
It is a global news index, so it is genuinely good at "is anyone reporting
this", which is exactly what
verify_newsasks. Start here and only add a key if snippet quality or freshness becomes a problem. - Tavily — 1,000 credits/month, renews monthly, no card. The best keyed
option for this pipeline. Set
TAVILY_API_KEY. - Google Custom Search — 100 queries/day, no card. Needs both
GOOGLE_CSE_KEYandGOOGLE_CSE_IDfrom programmablesearchengine.google.com. - Serper — 2,500 credits, no card, but one-time only. Fine for evaluating, not for an ongoing blog.
- NewsAPI — free tier is non-commercial only and delays recent articles, which is the wrong trade for breaking news.
Free tiers move around; check each provider's own pricing page before committing.
Images: what you actually need
generate_image runs with no key, but read this before publishing anything.
Pollinations still allows anonymous requests — about one every 15 seconds, basic models — but the free anonymous tier may watermark the image, which makes it unusable as a published banner. Three ways out, cheapest first:
- Free Pollinations token — register at auth.pollinations.ai, no card. This
removes the watermark and raises the rate limit. Set
POLLINATIONS_TOKEN. Smallest change, keeps the existing provider. - Cloudflare Workers AI (recommended) — FLUX schnell, a free daily
allowance, no watermark, and it is a real production API. Set
IMAGE_PROVIDER=cloudflare,CLOUDFLARE_ACCOUNT_IDandCLOUDFLARE_API_TOKEN. Note the model returns 1024x1024, so crop to your banner ratio. - OpenAI Images or Stability — paid per image, best quality.
Whichever you use, the file lands locally. Upload it and pass the public https
URL into build_schema, or NewsArticle.image points at a path no crawler can
reach.
If you only add one key
Add Cloudflare (or the free Pollinations token) for images. Search already works properly with no key; images are the step where the keyless output is not publishable.
Honest limitations
- The human score is not proof of anything. Public AI detectors have real false-positive and false-negative rates, especially on short text and on non-native English phrasing. The keyless fallback is not a detector at all — it measures the structural tells the rewrite rules target. Present it as a directional signal and say so wherever a reader sees the number.
- The trademark filter is a safety net, not a legal opinion. It rewrites
known brand terms into generic descriptors and strips logo requests before the
prompt leaves your machine. Extend
TRADEMARKSinsrc/newsblog_mcp/providers/imagegen.pyas you hit new names, and still look at what comes back. - Freshness is yours to set.
find_stories(days=1)is same-day;days=2is the default.verify_newssearches a 14-day window unless you passdays. Feeding it a three-week-old headline returns three-week-old sources, correctly. - GDELT is an index, not an editor. It indexes a very wide range of
publishers, including low-quality ones, so two GDELT "publishers" agreeing is
weaker evidence than two known outlets agreeing. Look at the domains in
sourcesbefore trusting amediumconfidence. The RSS backups are unofficial endpoints that can change shape without warning;diagnosetells you when one has stopped working. - The SEO tools cover on-page only. Keyword relevance, structure, meta lengths, alt text, internal consistency. They say nothing about search volume, competition, or backlinks — that needs a paid keyword API, and no free tier gives real volume data.
- Generated images are local files. Upload the file and pass a public https
URL into
build_schema, orNewsArticle.imagewill point at a path no crawler can reach. - Corroboration is counted, not judged. The server counts independent publishers and flags date conflicts. Whether those publishers are all repeating one wire story is a judgement the calling model still has to make.
Layout
src/newsblog_mcp/
server.py MCP entrypoint: 10 tools, 2 resources
diagnose.py standalone connectivity check
config.py env loading, capability report
textutil.py tokenising, domains, sentence splitting, slugs
providers/
search.py Tavily, Brave, Serper, Google CSE, NewsAPI, GDELT, RSS
suggest.py keyless Google autocomplete, for long-tail and FAQ queries
llm.py Anthropic / OpenAI, used only by humanize_text
detector.py GPTZero / Sapling
imagegen.py OpenAI / Stability / Cloudflare / Pollinations + trademark filter
tools/ one module per MCP tool
templates/ article.html.j2
resources/ house_style.md, humanizer_patterns.md
tests/smoke_test.py offline test suite
output/ generated packages land here
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file newsblog_composer_mcp-0.3.0.tar.gz.
File metadata
- Download URL: newsblog_composer_mcp-0.3.0.tar.gz
- Upload date:
- Size: 114.8 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via:
twine/7.0.0 CPython/3.12.9
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
d5e41be4e1b1b6e1d0cb2027c14c4662011bd4bc228bf80ad6f033bc42bf5bc3
|
|
| MD5 |
471a08b8882e44a1c7410074c5f81627
|
|
| BLAKE2b-256 |
c7e11b91abd65bf640c310e296d316fa24a6c2f97fa0fd53b8b37af471bb47ab
|
File details
Details for the file newsblog_composer_mcp-0.3.0-py3-none-any.whl.
File metadata
- Download URL: newsblog_composer_mcp-0.3.0-py3-none-any.whl
- Upload date:
- Size: 86.6 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via:
twine/7.0.0 CPython/3.12.9
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
dd1ffd23ee470ac6dcb70b5fd7f416fee85de58e54158367f1c997fb46e44631
|
|
| MD5 |
2a90e9cb4b346c09ad645da0f5d72fcb
|
|
| BLAKE2b-256 |
91d55e4bdb2ae900ede168a98de8b888ffea8de762a2c7dce0e68030f7eeea6b
|