Skip to main content
Glama

wiktionary-de-mcp

PyPI version Python versions CI License MCP

An MCP server that lets Claude (or any other MCP client) look things up in the German Wiktionary, de.wiktionary.org. Instead of answering from memory, Claude checks the dictionary itself and cites the entry.

It's useful when you want a reliable answer to questions like:

  • „Gibt es das Wort ‚verschlimmbessern'?"

  • "What's the gender and plural of ‚Band' in the sense of a music group?"

  • "Is it ‚gewinkt' or ‚gewunken'?"

  • "Conjugate ‚gehen' in Konjunktiv II."

  • "Does ‚laufen' take ‚haben' or ‚sein' in the perfect tense?"

No API key or account is needed.

Tools

Tool

What it does

lookup_word

Checks whether a word exists and returns its dictionary entry: part of speech, gender, inflected forms (plural and cases, comparative and superlative, principal verb forms, auxiliary verb), hyphenation, pronunciation (IPA), meanings, etymology, synonyms, antonyms and example sentences. Upper- and lower-case spellings are tried automatically (Laufen vs. laufen). If the word isn't in Wiktionary, the result says NOT FOUND and suggests similar entries.

get_inflection_table

The complete conjugation of a verb (every tense, mood and person, plus participles and the imperative), or the full declension of an adjective in the positive, comparative and superlative. For nouns it returns all case and number forms.

search_wiktionary

Searches titles and full text, with "did you mean" suggestions. Handy for misspellings or for finding compounds that contain a word stem.

get_raw_wikitext

The raw source of a page, for anything the other tools leave out (translations, references). Returns 8,000 characters at a time and can be narrowed to one section.

Entries are written in German, as on Wiktionary. The German Wiktionary also documents words from other languages, explained in German. Use lookup_word with language: "en" (or "Englisch", "French", "*" for all) to get those.

Related MCP server: mcp-wiktionary

Setup

You need uv installed. uv downloads and runs the server for you (via uvx), so there is nothing else to install.

Claude Desktop

Open Settings → Developer → Edit Config, or edit claude_desktop_config.json directly:

  • macOS: ~/Library/Application Support/Claude/claude_desktop_config.json

  • Windows: %APPDATA%\Claude\claude_desktop_config.json

  • Linux: ~/.config/Claude/claude_desktop_config.json

Quit Claude Desktop completely before editing: use Quit from the menu bar or system tray icon, since closing the window leaves it running. The app saves its own preferences into the same file while it runs, so edits made while it's open can be overwritten.

Add the server, keeping any keys already in the file (such as preferences):

{
  "mcpServers": {
    "wiktionary-de": {
      "command": "uvx",
      "args": ["wiktionary-de-mcp"]
    }
  }
}

Restart Claude Desktop, then ask it something about a German word.

If Claude Desktop reports that it can't start the server, it usually can't find uvx. Desktop apps often don't see the PATH from your shell. Run which uvx (macOS, Linux) or where uvx (Windows) and put the full path in "command", for example "/Users/you/.local/bin/uvx".

If the server doesn't show up at all, check the MCP log: ~/Library/Logs/Claude/ on macOS, %APPDATA%\Claude\logs\ on Windows, ~/.config/Claude/logs/ on Linux. A line saying no stdio servers connected means the app didn't find an mcpServers entry in its config.

Claude Code

claude mcp add --scope user wiktionary-de -- uvx wiktionary-de-mcp

--scope user makes it available in every project. Leave it out to add it to the current project only.

Other MCP clients

Any client that supports stdio servers works. Configure the command uvx with the argument wiktionary-de-mcp. If you prefer pip, install with pip install wiktionary-de-mcp and use the command wiktionary-de-mcp.

Updating

uvx caches the package. To get a newer release, run uvx wiktionary-de-mcp@latest once, or pin a version in the config with "args": ["wiktionary-de-mcp@0.2.0"].

Good to know

  • Grammar is per word. Wiktionary records the grammar of individual words: gender, plural, cases, conjugation, auxiliary verb. It doesn't explain general rules such as when to use the dative or where commas go. Claude answers those from its own knowledge.

  • Wiktionary isn't exhaustive. Not finding a word doesn't prove it isn't German. Many valid compounds (Donaudampfschifffahrt) have no entry of their own.

  • Privacy. The server sends only the words you look up to the public Wikimedia API at de.wiktionary.org. Nothing else leaves your machine. Responses are cached in memory for 15 minutes.

Development

git clone https://github.com/joelbarmettlerUZH/wiktionary-mcp
cd wiktionary-mcp
uv sync
uv run pytest -m "not network"   # offline tests
uv run pytest                    # also runs live tests against de.wiktionary.org
npx @modelcontextprotocol/inspector uv run wiktionary-de-mcp   # try the tools interactively

To use your local checkout from Claude Desktop, use this server entry:

"wiktionary-de": {
  "command": "uv",
  "args": ["run", "--directory", "/path/to/wiktionary-mcp", "wiktionary-de-mcp"]
}

The code is small: server.py defines the tools, wikitext.py turns Wiktionary's page source into readable text, and client.py talks to the MediaWiki API.

Releasing

Every push to main runs release.yml. If the version in pyproject.toml isn't on PyPI yet, the workflow tests, builds and publishes the package with Trusted Publishing (no stored token). It then creates a matching vX.Y.Z GitHub release. If that version is already on PyPI, it does nothing. To release:

uv version --bump patch   # or minor / major; updates pyproject.toml and uv.lock
git commit -am "Release vX.Y.Z" && git push

License

The code is licensed under the Apache License 2.0. Dictionary content returned by the tools comes from Wiktionary contributors and is licensed under CC BY-SA 4.0.

Available Tools

4 tools
get_inflection_tableGet conjugation/declension tableA
Read-onlyIdempotent

Return the complete inflection table for a German word.

For verbs this is the full conjugation (all tenses, moods, persons, participles,
imperative); for adjectives the full strong/weak/mixed declension of the positive,
comparative and superlative. Both come from the page "Flexion:<word>". Nouns
usually have no such page; for them this returns the case and number forms
listed on the entry itself.

Inputs: word (required). Returns: result

get_raw_wikitextGet raw wikitextA
Read-onlyIdempotent

Return the unprocessed wikitext source of a de.wiktionary.org page.

Use only when lookup_word omits something you need (e.g. translations,
references). Pages can be very long (100k+ characters), so prefer `section`
and page through with `offset` when the result says it was truncated.

Inputs: title (required), offset, section, max_chars. Returns: result

lookup_wordLook up a wordA
Read-onlyIdempotent

Check whether a word exists in the German Wiktionary and return its dictionary entry.

Returns part of speech, grammatical forms (gender, plural, cases, comparison,
verb principal parts, auxiliary verb), hyphenation, IPA, meanings, etymology,
synonyms, antonyms and example sentences, all in German. The German Wiktionary
also has entries for words of other languages (explained in German); select
them with `language`. If the word does not exist the result starts with
"NOT FOUND" and lists similar entries.

Inputs: word (required), full, language. Returns: result

search_wiktionarySearch the German WiktionaryA
Read-onlyIdempotent

Full-text and prefix search over de.wiktionary.org entries.

Useful for finding the correct spelling of a word, compounds that contain a stem,
or entries when lookup_word returns NOT FOUND.

Inputs: query (required), limit. Returns: result

Tool Schema Changelog

Recent tool additions, removals, and schema changes observed during successful MCP inspections.

Loading tool schema changelog…

    TDQS

    A4.2/5.0

    Scored across 4 tools

    Disambiguation4/5

    Each tool targets a distinct retrieval need: processed dictionary entry, search, raw wikitext, and inflection tables. Some overlap exists because lookup_word already returns grammatical forms and raw wikitext can duplicate lookup content, but the descriptions clarify when to use each.

    Naming Consistency5/5

    All tool names use snake_case with a predictable verb_noun pattern (lookup_word, search_wiktionary, get_raw_wikitext, get_inflection_table). The mix of lookup, search, and get verbs is natural and consistent.

    Tool Count5/5

    Four tools is well-scoped for a focused German Wiktionary server; each tool covers a distinct access pattern and none feels redundant or out of place. The count sits comfortably within the typical 3-15 range.

    Completeness4/5

    The surface covers core dictionary workflows: lookup, search, raw wikitext fallback, and inflection tables. Minor gaps exist, such as no dedicated translation lookup, but agents can work around these using get_raw_wikitext.

    Maintenance

    ActivityNo data
    ResponsivenessOutdated data

    Related MCP Connectors

    Related MCP Servers