grokipedia-mcp-server
Click on "Deploy Server".
Wait a few minutes for the server to deploy. Once ready, it will show a "Started" state.
In the chat, type
@followed by the MCP server name and your instructions, e.g., "@grokipedia-mcp-server > search Grokipedia for the Fermi paradox and summarize the top result"
That's it! The server will respond to your query, and you can continue using it as needed.
Here is a step-by-step guide with screenshots.
grokipedia-mcp-server
An unofficial, read-only Model Context Protocol (MCP) server for Grokipedia. It lets an MCP client (Claude Desktop, Cursor, VS Code, Grok-compatible agents, etc.) search Grokipedia and read articles, sections and citations over stdio.
Not affiliated with, endorsed by, or supported by xAI or Grokipedia. It uses Grokipedia's public but unofficial, undocumented endpoints, which may change or break at any time.
Tools
Tool | Arguments | Returns |
|
|
|
|
|
|
|
|
|
|
|
|
Sections with subsections. Many articles have level-2 headings (e.g. "History") whose text lives
entirely in level-3 subsections. When the matched section's own body is empty and
include_subsections is true, get_page_section returns the subsections' text, each preceded by its
markdown heading (### Precursors and early inventions ...), still capped at 20,000 characters
(truncated). subsections always lists the nested headings, so you can also request one directly.
Where citations are used. In the article markdown served by /api/page-preview, each inline
citation is an empty-text link to the source URL, e.g. ...telephony equipment.[](https://example.org/src)
(the website renders these as [n] superscripts). get_page_citations matches those markers to the
reference list by exact URL and gives each citation sections: the headings it is cited under
([] if it is never cited inline). With include_context: true it also returns up to 3 short
snippets of the text preceding the marker. number is the reference's 1-based position in the list,
which is the number the website shows. If the page has no usable inline markers (for example when
only the HTML fallback is available), section_mapping is "unavailable" and every sections is
null; mappings are never guessed.
All tools are annotated read-only. Failures come back as a normal result with an "error" key
(for example {"error": "origin error (502)"}); a page that doesn't exist returns "found": false.
Related MCP server: Grokipedia MCP Server
Install
Requires Python 3.11–3.13. The server is installed straight from this GitHub repo (it is not on PyPI).
Option A: uv / uvx (recommended, any OS)
Install uv, then run it without a manual install:
uvx --from git+https://github.com/voidwalkermark-pixel/grokipedia-mcp-server@v0.1.2 grokipedia-mcp-server --versionOr install it as a persistent tool (puts grokipedia-mcp-server on your PATH):
uv tool install git+https://github.com/voidwalkermark-pixel/grokipedia-mcp-server@v0.1.2Option B: pip in a virtual environment
Linux / macOS
python3 -m venv ~/.venvs/grokipedia-mcp
~/.venvs/grokipedia-mcp/bin/pip install "git+https://github.com/voidwalkermark-pixel/grokipedia-mcp-server@v0.1.2"
~/.venvs/grokipedia-mcp/bin/grokipedia-mcp-server --versionWindows (PowerShell)
py -3.13 -m venv "$env:USERPROFILE\.venvs\grokipedia-mcp"
& "$env:USERPROFILE\.venvs\grokipedia-mcp\Scripts\pip.exe" install "git+https://github.com/voidwalkermark-pixel/grokipedia-mcp-server@v0.1.2"
& "$env:USERPROFILE\.venvs\grokipedia-mcp\Scripts\grokipedia-mcp-server.exe" --versionIf the py launcher isn't installed, use python -m venv ... instead (check python --version is 3.11–3.13).
pip install git+... needs Git on PATH. Without Git, install from
the release archive instead:
pip install https://github.com/voidwalkermark-pixel/grokipedia-mcp-server/archive/refs/tags/v0.1.2.zip
Option C: reproducible install with hash-pinned dependencies
git clone --branch v0.1.2 https://github.com/voidwalkermark-pixel/grokipedia-mcp-server
cd grokipedia-mcp-server
python -m venv .venv
# Linux/macOS: .venv/bin/python Windows: .venv\Scripts\python.exe
.venv/bin/python -m pip install --require-hashes -r requirements.lock.txt
.venv/bin/python -m pip install --no-deps .Windows note: with Git for Windows 2.55,
git clone --branch vX.Y.Z ...may print a warning likerefs/tags/vX.Y.Z ... is not a commit!for the annotated release tag. It is harmless (the clone checks out the tagged commit; confirm withgit -C grokipedia-mcp-server describe --tags), but Git writes it to stderr, so PowerShell with$ErrorActionPreference = 'Stop'may treat it as a failure. Run the clone with$ErrorActionPreference = 'Continue'for that command, or check$LASTEXITCODE(0 = success) instead of relying on stderr.
requirements.lock.txt is a cross-platform lock (Linux, macOS, Windows; Python ≥ 3.11) generated with
uv pip compile requirements.txt --universal --python-version 3.11 --generate-hashes.
MCP client configuration (stdio)
Use the absolute path to the installed executable.
Linux / macOS:
{
"mcpServers": {
"grokipedia": {
"command": "/home/you/.venvs/grokipedia-mcp/bin/grokipedia-mcp-server",
"args": []
}
}
}Windows (note the doubled backslashes in JSON):
{
"mcpServers": {
"grokipedia": {
"command": "C:\\Users\\you\\.venvs\\grokipedia-mcp\\Scripts\\grokipedia-mcp-server.exe",
"args": []
}
}
}With uvx instead of a venv:
{
"mcpServers": {
"grokipedia": {
"command": "uvx",
"args": ["--from", "git+https://github.com/voidwalkermark-pixel/grokipedia-mcp-server@v0.1.2", "grokipedia-mcp-server"]
}
}
}python -m grokipedia_mcp_server also works as the command.
Behaviour and limits
Network: only HTTPS GETs to
grokipedia.com, enforced on every request and every redirect hop. Proxy and netrc environment variables are ignored. No credentials, no telemetry, no file writes.Rate limit: at most 1 request/second per server process (shared by all tools).
get_page,get_page_sectionandget_page_citationseach fetch the page (1–2 requests); there is no cache yet.Retries: up to 3 retries on HTTP 429/5xx and transient network errors, with 1 s / 1.5 s / 2.25 s backoff. A
Retry-Afterof up to 10 s is honoured; a longer one fails fast instead of hammering a struggling origin.Timeouts: 10 s connect, 30 s per read, and an overall 50 s budget per tool call.
Page fetching: tries
/api/page-preview?slug=first, then parses the public/page/<slug>HTML. Error pages (e.g. a Cloudflare "502 Bad gateway") are never returned as articles.Size cap: article text is capped at 20,000 characters per call;
truncated: truemarks a cut. Useget_page_sectionto read a specific part of a long article.Outages: when Grokipedia's backend is down you will see errors such as
origin error (502)orfound: false/ "Article not yet written." for pages that do exist. Cloudflare may still serve some cached responses during an outage, so results can be inconsistent between queries.Untrusted content: returned article text is third-party content; MCP clients and models should treat it as data, not instructions.
Development
python -m venv .venv && . .venv/bin/activate # Windows: .venv\Scripts\activate
pip install --require-hashes -r requirements.lock.txt
pip install --no-deps -e . && pip install pytest
pytest # offline unit tests + stdio test
pytest -m live -s # opt-in live smoke test against grokipedia.comOrigin
The first draft of this server was generated with Grok. It was then reviewed line by line, tested,
and hardened (redirect host checks, slug encoding, error-page handling, truncation, retry and
Retry-After fixes, pinned and hash-locked dependencies) before release. See CHANGELOG.md.
License
MIT © 2026 Voidwalker Mark
Available Tools
4 toolsget_pageBRead-onlyIdempotent
Fetch a Grokipedia page: title, summary, sections, citations, and URL.
Tries the site's page-preview endpoint first, then falls back to parsing the public HTML page. Section text is capped (see "truncated").
Inputs: slug (required). Returns: object
get_page_citationsARead-onlyIdempotent
Return the citations / references for a page, with where each is cited.
Each citation has "sections": the headings under which its inline marker appears in the article text (matched by exact URL; [] if never cited inline). When the article text has no usable inline markers (e.g. HTML fallback), "sections" is null and "section_mapping" is "unavailable"; mappings are never guessed.
Args: slug: Page slug. include_context: Also return up to 3 short text snippets preceding each marker.
Inputs: slug (required), include_context. Returns: object
get_page_sectionARead-onlyIdempotent
Return one section by heading (exact case-insensitive match, else heading containing the text).
Args: slug: Page slug, e.g. "Printed_circuit_board". heading: Section heading to find. include_subsections: If the section's own body is empty (a parent heading whose text lives in its subsections), return the subsections' text with their headings (default true). "subsections" always lists the nested headings.
Inputs: slug (required), heading (required), include_subsections. Returns: object
searchBRead-onlyIdempotent
Search Grokipedia full-text index.
Args: query: Search terms. limit: Max results (1-50, default 10). offset: Pagination offset (default 0).
Inputs: query (required), limit, offset. Returns: object
Tool Schema Changelog
Recent tool additions, removals, and schema changes observed during successful MCP inspections.
Loading tool schema changelog…
TDQS
Scored across 4 tools
The tools mostly target distinct needs: search for discovery, get_page for full page retrieval, get_page_section for focused section content, and get_page_citations for reference details. However, get_page already includes sections and citations, so there is some overlap and an agent might occasionally wonder whether the specialized tools are needed.
Three tools follow a clear get_page_* pattern (get_page, get_page_section, get_page_citations), while search is a bare verb. This is a minor deviation from an otherwise predictable convention and remains readable.
Four tools is well-scoped for a read-only reference server: search plus full-page, section, and citation retrieval. Each tool has a clear role and none appear redundant enough to inflate the count.
The core read workflows for a wiki-like source are covered: discovery via search, full page content, section-level extraction, and citation/reference mapping. No obvious lifecycle gaps exist for this read-only domain.
Maintenance
Related MCP Connectors
Search and read Wikipedia articles and sections, list cited references, nearby pages, and languages.
MCP gateway for donhuffines.com: articles, search and full text. Read-only, no auth.
Public read-only MCP access to digital learning concepts, semantic relationships, and citations.
Read-only MCP for the Eco game wiki: search, Markdown pages, and wiki_* lookups. No keys, no writes.
Related MCP Servers
- AlicenseAqualityBmaintenanceEnables searching and retrieving content from Grokipedia, including article content, citations, related pages, and section extraction with built-in research workflows.78MIT
- AlicenseAqualityDmaintenanceEnables searching and retrieving articles, citations, and structured content from Grokipedia for research and information retrieval. It provides specialized tools for section extraction, related page discovery, and filtered search results.7MIT
- AlicenseAqualityDmaintenanceEnables searching and retrieving content from Grokipedia, with tools for page lookup, citations, sections, and related pages.7MIT
- AlicenseNot gradedqualityDmaintenanceProvides structured access to Wikipedia content including search, summaries, images, links, and more via MCP tools.6Apache 2.0