stardew-mcp
Click on "Install Server".
Wait a few minutes for the server to deploy. Once ready, it will show a "Started" state.
In the chat, type
@followed by the MCP server name and your instructions, e.g., "@stardew-mcpshow me the page for the farmhouse"
That's it! The server will respond to your query, and you can continue using it as needed.
Here is a step-by-step guide with screenshots.
stardew-mcp
An MCP server that exposes the Stardew Valley Wiki as queryable tools.
It parses a MediaWiki XML dump of the wiki (shipped as
stardewvalleywiki-dump-20260628.zip) into structured JSON at build time, then
serves it through a small set of MCP tools: keyword search, optional semantic
search, typed listings, and per-page/per-section retrieval.
What it gives an LLM
search_pages(query, limit?, type?)— BM25 keyword search over page titles, intros, infobox fields, and section headings.vector_search(query, limit?, type?)— semantic search over sentence embeddings (all-MiniLM-L6-v2). Falls back to keyword search if embeddings aren't built.get_page(title, include_raw?)— full structured page: entity type, parsed infobox fields (rendered to text), intro, all sections, categories.get_page_section(title, section)— a single section by heading.list_types()— entity types (from infoboxes) with counts.list_by_type(type, limit?)— all page titles of one type.search_by_type(type, query, limit?)— keyword search scoped to one type.
Entity types are derived from the wiki's infobox templates and include:
villager, fish, item (plain {{Infobox}}, e.g. crops/forage),
seed, weapon, clothing, furniture, mousehat, mineral, monster,
location, artifact, building, tool, animal, tree.
Related MCP server: Minecraft Wiki MCP Server
Prerequisites
Node.js 22+
The
unzipbinary onPATH(used to extract the dump zip)The dump zip at the repo root:
stardewvalleywiki-dump-20260628.zip
Build
npm install
npm run build # parse XML -> data/*.json, then compile TSThis produces:
data/pages.json— every page, parsed (infobox fields, sections, categories, excerpt).data/index.json— title + type indices for fast lookup.dist/— compiled server.
(Optional) Build embeddings for vector search
npm run build:embed # downloads ~23MB model once, embeds 2005 pagesThis adds data/embeddings.json. vector_search works without it (it falls
back to keyword search), but the tool is more useful with embeddings. Requires
the optional dependency @huggingface/transformers, which is installed by
default via optionalDependencies.
Run
npm start # node dist/server/index.js (stdio transport)
npm run dev # tsx src/server/index.ts (no build step needed)Configure an MCP client
Add the server to your MCP client config (e.g. .opencode/opencode.json or
Claude Desktop's claude_desktop_config.json):
{
"mcpServers": {
"stardew": {
"command": "node",
"args": ["/absolute/path/to/stardew-mcp/dist/server/index.js"]
}
}
}The server loads data/pages.json at startup; build before first run.
How the data is parsed
src/build/wikitext.ts is a focused MediaWiki parser (not a full one):
Finds the first top-level
{{Infobox ...}}template with balanced-brace scanning, and parses itskey = valuefields.Renders fields to plaintext:
{{Price|N}}→ "N gold",{{Name|X}}→ "X",{{NPC|name|role}}→ "name (role)",{{Season|Spring|13}}→ "Spring 13", links[[A|b]]→ "b", and strips refs/tables/file links.Splits sections on
=-headings and strips the infobox from the intro.Extracts
[[Category:...]].
Search (src/search/search.ts) is BM25 over tokenized excerpts with title
boosting, plus optional cosine search over L2-normalized embeddings.
Scripts
script | description |
| parse the XML dump → |
| compute sentence embeddings → |
|
|
| parse + compile |
| run server via tsx (no compile) |
| run compiled server |
| vitest (parser unit tests + end-to-end server tests) |
|
|
Layout
src/
build/
wikitext.ts # MediaWiki parser (infobox, sections, render)
build.ts # XML dump -> data/pages.json + data/index.json
embed.ts # pages -> data/embeddings.json (transformers.js)
search/
search.ts # BM25 + optional vector search, data loader
server/
index.ts # MCP server + tool handlers
tests/
parse.test.ts # parser unit tests
e2e.test.ts # end-to-end server tests via MCP client SDK
data/ # generated (gitignored)This server cannot be installed
Maintenance
Resources
Unclaimed servers have limited discoverability.
Looking for Admin?
If you are the server author, to access and configure the admin panel.
Related MCP Servers
AlicenseBquality-maintenanceMCP Server for interacting with Old School RuneScape Wiki API and game data files, providing tools to search the OSRS Wiki and access game data definitions through the Model Context Protocol.19611- AlicenseAqualityCmaintenanceEnables searching and retrieving Minecraft Wiki content in multiple formats (wikitext, HTML, markdown) through MCP tools, with batch retrieval and health monitoring.51MIT
- Alicense-qualityDmaintenanceProvides structured access to Wikipedia content including search, summaries, images, links, and more via MCP tools.6Apache 2.0
- AlicenseAqualityCmaintenanceProvides MCP tools to query Liquipedia esports data (matches, teams, players, tournaments, placements, standings) via the Liquipedia v3 API and MediaWiki action API.8MIT
Related MCP Connectors
Wikidata MCP — wraps Wikidata API (wikidata.org/w/api.php)
Wikipedia MCP — wraps Wikipedia REST API (free, no auth)
Search and fetch Wikidata entities, execute SPARQL queries, and resolve external identifiers.
Latest Blog Posts
- Who's Calling? MCP Hosts Are an Identity Blind Spot (And the Spec Knows It)By Om-Shree-0709 on .mcpAgent IdentityOAuth 2.1
- Your AI Chatbot Just Exposed Your CEO's Salary to an InternBy Om-Shree-0709 on .Agent IdentityMCP SecurityOAuth Delegation
- Why MCP Servers Need Execution Sandboxing (And Why Your Current Stack Isn't Enough)By Om-Shree-0709 on .Agentic AiPrompt InjectionWebAssembly
MCP directory API
We provide all the information about MCP servers via our MCP API.
curl -X GET 'https://glama.ai/api/mcp/v1/servers/cbhl/farming-game-mcp'
If you have feedback or need assistance with the MCP directory API, please join our Discord server