Wikipedia MCP server for Claude, Cursor and VS Code (tested in Claude Code)
A Wikipedia MCP server lets Claude, Cursor or VS Code look things up on Wikipedia while it works. WikiVectors is one at https://wikivectors.com/mcp: add it with one line or one small JSON file, and your AI gets the right paragraph from today's Wikipedia, with its link. In Claude Code, "Who won the 2026 Tour de France?" went from "I don't know" to the right answer in 7 seconds.
Claude Code, in one line
claude mcp add --transport http wikivectors https://wikivectors.com/mcp \
--header "Authorization: Bearer wv_live_…"
What is a Wikipedia MCP server?
MCP (Model Context Protocol) is the standard way to give an AI app new tools. An MCP server is a small service that lists its tools; the app shows them to the model, and the model decides when to call one. A Wikipedia MCP server gives the model tools like "search Wikipedia" and "answer this question from Wikipedia".
WikiVectors runs as a remote server, so there is nothing to install. It searches by meaning, not just keywords, across all of English Wikipedia, and pages are updated within the hour of an edit. It has 10 tools: search_wikipedia, answer_question, get_pages, get_page_facts, identify, find_titles, find_similar, changes_since, watch_page and get_key.
How do I add it to Claude Code?
Run the line above in a terminal, with your key in place of wv_live_…. Add --scope project to save it in the project's .mcp.json so your team gets it too (Claude Code asks each person to approve it once).
Here is a real run, Claude Code 2.1.335, 3 December 2026. Same question twice, first with no tools, then with WikiVectors:
$ claude -p "Who won the 2026 Tour de France? Answer in one or two sentences." I don't know. The 2026 Tour de France happened in July, and my knowledge stops in June 2026. A quick web search will tell you. $ claude -p "Who won the 2026 Tour de France? Answer in one or two sentences." \ --allowedTools mcp__wikivectors__answer_question → called answer_question {"question": "Who won the 2026 Tour de France?"} Tadej Pogačar won the 2026 Tour de France. It was his fifth win, and Remco Evenepoel came second. ([Wikipedia](https://en.wikipedia.org/wiki/2026_Tour_de_France))
How do I add it to Claude Desktop?
Claude Desktop starts MCP servers as a command, so use our npm launcher (Node 18 or newer). Open Settings → Developer → Edit Config and add:
{
"mcpServers": {
"wikivectors": {
"command": "npx",
"args": ["-y", "wikivectors"],
"env": { "WIKIVECTORS_KEY": "wv_live_…" }
}
}
}
Restart Claude Desktop. The same block works in Cline, Windsurf, Zed and other apps that start servers as a command.
How do I add it to claude.ai?
The web app signs in instead of using a key. Go to Settings → Connectors → Add custom connector and paste https://wikivectors.com/mcp/connect. Press Connect, type your email, and press Allow in the email we send. ChatGPT works the same way: see the MCP docs.
How do I add it to Cursor?
Put this in ~/.cursor/mcp.json (all projects) or .cursor/mcp.json (one project):
{
"mcpServers": {
"wikivectors": {
"url": "https://wikivectors.com/mcp",
"headers": { "Authorization": "Bearer wv_live_…" }
}
}
}
Cursor lists it with its MCP servers in Cursor Settings, with the 10 tools.
How do I add it to VS Code?
VS Code calls the list servers, not mcpServers, and wants a type. Put this in .vscode/mcp.json in your project:
{
"servers": {
"wikivectors": {
"type": "http",
"url": "https://wikivectors.com/mcp",
"headers": { "Authorization": "Bearer wv_live_…" }
}
}
}
Press Start above the server name in that file, then pick the tools in Copilot Chat's agent mode.
Can I try it without a key?
Yes, with the npm launcher. Leave out WIKIVECTORS_KEY and search_wikipedia and get_pages work as free tries: 20 an hour, up to 5 results. We ran it with no key on 3 December 2026; the first result for the Tour de France question was:
[1] 2026 Tour de France (Cycling race) › Results In the general classification, Pogačar won the Tour for the fifth time. […] Evenepoel finished in second place, 6 minutes 26 seconds behind. […] Source: https://en.wikipedia.org/wiki/2026_Tour_de_France (revision 1381542691, edited 2026-10-23, CC BY-SA 4.0, passage_id 43247802)
For the other tools, ask your AI to call get_key with your email. You approve the key in the email, and the AI picks it up by itself.
Which tool should the model use?
answer_questionfor a fact: one short answer with its sources, or "Wikipedia doesn't say". Counts as 5 searches. Best for smaller models and quick answers.search_wikipediawhen the model should read for itself: the best paragraphs, each with page, section, link and revision. Counts as 1 search. Big models like Claude do well with it.get_pageswhen you know the page: its intro or full text by title, 1 search per title.
Claude Code picked answer_question on its own in both runs above. If your model answers from memory and skips the tool, tell it in the system prompt that its knowledge is out of date and to look facts up first.
How is it different from Wikipedia's own search?
Wikipedia's search API matches words and returns page titles; the model then has to fetch pages and find the paragraph. We asked 8 questions both ways on 3 December 2026: WikiVectors' search_wikipedia over MCP, and Wikipedia's list=search.
| Question | Wikipedia search, top title | WikiVectors, top paragraph |
|---|---|---|
| Who won the 2026 Tour de France? | 2026 Tour de France | 2026 Tour de France › Results: "Pogačar won the Tour for the fifth time" |
| Who won the 2026 Nobel Peace Prize? | 2026 Nobel Peace Prize | 2026 Nobel Peace Prize › Navi Pillay: "Navi Pillay was awarded…" |
| Which film won Best Picture at the 98th Academy Awards? | 98th Academy Awards | 98th Academy Awards: "One Battle After Another won… Best Picture" |
| Which team won the 2026 World Series? | 2026 World Series | 2026 World Series, intro |
| what causes the northern lights | Blue Lights (2023 TV series) | History of geophysics: "Distortions to the Earth's magnetic field cause… the Northern Lights" |
| Which region did Lloyd Quinan represent as an MSP? | List of Scottish National Party members of the Scottish Parliament | Lloyd Quinan: "MSP for the West of Scotland region" |
| Who was the first computer programmer? | The Pragmatic Programmer | Programmer › History: "Ada Lovelace is often considered to be the first computer programmer" |
| how do vaccines train the immune system | Vaccine | Cancer vaccine › Mechanism of action (true, but not the main page) |
Wikipedia's search put the right page first for 5 of 8; WikiVectors' first paragraph held the answer for 7 of 8. answer_question gave a sourced answer to all 8, though the vaccine one was thin: it leaned on that same cancer vaccine paragraph. Three results came to 1,400 to 2,900 characters, a few hundred tokens: far less than fetching whole pages.
How fast is it?
Timed from our test machine on 3 December 2026, over the same 8 questions: search_wikipedia took 0.6 to 3.0 s (median 1.3 s), answer_question 1.1 to 3.7 s (median 1.9 s). Connecting and listing the tools took about 0.2 s each. Live numbers are on the status page.
What does it cost?
1,000 searches a month are free. After that it's $2 per 1,000 searches, prepaid, no plan. search_wikipedia is 1 search, answer_question is 5, so the free tier covers 1,000 searches or 200 answers a month.
Troubleshooting
- 401 or "missing_api_key". The header must be
Authorization: Bearer wv_live_…, one space, no quotes around the key. Calls with no key over plain HTTP are refused on purpose: that is how claude.ai and ChatGPT know to sign you in. Free tries without a key only work throughnpx -y wikivectors. - Claude Code shows "Pending approval". A project-scope server needs each person to approve it once: run
claudein that folder and accept it. - VS Code doesn't see it. Check the file says
servers(notmcpServers) and has"type": "http". - The model never calls the tool. Turn the server on for the chat, and say in the system prompt that its knowledge is out of date.
- "Wikipedia doesn't say". The tool says so rather than guess. Name the subject more plainly. A brand-new page is usually searchable within the hour.
Wikipedia for your AI app, without the limits
WikiVectors searches all of English Wikipedia and returns short, cited paragraphs, fresh within the hour. 1,000 free searches a month, then $2 per 1,000.
More guides
- Qwen 4 35B on a home PC: 35 of 60 facts alone, 60 of 60 with one WikiVectors searchWe ran Qwen 4 35B-A3B in Ollama on an RTX 4070 and asked 60 fact questions. Alone: every easy and medium one, but 5 of 15 rare facts and 0 of 15 from 2026. Thinking mode didn't fix it. With 5 WikiVectors paragraphs: 60 of 60, none wrong. Code and every answer.
- LangChain Wikipedia retriever: the built-in one vs WikiVectors, tested on 45 questionsLangChain's WikipediaRetriever crashed on 18 of 45 questions with Wikipedia's 429 (shown as JSONDecodeError) until we set a User-Agent; then it found 34 of 45 in 5.7 s each. WikiVectorsRetriever: 45 of 45 in 0.57 s, with a fifth of the text. Code, fix and real output.
- Fact-check API: check a claim against Wikipedia in one call (31 claims tested)Send a claim to one API call and get True, False or no answer, with the Wikipedia paragraphs as proof. We tested 31 claims: 28 right, 3 no answer, 0 wrong. Code, real output, and what to do when it can't tell.