Skip to main content

MCP server for Moegirl Wiki (萌娘百科) — search entries and fetch page summaries via the MediaWiki API.

Project description

mcp-server-moegirl-wiki

PyPI version License: MIT

English | 简体中文

MCP server for 萌娘百科 (Moegirl Wiki). Two tools: search entries and fetch a page's intro.

Install

uvx mcp-server-moegirl-wiki         # recommended
pipx run mcp-server-moegirl-wiki
pip install mcp-server-moegirl-wiki

Tools

search_moegirl(keyword: str, limit: int = 5)

Returns {"results": [{"title", "url", "snippet"}, ...], "count": int}.

get_page(title: str, max_length: int = 1500)

Returns {"title", "content", "url", "page_id"} — full plain-text rendering of the page (all sections, templates expanded, links resolved). Auto-follows redirects. content is truncated to max_length characters; pass a larger value (e.g. 8000) for in-depth queries.

Configuration

Claude Desktop

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

MaiBot (config/bot_config.toml)

[mcp]
enable = true
servers = [
  {name = "moegirl", enabled = true, transport = "stdio",
   command = "uvx", args = ["mcp-server-moegirl-wiki"],
   env = {}, url = "", headers = {},
   http_timeout_seconds = 30.0, read_timeout_seconds = 300.0,
   authorization = {mode = "none", bearer_token = ""}},
]

Development

git clone https://github.com/XXXxx7258/mcp-server-moegirl-wiki
cd mcp-server-moegirl-wiki
uv sync --group dev
uv run pytest -m network
uv run ruff check .

Limitations

  • get_page returns rendered plain text (templates expanded, links resolved). Raw wikitext (prop=revisions, action=parse, ?action=raw, Special:Export) is blocked by Moegirl Wiki's site-wide ACL — empirically verified that bot-password login does not unlock it; only sysop/staff groups can call these actions.
  • Uses the mzh.moegirl.org.cn mirror.

License

MIT

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

mcp_server_moegirl_wiki-0.2.0.tar.gz (8.2 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

mcp_server_moegirl_wiki-0.2.0-py3-none-any.whl (8.5 kB view details)

Uploaded Python 3

File details

Details for the file mcp_server_moegirl_wiki-0.2.0.tar.gz.

File metadata

  • Download URL: mcp_server_moegirl_wiki-0.2.0.tar.gz
  • Upload date:
  • Size: 8.2 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: twine/6.1.0 CPython/3.13.12

File hashes

Hashes for mcp_server_moegirl_wiki-0.2.0.tar.gz
Algorithm Hash digest
SHA256 d051614d91b7362fdb8651d4524acdc40d62330409b6c05950cbc42649b2cbf5
MD5 affdd4c59319654bd264f38f892910f3
BLAKE2b-256 9c1d7b0b8d4cd73599c374d7487fc455e4429e57e2bc4485687fc5cc00aeb090

See more details on using hashes here.

Provenance

The following attestation bundles were made for mcp_server_moegirl_wiki-0.2.0.tar.gz:

Publisher: publish.yml on XXXxx7258/mcp-server-moegirl-wiki

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

File details

Details for the file mcp_server_moegirl_wiki-0.2.0-py3-none-any.whl.

File metadata

File hashes

Hashes for mcp_server_moegirl_wiki-0.2.0-py3-none-any.whl
Algorithm Hash digest
SHA256 17830fb9c4b923c3025ca7251f1cb3b462084b8f3352ffb3902dae1775d5f457
MD5 159c68f13415f8c466108ae5cfce48bf
BLAKE2b-256 6d756df6b6f6f652c7458021672cf104884f14e35f00418b7de1a51d35503df1

See more details on using hashes here.

Provenance

The following attestation bundles were made for mcp_server_moegirl_wiki-0.2.0-py3-none-any.whl:

Publisher: publish.yml on XXXxx7258/mcp-server-moegirl-wiki

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page