MyNews MCP Server
Enables AI agents to fetch categorized news headlines and full article text from a multi-topic RSS aggregator, with no API keys required.
README
MyNews — Vazghen's news feed
A multi-topic news aggregator that doubles as an API your AI agents can read. One small Express server pulls RSS for 16 topics, serves a designed browser feed, and exposes the same data as a REST + MCP API — including full readable article text, not just headlines. No API keys required.
Live: https://mynews-nine.vercel.app · Repo: https://github.com/iamvazghen/mynews
/ landing page
/dashboard.html the live feed — filter, sort by newest/category, timeframe, search
/api/* the agent API (REST), also exposed over MCP via mcp.js
Why I built it (portfolio note)
A focused full-stack project that solves a real problem I have: I read across ~16 unrelated topics, and I want my own agents to read them too. It demonstrates:
- Full-stack JS — Express API, RSS aggregation, in-memory caching, HTML→text article extraction.
- Design — a hand-built Cobalt design system (OKLCH tokens, Space Grotesk / Inter / JetBrains Mono), responsive, reduced-motion-safe; no UI framework.
- Agent integration — the same API is consumed by a browser and by LLM agents over MCP, so a scheduled agent can fetch headlines and then read full articles to summarize.
- Shipping — deployed to Vercel (serverless) from GitHub with CI on push, and to a private VPS as a systemd service.
It's deliberately small: ~1 backend file, 1 feed-config file, a static frontend, and an MCP shim.
Run it locally
npm install
npm start # → http://localhost:3000
npm test # unit checks for reading-time + filter/sort
The feed is live immediately — every card shows when it dropped and how long it takes to read; sort by newest or category, pick a timeframe, search.
The live feed — what's wired and how to change it
Everything goes through feeds.js — the only file you edit. Each category is
{ slug, label, feeds: [rss urls] }. A dead/blocked URL is silently skipped, so
the page never breaks; swap it when convenient.
- Add a source: drop another RSS URL into a category's
feedsarray. - Add a category: append a new
{ slug, label, feeds }object. Frontend, API and chips pick it up automatically. - Find a feed: most sites expose
/feed/,/rss, or/feed.xml. Topics without first-party RSS use Hacker News query feeds (hnrss.org/newest?q=...).
Optional API keys (none required)
RSS covers all 16 topics today, so nothing is needed to run or deploy. Add a key only if you want more than a source's feed exposes — each is a small change:
| Want | Source | Key |
|---|---|---|
| Broad multi-source headlines | NewsAPI / GNews | free tier |
| Trending repos (richer than the RSS mirror) | GitHub GET /search/repositories?sort=stars |
a PAT |
| Reddit topic feeds | reddit.com/r/<sub>/.rss |
none (already RSS) |
| Crypto prices alongside news | CoinGecko | none |
Store keys as env vars (add dotenv) — never hardcode them.
The API
CORS is open, so any agent or page can call it.
GET /api/categories
→ [{ slug, label }, ...]
GET /api/news?category=ai,crypto&since=24&sort=newest&q=bitcoin&limit=50
category comma-separated slugs (omit = all)
since only items from the past N hours (0 = all time)
sort newest | category
q keyword filter on title + snippet
limit max items (default 200, cap 500)
→ { count, totalReadingMinutes, items: [{ title, link, source,
category, publishedAt, readingMinutes, snippet, image }] }
GET /api/article?url=<article-url>
→ { url, title, author, published, source, wordCount, readingMinutes, content }
full readable body text, boilerplate stripped — what an agent reads to summarize a story
curl "https://mynews-nine.vercel.app/api/news?category=agents,ai&since=24&limit=10"
curl "https://mynews-nine.vercel.app/api/article?url=https://www.theverge.com/some-story"
Connect your AI agent — step by step
The API is public and keyless, so wiring any agent takes three steps.
- Point at the API. Base URL
https://mynews-nine.vercel.app/api. - Get headlines.
GET /api/news?category=ai,crypto&since=24→ titles, sources, timestamps, read-time. - Read the full story.
GET /api/article?url=<link from step 2>→ clean body text to summarize.
That's enough for any framework (LangChain, a custom tool, a cron + curl). For MCP-native agents, use the bundled server instead of raw HTTP:
npm i @modelcontextprotocol/sdk zod
NEWS_API=https://mynews-nine.vercel.app node mcp.js # speaks MCP over stdio
It exposes three tools: get_news, get_article, list_categories.
OpenClaw (the simplest path)
Add one block to ~/.openclaw/openclaw.json under mcp.servers, then restart the
gateway — every agent gains the three tools:
"mynews": {
"command": "/usr/bin/node",
"args": ["/home/openclaw/newsfeed/mcp.js"],
"env": { "NEWS_API": "https://mynews-nine.vercel.app" }
}
A morning-news cron then calls get_news for the day's headlines and get_article
for the full text of each story it wants to summarize — no scraping glue.
Deployments
- Vercel (public, online): Express runs as a serverless function (
api/index.js+vercel.json);public/is the static site. Auto-deploys on push tomain. - VPS (private): a systemd
--userunit (newsfeed.service,Restart=always) on port 3000. Manage withsystemctl --user restart|status newsfeedandjournalctl --user -u newsfeed -f.
Files
server.js— API + cache + reading-time + article extractionfeeds.js— the 16 categories → RSS URLs (edit this)public/— Cobalt-themed landing + feed (index.html,dashboard.html,app.js,styles.css,landing.css,tokens.css)api/index.js+vercel.json— Vercel serverless wiringmcp.js— MCP server (get_news / get_article / list_categories)test.js— unit checks
Recommended Servers
playwright-mcp
A Model Context Protocol server that enables LLMs to interact with web pages through structured accessibility snapshots without requiring vision models or screenshots.
Magic Component Platform (MCP)
An AI-powered tool that generates modern UI components from natural language descriptions, integrating with popular IDEs to streamline UI development workflow.
Audiense Insights MCP Server
Enables interaction with Audiense Insights accounts via the Model Context Protocol, facilitating the extraction and analysis of marketing insights and audience data including demographics, behavior, and influencer engagement.
VeyraX MCP
Single MCP tool to connect all your favorite tools: Gmail, Calendar and 40 more.
Kagi MCP Server
An MCP server that integrates Kagi search capabilities with Claude AI, enabling Claude to perform real-time web searches when answering questions that require up-to-date information.
graphlit-mcp-server
The Model Context Protocol (MCP) Server enables integration between MCP clients and the Graphlit service. Ingest anything from Slack to Gmail to podcast feeds, in addition to web crawling, into a Graphlit project - and then retrieve relevant contents from the MCP client.
Exa Search
A Model Context Protocol (MCP) server lets AI assistants like Claude use the Exa AI Search API for web searches. This setup allows AI models to get real-time web information in a safe and controlled way.
Qdrant Server
This repository is an example of how to create a MCP server for Qdrant, a vector search engine.
E2B
Using MCP to run code via e2b.
Neon Database
MCP server for interacting with Neon Management API and databases