FP

fantasticmao/pokemon-wiki

Deployment & DevOps

This page was translated automatically. Technical details may differ from the original. View the original

38 stars 4 forks Quality 77 Trend 14CC-BY-SA-4.0

Pokémon Encyclopedia SQLite dataset + Web API + MCP Server

Overview

Pokemon-Wiki fetchs Pokémon, traits, moves, and items from the Pokémon Encyclopedia, writes the parsing results into SQLite, and then provides queries externally via HTTP interface. Pokemon-Wiki provides aggregated read-only queries, but does not offer encyclopedia images, page edits, or automatic runtime updates. - : Use jsoup to fetch list pages and detail pages in parallel. - : Write parsing results into pokemon_wiki.db in the repository. - : Provide lists and details of Pokémon, traits, moves, and items. - : Provide MCP Server to support large model queries of Pokémon data. - : Provide runnable query service images in Docker Hub. - : Pull maomao233/pokemon-wiki from Docker Hub. - : Run ./mvnw package -B -Dapp.dbfile=$(pwd)/pokemon_wiki.db in JDK 21. Pokemon-Wiki listens to port 8080 by default when starting locally. Common online query examples are as follows: - :https://pokemon.fantasticmao.cn/pokemon/detail?nameZh=妙蛙种子 - :https://pokemon.fantasticmao.cn/ability/detail?nameZh=茂盛 - :https://pokemon.fantasticmao.cn/move/detail?nameZh=飞叶快刀 Pokemon-Wiki also provides MCP endpoints /mcp with the Streamable HTTP protocol, which needs to be entered in the Agent mcpServers configuration: Pokemon-Wiki consists of a crawler module and a query module. The former is responsible for crawling the encyclopedia page and writing it to SQLite; The latter reads only the library and provides queries externally via HTTP interfaces and MCP endpoints. The two modules are built and run independently. Pokemon-Wiki first fetchs six types of list pages, then fetchs detail pages concurrently by list index, and finally writes the parsing results into SQLite. After the query service starts, it reads the database and responds to the request.

Overview (machine translated)

What is this?

Pokemon-Wiki fetchs Pokémon, traits, moves, and items from the Pokémon Encyclopedia, writes the parsing results into SQLite, and then provides queries externally via HTTP interface. Pokemon-Wiki provides aggregated read-only queries, but does not offer encyclopedia images, page edits, or automatic runtime updates.

[! IMPORTANT] The original text and images of the entry still belong to Pokémon Encyclopedia. For details, please refer to the site’s copyright statement.

Key Features

  • Page Scraping: Use jsoup to fetch list pages and detail pages in parallel.
  • Offline Data: Write the parsing results into the repository pokemon_wiki.db.
  • Query Interface: Provides lists and details of Pokémon, abilities, moves, and items.
  • Model Query: Provides an MCP Server to support large model queries of Pokémon data.
  • Container Release: Provides runnable query service images in Docker Hub.

Download and Installation

Pokemon-Wiki is distributed in two ways: container images and source code.

  • Container image: Pull maomao233/pokemon-wiki from Docker Hub.
  • Source Code Build: Execute ./mvnw package -B -Dapp.dbfile=$(pwd)/pokemon_wiki.db in JDK 21.

Get Started Quickly

Quickly launching application services based on Docker:

Or after the source code has been built, execute the command:

Pokemon-Wiki listens to port 8080 by default when starting locally. Common online query examples are as follows:

  • Pokémon Details:
  • Feature Details:
  • Move Details:

[! TIP] Full request parameters and return fields are listed in the interface documentation.

Pokemon-Wiki also provides an MCP endpoint /mcp, which is Streamable HTTP protocol, which needs to be entered in the Agent mcpServers configuration:

Working Principle

Architecture

Pokemon-Wiki consists of a crawler module and a query module. The former is responsible for crawling the encyclopedia page and writing it to SQLite; The latter reads only the library and provides queries externally via HTTP interfaces and MCP endpoints. The two modules are built and run independently.

[! NOTE] After the query service starts, no more access to the encyclopedia site.

Core Processes

Pokemon-Wiki first fetchs six types of list pages, then fetchs detail pages concurrently by list index, and finally writes the parsing results into SQLite. After the query service starts, it reads the database and responds to the request.

Frequently Asked Questions

Why isn’t interface data real-time content from encyclopedia sites?

The query module only reads the preset SQLite file and does not access the encyclopedia site during runtime. When data needs to be updated, it runs a crawler separately and replaces the database file.

Why can secondary development be done using databases in the warehouse directly?

The crawler writes the parsing results into the pokemon_wiki.db files already included in the repository. After cloning the repository, you can connect to the file without running the crawler first.

This page was translated automatically. Technical details may differ from the original.

Install

docker run -p 8080:8080 maomao233/pokemon-wiki
New to MCP? Start with the mcpskill.org guide →

Configuration

{ "mcpServers": { "pokemon-wiki": { "url": "https://pokemon.fantasticmao.cn/mcp" } } }