Wikipedia Trends API logo

Wikipedia Trends API

Queries Wikipedia attention history, growth, and live trending pages through the Trends API.

Install Wikipedia Trends API

Pick your client, then add it in one click or paste the config.

STDIOPython
~/Library/Application Support/Claude/claude_desktop_config.json
claude_desktop_config.json
{
  "mcpServers": {
    "wikipedia-trends-api-2": {
      "command": "uvx",
      "args": [
        "trendsapi-wikipedia"
      ],
      "env": {
        "TRENDSAPI_KEY": "YOUR_VALUE_HERE"
      }
    }
  }
}

Settings → Developer → Edit Config, merge this into mcpServers, then fully quit and reopen Claude Desktop.

Values are written into the snippet above so you can paste it as is. They never leave your browser.

Claude Code command
claude mcp add --env TRENDSAPI_KEY=YOUR_VALUE_HERE --transport stdio wikipedia-trends-api-2 -- uvx trendsapi-wikipedia

Run in your terminal. Add --scope project to share it with your team through .mcp.json.

We couldn’t confirm it starts correctly

We hit an unexpected error while testing this listing automatically.

uvx trendsapi-wikipedia

Rate limit exceeded, please try again later - you have reached the maximum number of concurrent E2B sandboxes (20). If you need more, please visit 'https://e2b.dev/docs/billing'

This is an experimental automated check and can have false negatives — missing environment variables, a slow cold install, etc. It doesn’t necessarily mean something’s wrong. Last checked .

Overview

Wikipedia Trends API MCP server provides access to Wikipedia page-view attention data through the Trends API. It supports time-series queries, growth comparisons, and live trending-page results, with responses represented as indexed scores, growth records, or ranked rows. Reach for it when an agent needs to analyze interest in a Wikipedia article or topic over time, compare periods, or inspect current trends.

Use cases

  • Track attention for a Wikipedia article over time
  • Compare topic growth across standard or custom periods
  • Inspect currently trending Wikipedia pages
  • Load time-series results into a pandas analysis

Key features

  • Wikipedia time-series page-view scores
  • Growth analysis with preset or custom windows
  • Live trending-page rankings
  • Synchronous and asynchronous Python clients
  • Pandas-compatible time-series conversion

Security & health

What it can reach and how reliably it runs — from our own checks, not the maintainer’s claims.

ActiveLast checked

Recent health check succeeded.

21/21 checks healthy over the last 101d

Supply-chain signal

No high-severity advisories surfaced by our automated scan.

Critical 0High 0Medium 0Low 0

Scanned 13d ago via OSV.dev · trendsapi-wikipedia (PyPI)

Adoption & maintenance

Factual signals from GitHub, npm, and our automated checks — not a rating.

Last commit3mo agoMost recent push to the default branch.
Install checkInconclusiveWe hit an unexpected error running the automated check.

How Wikipedia Trends API works

What Wikipedia Trends API MCP server does

Wikipedia Trends API MCP server connects agent requests to the Trends API for Wikipedia page-view data. Its supported operations correspond to three main API methods: get_time_series returns dated values for a keyword, get_growth compares activity across one or more periods, and get_live retrieves a current ranked feed of trending pages. The API also exposes get_top_trends, which uses the same top-trends response type.

Historical results use a 0–100 index for the requested series. Each time-series point includes a date, value, and echoed keyword; volume and pipeline labels may also be present. Growth responses contain one result per requested window, including the period, growth value, direction, dates, and source values. Live results include a snapshot timestamp and ranked [rank, label] rows.

How it works

Requests are sent to POST https://api.trendsapi.ai/api with a bearer token in the Authorization header. Wikipedia history requests use the lowercase source value wikipedia and either the get_time_series or get_growth mode. Live Wikipedia requests use the exact type Wikipedia Trending rather than a source field. Mixing these conventions can produce a 400 response.

A keyword identifies the series to retrieve, so article naming matters. For example, Java and Java (programming language) represent different series. Growth can use presets such as 7D, 3M, 12M, YTD, or 2Y, and it also accepts custom recent and baseline dates. Multiple growth windows are counted as one request. Live results support limit and offset; the documented category option applies to other feed types listed by the API.

Setup and configuration

Install the Python package with pip install trendsapi-wikipedia, then set TRENDSAPI_KEY to a key obtained from trendsapi.ai. Python 3.9 or newer is required for the documented client. The same key is used by the HTTP API, and client construction can alternatively receive the key directly as an argument.

The package provides synchronous and asynchronous clients. Async calls can be combined with asyncio.gather, and each successful 200 response counts as one billed request. Time-series dataclasses can be converted with dataclasses.asdict for workflows such as loading the values into a pandas DataFrame.

Tools and capabilities

  • Retrieve a dated Wikipedia attention series for a topic.
  • Compare recent, year-to-date, or custom date windows.
  • List live Wikipedia trending pages with pagination fields.
  • Read normalized values from Python dataclasses or JavaScript objects.
  • Request other supported sources through the same client by passing a different source value where applicable.

Limitations and notes

Wikipedia Trends API MCP server requires an API key and is subject to quota limits. A 401 indicates an invalid or missing key, while 429 indicates that the quota was reached. A 404 means that no series exists for the requested keyword and should not be retried. The client retries 5xx failures before raising an error.

Raw curl responses require the JSON string in the HTTP body field to be parsed a second time; the SDKs perform that decoding. The API returns indexed values, not necessarily absolute page-view volume. Absolute volume may be absent from individual time-series points. Use exact article titles when selecting a series, and use type: Wikipedia Trending for the live Wikipedia feed.

Written by AllMCPs with AI assistance from the project’s README and listing data. How we build listings

Reviews

No reviews yet — be the first to share how it worked for you.

Frequently Asked Questions about Wikipedia Trends API

Wikipedia Trends API is an MCP server that connects agents to the Trends API for Wikipedia page-view attention data. Its main tools correspond to time-series retrieval, growth analysis, and live trending-page queries, returning indexed history, period comparisons, or ranked current-page results for requested topics.

Install the Python package with `pip install trendsapi-wikipedia` and provide a `TRENDSAPI_KEY` value. The documented client requires Python 3.9 or newer, and the same key works for direct HTTP API requests.

Use the time-series operation with a keyword and the `wikipedia` source. The API sends a POST request to `https://api.trendsapi.ai/api` and returns dated 0–100 index values; exact article titles matter because differently qualified titles are separate series.

Use the top-trends operation with `type: Wikipedia Trending`, not `source: wikipedia`. Results include a snapshot timestamp and ranked label rows, with `limit` and `offset` available for pagination.

Related MCP servers

Add a badge to your READMEShow it’s listed — live SVG, Markdown or HTML.

AllMCPs Directory Badge

Full Badge Customizer

Showcase your server listing on GitHub or your project documentation. Embed this dynamic SVG badge to highlight official listing status and live engagement.

Badge Style:
Live Dynamic SVG PreviewWikipedia Trends API AllMCPs Directory Badge
Markdown (GitHub README)
[![AllMCPs](https://allmcps.com/api/badge/wikipedia-trends-api-2?style=directory)](https://allmcps.com/mcp/wikipedia-trends-api-2)
HTML Embed
<a href="https://allmcps.com/mcp/wikipedia-trends-api-2"><img src="https://allmcps.com/api/badge/wikipedia-trends-api-2?style=directory" alt="Wikipedia Trends API on AllMCPs" /></a>