wikipedia-mcp-server AGENTS.md

wikipedia-mcp-server AGENTS.md is an instructions file for Codex, OpenCode from surendranb/wikipedia-mcp-server. It costs 580 tokens per session, scanned C, original, MIT.

An operating manual for installing and connecting the Wikipedia retrieval server to AI tools such as Claude Code, Cursor, Codex, or Gemini.

In plain words
What is it for?
Installing the server, adding it to an AI client, launching it through standard input and output, and understanding its available lookup tools.
Why use it?
It provides the setup commands and configuration needed before an agent can retrieve Wikipedia content through the server.

Instructions file for CodexOpenCode

Written for Codex and OpenCode: the file is AGENTS.md. Also seen: mentions Claude Code; mentions AGENTS.md; mentions Codex.

Install

Getting it into your agent

One page per mod, every tool's command on it. A separate URL per tool would split the same page into five that compete with each other.

agentmods
npx agentmods add instructions/surendranb/wikipedia-mcp-server/agents-md
Clone the repo
git clone --depth 1 https://github.com/surendranb/wikipedia-mcp-server

Made for: Codex, OpenCode.

Wrote this? Show the measurements

A badge with what this costs and how it scanned, read live from this page, so it follows the numbers instead of freezing them. Markdown for a README, HTML for a documentation site or a project page.

agentmods badge for wikipedia-mcp-server AGENTS.md

README.md
[![agentmods](https://agentmods.dev/badge/instructions/surendranb/wikipedia-mcp-server/agents-md.svg)](https://agentmods.dev/instructions/surendranb/wikipedia-mcp-server/agents-md)
Your own site
<a href="https://agentmods.dev/instructions/surendranb/wikipedia-mcp-server/agents-md"><img src="https://agentmods.dev/badge/instructions/surendranb/wikipedia-mcp-server/agents-md.svg" alt="Measured on agentmods" height="20"></a>
Per session 580 This file is loaded in full into every session.
When invoked 580 The same file — it is already loaded in full.
Security scan C 2 findings. Scan, not verified.
Origin original No closer match found in the catalogue.
Token cost

What it costs to keep this loaded

Counted locally with the o200k_base tokenizer, which is exact for GPT models; Claude uses its own tokenizer and its counts differ. Treat this as one consistent yardstick across the catalogue rather than a bill. Prices are per million input tokens.

ModelPer sessionOnce invoked
Fable 5.1 $0.00580 $0.00580
Opus 5 $0.00290 $0.00290
Sonnet 5 $0.00116 $0.00116
Haiku 4.5 $0.00058 $0.00058

Measured 5d ago against content hash 940667aa0cb4, method: parsed. Prices are Anthropic first-party input rates as of 2026-09-06, from the pricing page.

Security

Grade C, and why

wikipedia-mcp-server AGENTS.md scanned grade C with 2 findings against 26 rules in 11 categories — prompt injection, anti-refusal, data exfiltration, privilege escalation, supply chain, agent snooping, system-prompt leakage, SSRF and excessive agency — measured 5d ago.

A static scan of the body, not an audit. Every finding is printed with the line that produced it so you can judge whether it matters here. A mod is markdown that instructs an agent; that is exactly why what it instructs is worth reading.

Downloads and executes remote codehighSupply chain

curl | sh runs whatever the server returns today, which is not necessarily what it returned when this was reviewed.

curl -fsSL "https://wikipedia.builditwithai.xyz/install" | bash

Makes network callslowCapability

Not a fault in itself. Listed so you know the mod talks to something, and to what.

curl -fsSL "https://wikipedia.builditwithai.xyz/install" | bash
AGENTS.md · 59 lines

How it starts

The opening of the file, as written. The whole thing — 59 lines — stays where its author put it; the contents beside it link to each section on GitHub.

AGENTS.md — Agent Operating Manual

For AI Agents (Claude Code, Cursor, Codex, Gemini, Antigravity, OpenCode, Aider) connecting to or executing wikipedia-mcp-server.


⚡ 1. Fast Install & Client Wiring (Start Here)

In 90% of cases, you just need to install and configure this MCP server for your user:

# 1-Line Universal Auto-Installer (Configures Claude Code, Cursor, Claude Desktop & Antigravity)
curl -fsSL "https://wikipedia.builditwithai.xyz/install" | bash

# Or launch directly via stdio:
uvx mcp-server-wikipedia
npx -y mcp-server-wikipedia

Client Config Snippet (mcp.json / claude_desktop_config.json)

{
  "mcpServers": {
    "wikipedia": {
      "command": "uvx",
      "args": ["mcp-server-wikipedia"]
    }
  }
}

📖 2. What This Repo Is

A surgical, token-efficient Wikipedia knowledge retrieval MCP server. It strips HTML boilerplate, navigation boxes, citations, and edit links to give you clean, high-signal Markdown.

Primary Tools Available:

  • get_summary: Fetch the concise lead summary paragraph of any topic (best for quick factual verification).
  • get_article: Fetch the complete article formatted in structured Markdown.
  • search: Search Wikipedia with autocomplete and ranking.
  • get_section: Retrieve a specific section by header name to save context window tokens.
  • get_links & get_categories: Traverse taxonomic relationships and citations.

👤 3. How to Handle the Human

  • Zero Credentials Needed: No API keys, tokens, or environment variables are required.
  • Fast Answers: Default to get_summary for quick answers. Only pull full articles (get_article) or sections (get_section) when deep domain knowledge is needed.

⚠️ 4. Quirks & API Landmines (Zero-Hallucination Rules)

  1. Token Efficiency: Full Wikipedia articles can be 10,000+ words. Do not call get_article indiscriminately. Use searchget_summaryget_section to conserve your context budget.
  2. Disambiguation Pages: If a query returns multiple topics (e.g. "Mercury"), the tool returns a structured list of disambiguation options. Pick the exact title corresponding to your user's context.
  3. Language Code: Default is en. Pass lang="es", lang="de", lang="fr", etc. for non-English queries.

Read the full file on GitHub · 59 lines

Changes

What this file has done since we first saw it

Hashed on every crawl. A supply-chain change to an agent config is a question of when, not whether, so the history is kept rather than the latest state alone.

  1. 5d ago First seen · 59 lines · 580 tokens per session scan C 940667aa0cb4

Subscribe to this mod's changes

wikipedia-mcp-server AGENTS.md is an instructions file published in the GitHub repository surendranb/wikipedia-mcp-server (0 stars, last pushed 16d ago), licensed MIT. It adds 580 tokens to every session, about $0.0029 per session on Opus 5. A static security scan graded it C with 2 findings (downloads and executes remote code, makes network calls). No closer match exists in the catalogue, so it is treated as the original; first seen 2026-08-31.