MCP server for Moegirl Wiki (萌娘百科) — search entries and fetch page summaries via the MediaWiki API.
Project description
mcp-server-moegirl-wiki
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_pagereturns 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; onlysysop/staff groups can call these actions.- Uses the
mzh.moegirl.org.cnmirror.
License
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
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
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
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
d051614d91b7362fdb8651d4524acdc40d62330409b6c05950cbc42649b2cbf5
|
|
| MD5 |
affdd4c59319654bd264f38f892910f3
|
|
| BLAKE2b-256 |
9c1d7b0b8d4cd73599c374d7487fc455e4429e57e2bc4485687fc5cc00aeb090
|
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
-
Statement:
-
Statement type:
https://in-toto.io/Statement/v1 -
Predicate type:
https://docs.pypi.org/attestations/publish/v1 -
Subject name:
mcp_server_moegirl_wiki-0.2.0.tar.gz -
Subject digest:
d051614d91b7362fdb8651d4524acdc40d62330409b6c05950cbc42649b2cbf5 - Sigstore transparency entry: 1497369176
- Sigstore integration time:
-
Permalink:
XXXxx7258/mcp-server-moegirl-wiki@4d81724ce2c1f11fb48e8df0dc21f76604061e4a -
Branch / Tag:
refs/tags/v0.2.0 - Owner: https://github.com/XXXxx7258
-
Access:
public
-
Token Issuer:
https://token.actions.githubusercontent.com -
Runner Environment:
github-hosted -
Publication workflow:
publish.yml@4d81724ce2c1f11fb48e8df0dc21f76604061e4a -
Trigger Event:
push
-
Statement type:
File details
Details for the file mcp_server_moegirl_wiki-0.2.0-py3-none-any.whl.
File metadata
- Download URL: mcp_server_moegirl_wiki-0.2.0-py3-none-any.whl
- Upload date:
- Size: 8.5 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? Yes
- Uploaded via: twine/6.1.0 CPython/3.13.12
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
17830fb9c4b923c3025ca7251f1cb3b462084b8f3352ffb3902dae1775d5f457
|
|
| MD5 |
159c68f13415f8c466108ae5cfce48bf
|
|
| BLAKE2b-256 |
6d756df6b6f6f652c7458021672cf104884f14e35f00418b7de1a51d35503df1
|
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
-
Statement:
-
Statement type:
https://in-toto.io/Statement/v1 -
Predicate type:
https://docs.pypi.org/attestations/publish/v1 -
Subject name:
mcp_server_moegirl_wiki-0.2.0-py3-none-any.whl -
Subject digest:
17830fb9c4b923c3025ca7251f1cb3b462084b8f3352ffb3902dae1775d5f457 - Sigstore transparency entry: 1497369338
- Sigstore integration time:
-
Permalink:
XXXxx7258/mcp-server-moegirl-wiki@4d81724ce2c1f11fb48e8df0dc21f76604061e4a -
Branch / Tag:
refs/tags/v0.2.0 - Owner: https://github.com/XXXxx7258
-
Access:
public
-
Token Issuer:
https://token.actions.githubusercontent.com -
Runner Environment:
github-hosted -
Publication workflow:
publish.yml@4d81724ce2c1f11fb48e8df0dc21f76604061e4a -
Trigger Event:
push
-
Statement type: