Mukoko News

io.github.nyuchi由 GitHub 账号 nyuchi 发布v1.2.0更新于 Oct 24, 2026

Pan-African news & analytics for Zimbabwe and 15 African countries: briefings and trends.

发布方自己的服务:Nhimbe Events

已验证Streamable HTTP可网页运行网页搜索与抓取数据与分析

概览

AI 生成的概览

Mukoko News 让助手读取聚合的泛非新闻,提供简报、事件追踪、搜索、文章阅读和报道分析。

可以做什么
获取非洲国家、地区或城市的新闻简报、热门话题和地点新闻,并对比不同地点或来源的报道。按关键词、标签、分类或国家搜索文章,并按 ID 或 slug 内联阅读全文。追踪某条新闻随时间的演变,列出分类和来源及其文章数量。查看热门话题、分类、关键词和来源的开放分析数据,并检测报道量的突然激增。对文章运行 AI 富化处理,仅限平台团队账户。
适用场景
当助手需要非洲时事背景时适用:国家或地区简报、跟进发展中的新闻、比较不同地点或媒体对某话题的报道,或获取开放的报道统计数据。与新闻无关的任务无需使用。
运行要求
以远程 HTTP 端点 news.mukoko.dev/mcp 运行,也可通过 npm 包用 npx 在本地运行。读取类工具可匿名使用。个性化信息流和富化工具需要 Authorization Bearer WorkOS 访问令牌,富化还要求平台团队账户。
安装前请注意
富化工具会对文章执行分类、关键词、实体和质量评分,从而修改平台数据;积压处理工具会启动长时间运行的任务;两者均仅限平台团队账户。个性化信息流需要 WorkOS bearer 令牌,属于凭据。所有新闻内容来自第三方新闻机构。

安装

在 SourceWeft 中

  1. 打开 控制台中的 Mukoko News,将其添加到工作区。
  2. 为需要使用其工具的对话启用该服务。

Web executable,通过 Streamable HTTP。 远程服务在工作区中配置后即可从网页运行时运行。

交给智能体安装

把这段提示词粘贴到 Claude Code、Codex、Cursor 等智能体,或 SourceWeft 对话中。智能体会读取该服务器的安装指南,先向你展示发布者、端点和登录方式,经你同意后再把它添加到你的客户端。密钥不会写进任何命令。

阅读 https://sourceweft.com/mcp/io.github.nyuchi%2Fmukoko-news/install.md,并按其中说明把这个 MCP 服务器接入我的客户端。修改任何配置之前,先告诉我它的发布者、端点和登录方式,等我确认。不要把 API 密钥写进命令或我会提交的文件;问我密钥应从哪里获取。

查看智能体所依据的安装指南

其他 MCP 客户端

把它添加到你客户端的 mcpServers 配置中。

{
  "mcpServers": {
    "mukoko-news": {
      "type": "http",
      "url": "https://news.mukoko.dev/mcp"
    }
  }
}

README

Mukoko News

Pan-African news, in one place.

"Mukoko" means beehive in Shona — where the community gathers and stores knowledge. Mukoko News aggregates hundreds of African newsrooms into one feed, so a reader in Harare can follow Lagos, Nairobi and Dakar without opening twenty tabs.

All 54 African Union member states are in scope. How many are live is a number the app measures rather than asserts — see Coverage.

Version: 4.58.0  ·  Live: news.mukoko.com

Read the news →  ·  Join the Discord →  ·  Contribute →


[TypeScript] [Next.js] [React] [Tailwind CSS] [MongoDB] [Vitest] [Vercel]

[Discord] [Live site] [CI] [PRs Welcome]


The sibling repos. This one is the reader-facing web app. The gateway is the public API and MCP server; the pipeline does the ingestion and enrichment. Issues land in whichever repo owns the code.


What is this?

This repository is the Next.js 15 frontend for Mukoko News, deployed on Vercel. It is one part of a three-repo platform:

RepoRole
mukoko-dev/mukoko-news (this repo)Web frontend — Next.js 15, Vercel
mukoko-dev/mukoko-news-gatewayPublic API + MCP server — Cloudflare Workers
mukoko-dev/mukoko-ingestion-pipelineData pipeline — Fly.io + Cloudflare

The frontend reads news data directly from MongoDB Atlas via Next.js Server Actions.


Features

  • Pan-African coverage — see Coverage for what that claim means
  • Discover — browse by country, category, or source
  • NewsBytes — TikTok-style vertical swipe feed for quick headlines
  • Search — full-text search across all articles
  • Dark mode — respects system preference
  • Embed widgets — drop a news feed into any site with one <script> tag
  • MCP server — AI assistants can query Pan-African news at news.mukoko.dev/mcp
  • Accessible — Radix UI primitives, WCAG AAA contrast, Schema.org structured data

Coverage

All 54 African Union member states are in scope. The number that is live is a query, not a constant.

getLiveCoverageAction() counts the countries that actually cleared the publishing bar in the last 30 days, and coverageFragment(n) / coverageClaim(n) in src/lib/constants.ts are the only sanctioned wording — every page, meta tag and JSON-LD blurb interpolates one of them. So a country that starts producing appears on its own, and one that goes quiet drops off on its own, with no code change and nobody editing a number in a file.

This README deliberately does not print the current figure. A hard-coded count in a document nothing tests is exactly how the app came to claim "16 African countries" on nine surfaces that had each drifted apart. src/lib/__tests__/coverage-claim.test.ts enforces the rule for src/; here it is enforced by not writing one down.

Contributing

We welcome contributions to the frontend — UI improvements, new features, bug fixes, accessibility, tests, and documentation are all fair game. You do not need a database connection to contribute: the whole suite runs against mocked data, and most UI work can be done with the dev server pointed at the live API.

See CONTRIBUTING.md for the full guide, and come say hello in the Discord — it is the fastest way to get a question answered or to find out whether someone is already on the issue you picked.

Quick start for contributors

bash
# Prerequisites: Node.js 20+, pnpm 10+git clone https://github.com/mukoko-dev/mukoko-news.gitcd mukoko-newspnpm install
# Run the test suite — no credentials neededpnpm test
# Start the dev server (reads from the live API by default)cp .env.example .env.localpnpm dev

Open http://localhost:3000.

What you can work on without credentials

  • All React components in src/components/
  • Page layouts and routing in src/app/
  • The embed widget script in public/embed/
  • Any of the unit and integration tests — they all mock the data layer
  • Documentation and accessibility improvements

Running tests

bash
pnpm test             # full suitepnpm test:watch       # watch modepnpm test:coverage    # with coverage report

Tech stack

LayerTechnology
FrameworkNext.js 15, App Router, React 19
StylingTailwind CSS 4, CSS variables
ComponentsRadix UI (accessible primitives)
IconsLucide React
Themenext-themes
AuthWorkOS AuthKit
DataMongoDB Atlas via Server Actions
TestsVitest, React Testing Library
DeployVercel

Design system

Mzizi is the upstream source for the palette, the background scale and the type ramp. Be precise about how that binding works, because it is looser than "read from Mzizi" suggests:

  • src/app/globals.css holds this app's copy of the values. Nothing is fetched at build time or at runtime — there is no Mzizi package dependency and no network call.
  • src/app/__tests__/design-tokens.test.ts parses that stylesheet and asserts every value against a SNAPSHOT object literal inside the test file itself. There is no separate snapshot artefact.
  • That snapshot is a copy of what mzizi_get_tokens returned on a dated, recorded refresh. It is updated deliberately, by a human re-querying the MCP in a reviewed change — never by relaxing an assertion.

So CI catches globals.css drifting away from the frozen copy. It does not catch Mzizi itself moving; that is what the deliberate refresh is for.

Mzizi's full palette is 21 colour families — seven minerals, seven heritage, seven experimental. This app uses the seven minerals; these four are the ones you meet first:

RoleLightDarkMineral
--primary#4B0082#B388FFTanzanite
--secondary#0047AB#00B0FFCobalt
--success#004D40#64FFDAMalachite
--surface#EEEEEC#131211(Mzizi surface — a background step, not a mineral)

Fonts: Noto Serif (display/headings), Noto Sans (UI/body), JetBrains Mono (data and labels) — self-hosted via next/font.


Embed widget

Add a Mukoko News feed to any website:

html
<script src="https://news.mukoko.com/embed/widget.js"        data-layout="cards"        data-feed="latest"        data-country="ZW"></script>

Layouts: cards · compact · hero · ticker · list
Feeds: top · featured · latest · location
Country: any ISO 3166-1 alpha-2 code (e.g. ZW, KE, ZA, NG)


MCP server

AI assistants and agents can query Pan-African news via the Model Context Protocol:

json
{  "mcpServers": {    "mukoko-news": {      "type": "http",      "url": "https://news.mukoko.dev/mcp"    }  }}

The read tools answer anonymously. The server itself lives in mukoko-dev/mukoko-news-gateway and is deployed to news.mukoko.dev, not to this app — news.mukoko.com serves no /mcp route.


Project structure

src/├── app/              # Pages (Next.js App Router)├── components/│   ├── ui/           # Primitives (Button, Card, Skeleton, ErrorBoundary, …)│   ├── layout/       # Header, footer, mobile nav│   └── *.tsx         # Feature components (ArticleCard, HeroCard, ShareModal, …)├── contexts/         # PreferencesContext, CoverageContext (theme via next-themes)└── lib/    ├── actions/      # Server Actions — all database reads go through here    ├── mongodb/      # MongoDB query helpers    ├── constants.ts  # Countries, categories, URL utilities    └── utils.ts      # Formatting + security helperspublic/└── embed/            # Self-contained widget script

Security

We take security seriously. Report vulnerabilities by email to [email protected] — please do not open a public GitHub issue. See SECURITY.md for details.


Licence

This repository ships no LICENSE file, and package.json declares no license field. Despite the wording below, no licence is currently granted — a LICENSE file needs adding before the "open-source contributors" framing is accurate.

© Nyuchi Africa (PVT) Ltd.


"Ndiri nekuti tiri" — I am because we are

Built by Nyuchi Web Services and contributors.

来源:README.md,提交 077e3fa

工具

16

get_briefing

Answer "What's happening in [place/topic]?" — top story, recent articles, and trending topics in one call. Accepts country codes (ZW, KE), region names (East Africa, Southern Africa), category topics (politics, business), or omit focus for a pan-African overview. Returns short excerpts with word counts and app links only — call get_article with an article id to read a full article body inline.

输入参数focuslimit

track_story

Follow the development of a news story over time. Returns articles in chronological order showing how a story evolved. Use since to control the lookback window.

输入参数limitsincetopic必填country

get_location_news

News from a specific place in Africa. Accepts country codes, country names, region names, or city names.

输入参数limitcategorylocation必填

compare_locations

Compare news coverage between 2–4 African countries or regions side by side.

输入参数limittopiclocations必填

get_source_view

See how a specific news source is covering a topic.

输入参数limittopicsource必填

find_stories

Search articles by keyword, tag, category, or country. Results carry short excerpts, word counts, and app links only — call get_article with a result's id to read the full article body inline.

输入参数qtaglimitcountrycategory

get_article

Read a single article by ID or slug. Returns the full article body inline as markdown (truncated at ~8000 characters with a link to continue in the app) plus source metadata and the Mukoko app URL. Use this after a list tool (get_briefing, find_stories, …) to read an article without leaving the conversation.

输入参数id必填

list_categories

List all news categories with article counts.

无需输入参数。

list_sources

List active news sources. Optionally filter by country code.

输入参数country

get_stats

Platform statistics: total articles, active sources, and today's output.

无需输入参数。

get_my_feed

Personalised news feed based on the authenticated user's article likes and saves. Requires Authorization: Bearer <WorkOS access token>.

输入参数limit

detect_surge

Detect sudden spikes in news coverage — compares last 24h against 7-day baseline. Surfaces unusual increases like crime up 5× in Bulawayo or a football surge in Ghana.

输入参数limitlocation

get_content_analytics

Open data breakdown of news coverage by category, country, and keyword for a given period.

输入参数periodlocation

trigger_enrichment

Manually run the AI enrichment agent over existing articles (classification, keywords, entities, quality scoring). RESTRICTED to platform-team accounts — requires a WorkOS bearer token issued inside the platform-team org. By default enriches the most recent un-enriched articles; pass article_ids to target specific ones, or reset_attempts to re-run articles that previously hit the failure cap.

输入参数limitarticle_idsreset_attempts

drain_enrichment_backlog

Drain the ENTIRE un-enriched article backlog, not just one batch. RESTRICTED to platform-team accounts (WorkOS bearer issued inside the platform-team org). Fire-and-forget: asks the pipeline worker to enrich un-enriched articles in batches (oldest first) until the backlog is clear, running independently of the automatic 10-minute sweep. Returns immediately; use trigger_enrichment for a single targeted batch instead.

无需输入参数。

版本历史

1
  1. v1.2.0最新Sep 16, 2026

评分

已满足适用检查项的 90%

该评分衡量此收录条目的完整程度,依据注册中心条目、端点与公开来源计算得出。它不是对服务器本身的评价,也不表示服务器安全或当前可用:可连通性是带日期的检查结果,评分也不包含安装量或用户评价。

  • 近 30 天内可连通必需25 分
  • 已声明认证方式必需10 分
  • 已列出工具必需15 分
  • 描述必需15 分
  • 图标10 分
  • 文档15 分
  • 许可证10 分

    请在仓库或注册中心条目中声明许可证。

其他 Mukoko 集成