CurseForge ARK MCP Server
curseforge-ark-mcp
A read-only MCP server for CurseForge mod curation, discovery, and update surveillance for ARK: Survival Ascended.
THIS IS STILL v0 — PARTIALLY VERIFIED, NOT VERIFIED.
What changed on 2026-08-18: the CurseForge API key arrived, the client made its first authenticated calls, and every
ModandFilefield path it reads was confirmed present in live responses. None needed correcting. Sample: 748 distinct ARK: Survival Ascended mods, 1899 file records.Why it is still v0. Four things remain unconfirmed, and one of them cannot be confirmed by looking:
The
FileDependencyedge shape has never been observed — 0 of 1899 sampled ASA files declared a dependency, with thedependenciesarray present and empty every time.The
FileRelationTypeintegers are unpublished and unexercised in this catalog.The
FileReleaseTypeintegers1,2and3have now been seen. Which one means release, beta or alpha is still unknown, and this server will not guess.Any vendor cap on bulk-read id arrays: none found up to 300 ids, so none is known.
A partially verified client is not a verified one. The version number is a claim about verification status, so it is
0.2.0— not1.0.0, and deliberately not1.0.0-anything.
This repo's own behaviour is verified independently of the API: the endpoint allow-list, the
host pin, the path normalization, the pagination bounds, the envelope handling, and the
three-state absent/empty/unknown discipline. All of it is tested against an injected fake
fetch, with no key and no network. 169 tests, 0 failures at the time of writing.
Design record: docs/adr/ADR-002-endpoint-allow-list.md
(status: ACCEPTED 2026-08-18, with known-open residuals — not a verified catalog).
Every section reference below (§1, §4.3, §14.3 …) points into it.
What it does, and what it deliberately cannot do
Eight tools, all read-only:
Tool | Answers |
| "Which ASA mods match this term?" Include by class/category; exclude locally. A hit is a catalog row, not an install. |
| "What class/category ids exist for ASA?" Use this before filtering search. |
| "What is project 777001?" Includes author summary, raw status, dates, and latest file lengths. |
| "What files has this mod published?" Includes |
| "What is this specific file?" Includes |
| "Is there a newer file for this mod than the one I am running?" Inspect |
| "What does this mod pull in?" (batched, one request per tree level) |
| "Is it me, the key, or CurseForge?" — and "how honest is this build?" |
It cannot:
Download or install anything.
GET /v1/mods/{modId}/files/{fileId}/download-urlis a documented read, on the pinned host, and it is refused — because it is not on the endpoint allow-list (DEC-002 §11.3). Nitrado installs mods itself. A catalog row with a published file is still not an install recommendation: inspectfile_nameandfile_length_bytes. ASA content packs are typically megabytes to hundreds of megabytes. A few kilobytes is still a published file — this server does not open archives, and it will not invent "removed" from a status integer.allow_mod_distributionfalse is common on popular ASA mods and is not "taken down."Write anything, anywhere. No allow-list entry names a mutating endpoint. CurseForge does operate a mutating upload API on a different host (§14.2); the host pin refuses it a second time for an independent reason.
Publish or author a mod. Refused outright (DEC-002 Ruling 2). Enforced by a boot assertion, not by a promise: registering a tool that declares anything other than tier 1 makes the process refuse to start.
Touch Nitrado. No
NITRADO_*variable exists in this repo's configuration surface, and its absence is a control. This server holds no Nitrado token and reads no Nitrado config. Collaboration is in the conversation: this MCP returnshandoff.curseforge_mod_ids; nitrado-ark-mcp is what would writeactive-mods. That write is still queued (DEC-002 A6). Embodiment is a later in-game player agent on the founder's Steam account, not a UI that calls both servers.Wake up on a timer and update your server. No scheduler, no polling loop, no persisted "last seen version" state (§10). Surveillance means the model may observe a new version. It does not get to act.
The chokepoint: an endpoint allow-list, not a method check
This is the one design decision worth reading before touching the code.
CurseForge uses POST to READ. POST /v1/mods and POST /v1/mods/files are bulk
retrievals, and they are what make resolve_mod_dependencies cost one request per dependency
level instead of one per node. So the sibling repo's method !== "GET" → refuse would fail
here in the most expensive way possible: it would work. It would refuse things, pass its own
tests, and quietly make the server bad at its job.
And the obvious fix is worse than the bug:
allowed = { GET } → the batch reads are refused (broken, loudly)
allowed = { GET, POST } → every request this client can construct is allowedThe documented catalog API contains only GET and POST. A gate admitting both admits
everything — while continuing to look present.
So instead, every outbound request must match an explicit entry in a closed list of
{method, path} pairs. Seven entries, in src/allowlist.ts:
# | Method | Path | Serves |
E1 |
|
| game-id resolution, |
E2 |
|
|
|
E3 |
|
|
|
E4 |
|
|
|
E5 |
|
|
|
E6 |
|
|
|
E7 |
|
|
|
Mechanically:
Matched on
{method, path}jointly. E3 does not authoriseDELETE /v1/mods/123. E6 does not authorisePOST /v1/mods/123.The host is pinned to
https://api.curseforge.com, and the pin is an allow of one origin rather than a deny of any named other.Id segments bind to
[0-9]+, not[^/]+. This is load-bearing: a permissive{modId}makes E3 swallow/v1/mods/search. The numeric binding makes that ambiguity structurally impossible rather than dependent on match order — and there is a test that reverses the whole list to prove ordering is not what saves it.One normalization, before the check, and the URL is built from its output. Percent-decode once; refuse any
%that survives; fold backslashes; refuse.,..and empty segments.Only E6/E7 may carry a body, shape-checked before dispatch. A body on a GET entry is refused, not dropped.
Only
resolve_mod_dependenciesmay reach a POST entry (§8), enforced in the transport.
The failure mode is "unmatched request refused", never "unrecognised request sent." And adding a capability is a reviewable one-line diff whose review question — "is this endpoint a read?" — is one a human can actually answer.
The test that proves it is an allow-list
GET /v1/mods/{modId}/files/{fileId}/download-url is refused. It is a documented read, a
GET, on the pinned host, with well-formed numeric ids. It is refused purely because it is not
on the list. If that test ever passes for some other reason — a host-pin refusal, a path
refusal — the property is not implemented, so the test asserts the refusal's code and detail,
not merely that something threw.
Every refusal test also asserts the fake fetch's call count, because "refused before the
request is built" is the actual provision, and an error thrown after dispatch would satisfy a
weaker assertion. And the refusal suite is preceded by a preimage test proving all eight
entries do dispatch — a refusal suite over a client that can send nothing passes perfectly and
proves nothing.
Verified against the live API — 2026-08-18
Sample: 748 distinct ASA mods, 1899 file records, drawn from deep search pages
(index 1000-6000) and from every documented sortField 1-12, plus full file lists for 100 mods.
Dated and sized on purpose: "verified" without a sample size is a mood, not a claim.
# | Claim | Result |
U1 | The ASA |
|
U2 | Is ASA visible to the key? | Yes. 38 games visible, ASA among them. Not v1-blocking. |
U3 |
| All correct. |
U4 |
| All correct. |
U8 |
| Present on the paginated endpoints (games, search, files), absent on single-record and bulk reads. E8 ( |
U9 | Do ASA mods populate the optional fields? |
|
U11 | Rate-limit headers | CurseForge sends none. Full header enumeration on a live GET and POST found transport/CDN headers only. So |
U12 | Pagination past index 0 | Works; |
U13 | Base URL | Correct. The host pin is sound. |
No field path needed correcting. That is recorded as an outcome rather than a boast: the
sibling repo's commit 5481c04 fixed three wrong paths the day it first called live, and that
precedent is the reason each path here was checked one at a time instead of trusted.
Still unverified
Shrunk, not vanished. These are the rows that survived contact with the live API.
# | Claim | Status | Why it is still open |
U5 |
| Unobserved | Not shown wrong — never seen. No ASA file in the sample declared a dependency, so no edge object has ever been inspected. The shape is documentation-derived and the test fixture is the only place it exists. |
U6 | The | Unpublished AND unobservable here |
|
U7 | The | Values seen, meanings unknown | Observed: |
U10 | Vendor cap on bulk-read id arrays | No cap found up to 300 | 200 distinct ids returned 200 records; 300 returned 300. So the cap, if any, is above 300. The 200-id cap in this client stays: it is ours, deliberately conservative against an undocumented rate limit, and a probe that found no ceiling has not found the ceiling. |
Two consequences you will see in tool output
relationType and releaseType are surfaced as raw integers and are never mapped. Not to
required/optional, not to release/beta/alpha. CurseForge publishes no value table for
either, and a wrong label would produce a dependency list — or an update recommendation — that is
wrong in a way nobody would check. resolve_mod_dependencies therefore follows every edge
and says so: it over-collects, and its output states that plainly. A wide net is at least
visibly wide.
For ASA specifically, the live catalog makes that moot in a way worth knowing before you use the tool: no sampled ASA mod declares any dependency at all. A single-node tree is the expected result, not a symptom of a broken traversal, and the tool's output says which one it is.
get_latest_file defaults to newest by fileDate. Newest by fileDate, newest
matching a game version, and newest with a given releaseType still give different
answers, and a mod-update decision made on the wrong one is exactly the
confident-wrong-answer class this repo is arranged against. The founder settled the
default on 2026-08-18: omit selection and you get newest_by_file_date. The other two
variants remain. Every answer restates the ordering it used, whether the default was
applied, what it filtered on, how many candidates it considered, and where the candidates
came from.
| Also requires | Means |
| — | Default. Newest of all candidate files, by |
|
| Newest file declaring that game version |
|
| Newest file carrying that release-type integer |
There is no named release/beta/alpha filter, because U7 is unresolved and this server will
not invent the mapping. You pass the integer you mean.
ADR-002 open question 2 is closed as a product decision, not as a verification claim. The tool is still parameterized: the default is one of three stated questions, not a rewrite that deletes the other two.
Setup
Node 20+ (developed on 22). No build step to configure; npm test builds first.
npm install
npm test # builds, then runs the suite — no key, no network, nothing live
npm run typecheck
npm run smoke # LIVE once a key is configured; refuses cleanly and probes nothing without onenpm run smoke is the falsification run, not a health check. With a key it walks the §14.3
register row by row and prints what it observed; without one it names every probe it would have
made and exits 0 having sent nothing. The test suite never touches the network in either case.
MCP client configuration (stdio). First-use on this machine is the Cursor user
mcp.json entry curseforge-ark. It launches dist/src/server.js and does not
put the key in that file: the server loads gitignored .env itself (process.env
still wins if an MCP client supplies the variable). Duplicating the key into
mcp.json is a second copy of a non-transferable credential.
{
"mcpServers": {
"curseforge-ark": {
"command": "node",
"args": ["C:/Users/jdsho/CursorProjects/curseforge-ark-mcp/dist/src/server.js"]
}
}
}Disable / rollback: remove the curseforge-ark entry from the MCP client config.
This server is first-party stdio, not a Runlayer-managed catalog server.
The server refuses to start without a key, naming both locations it searched, the exact variable, and the fact that the key is not self-service. A stdio MCP server that starts cleanly and then throws on every tool is a miserable thing to debug.
About the key
The API key is sent as an x-api-key request header. It is not an
Authorization: Bearer token — that is the sibling Nitrado server's scheme, and this repo
deliberately does not support both, because supporting both would mean this code could transmit
the credential in a form CurseForge never documented.
The key is granted by application to Overwolf and is non-transferable. The practical
consequence, and the only reason this paragraph exists: a leak means revoke and re-apply, and
re-application is a queue, not a self-service reset. You cannot regenerate it over coffee and
you cannot borrow someone else's. Treat it accordingly — .env is gitignored, .env.example
carries the variable name and an empty value, and no key value appears in any committed file.
There is no scope matrix in this repo, and that is not an oversight: CurseForge publishes no read-only scope and no scope selection, so there is nothing to matrix. The read-only property of this server comes from its own endpoint allow-list, not from a narrower credential. There is also no token-leak runbook — a leaked key grants read access to a public catalog plus quota consumption, which is real and is not the same category as the sibling repo's Nitrado token (documented as equivalent to full control of a game server). That right-sizing is argued in ADR-002 §12, and it rests on one claim stated there so it can be falsified: CurseForge catalog data is public by construction.
Redaction, all of it
One rule: never echo the API key. One function, src/scrub.ts, applied to
error messages and to any upstream body snippet. Request headers never appear in errors — not the
key, not a redacted key, not a header-name list. get_api_diagnostics reports whether a key is
configured and never its value, a prefix of it, or its length.
Behaviours worth knowing before you read output
Empty is not unknown.
data: []means CurseForge answered "none" — a real answer, with the query echoed so you can see what returned nothing. An absent field isnull, never0,""or[]. A request that did not complete, or a response whose shape is wrong, is an error — never a value.A missing
datakey is an error, not an empty result. Coercing it to[]would turn a broken integration into "no results found".A missing
paginationon a paginated endpoint is an error too. Assuming one page is how a tool reports 50 of 900 mods as if it were all of them (U8 is exactly this open question).pageSize > 50is refused, not clamped, and so isindex + pageSize > 10000— with the largest legal page size at that index named in the message. A model that asks for 200 and silently gets 50 will reason about a page as if it were a set.When
totalCountexceeds 10000, tool output says the tail is UNREACHABLE, in those words, and advises narrowing the filter rather than paging.The ASA
gameIdis discovered at runtime fromGET /v1/gamesand cached for the process lifetime; it is never hardcoded and never guessed. If it cannot be resolved the server fails loudly, naming what it searched for and how many games the key could see — becausegameIdis a required search filter, so a wrong one returns clean, empty, entirely wrong results instead of an error. SetCURSEFORGE_GAME_SLUGif the built-in candidates turn out to be wrong.resolve_mod_dependenciesis bounded at depth 4 and 400 nodes, with a visited set for cycles. When a bound is hit the result is reported as truncated, in that word, with the unexplored frontier listed.
Repo layout
src/
allowlist.ts THE CHOKEPOINT — eight entries, host pin, normalization, bounds, body checks
client.ts the single transport; the ONLY place x-api-key is attached; envelope unwrap
config.ts refuse-to-start; no NITRADO_*, no mode switch, no settable base URL
coerce.ts empty / absent / unknown, kept apart
errors.ts the error taxonomy
game.ts runtime gameId resolution (injected, process-lifetime cache)
registry.ts ToolDef + tier, and the boot assertion that refuses a non-tier-1 tool
scrub.ts never echo the key. That is the whole module.
probe-plan.ts one probe per unverified row, asserted complete by a test
server.ts stdio entry point
smoke.ts the falsification run (live with a key, plan-only without)
tools/ the eight tools
test/ 156 tests; fixtures are synthetic in content, structural in shape
scripts/ buildinfo generator, test enumeratorsrc/buildinfo.ts is generated and gitignored, stamped with the commit and a dirty flag
before every tsc run, and surfaced by get_api_diagnostics. dist/ is gitignored and the
server runs from it as a long-lived process, so "which code produced that answer?" is not
answerable from git at runtime — it has to travel with the artifact.
Deviations from the sibling repo, stated deliberately
ADR-002's open questions 7 and 8 ask for these to be named where they happen:
Same baseline, deliberately. Node ≥20, TypeScript 5.9.3,
@modelcontextprotocol/sdk1.30.0,zod4.4.3,node:testvia the samescripts/run-tests.mjsenumerator. Same reviewer, same idioms, lower cost of reading both.@cfworker/json-schemais not a dependency here. It backs the sibling's cron-expression validation, and there is no write path to validate.registry.tsis ported in structure and keepstier, but drops the mode/enabled-list machinery — it would have nothing to filter, since every tool is tier 1 and every endpoint is a read. A mode variable with nothing behind it advertises a control that does not exist. One five-line boot assertion replaces the subsystem.redact.tsis not ported (§12.1). See "Redaction, all of it" above.No
UNKNOWN_OUTCOMEerror code. The sibling needs it because a lost response to aPUTmay still have changed the world. Every request this client can make is a read, so a timeout genuinely does mean "it did not happen" and a retry is safe.npm run smokeexits 0 when it refuses for want of a key. The refusal is the expected outcome of running it today, and the banner saysSMOKE NOT RUNunmissably. If you want a pipeline to fail on a missing key, gate the pipeline on the key rather than on this exit code.
Related records
In the sibling repo nitrado-ark-mcp, read-only from here — nothing in that repo was
modified by this one:
docs/decisions/EXECUTIVE-BOARD-2026-08-16-curseforge-mods.md— the board minutes (DEC-002) this repo executes. Its Chair's Rulings are binding.docs/decisions/decision-log.md— DEC-002, and DEC-001 for the scope split that §10 rests on.docs/adr/ADR-001-write-path-enforcement.md— the shape ADR-002 ports, and the source of the normalization rule, the boot-check reasoning, and the refuse-to-start reasoning.
The two servers stay independent. nitrado-ark-mcp answers "these project ids are in
active-mods"; this repo answers "project X's newest file is v2.1". The model holds both.
Neither server calls the other, and neither ever holds the other's credential.
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/JShort-bufr/curseforge-ark-mcp'
If you have feedback or need assistance with the MCP directory API, please join our Discord server