Ace Achievers MCP Server
by Star4future
README.md
# Ace Achievers MCP Server
> An [MCP](https://modelcontextprotocol.io) (Model Context Protocol) server exposing the
> [Ace Achievers](https://aceachievers.com.au) course catalog and question-bank tools to any
> MCP client — Claude Desktop, Claude Code, or your own agent.
[](https://github.com/Star4future/aceachievers-mcp-server/actions/workflows/ci.yml)
[]()
[]()
[]()
## What this is
MCP is the open standard that lets an LLM agent call typed tools over a common wire protocol
(JSON-RPC over stdio or HTTP) — write the server once, and any MCP-capable client can use it.
This server packages the product-data tools I built for an Australian K-12 competition-learning
platform, so an agent can answer *"which course fits a Year 7 student new to competition maths?"*
against live catalog data instead of guessing.
## Tools
| Tool | What it does |
|------|--------------|
| `search_courses(subject?, year_level?, course_type?)` | Filter the 26-course catalog (maths / science / computer-science, Years 5–12) |
| `get_course(course_id)` | One course in full — structure, target band, free-tier info |
| `search_questions(topic?, difficulty?)` | Search the question bank — returns stems only, never spoilers |
| `get_question(question_id, hint_level)` | Tiered reveal: 0 = question, 1 = nudge, 2 = approach, 3 = full solution |
| `qbank_stats()` | Corpus overview — data source and counts by subject / difficulty / topic |
| `get_pricing_info()` | The redirect-volatile pricing contract (see design notes) |
## Quick start
```bash
git clone https://github.com/Star4future/aceachievers-mcp-server
cd aceachievers-mcp-server
pip install -e ".[dev]"
pytest # 16 tests
aceachievers-mcp # runs the stdio server
```
### Claude Desktop
Add to `claude_desktop_config.json`:
```json
{
"mcpServers": {
"aceachievers": {
"command": "aceachievers-mcp"
}
}
}
```
Then ask Claude: *"Find a hard geometry question and give me a nudge, not the answer."*
## TypeScript client
The server is Python; the product that would consume it is TypeScript. So the
repo also ships a typed, **zod-validated** TS/Node client
([`clients/ts/`](clients/ts/)) built on the official
`@modelcontextprotocol/sdk` — the same six tools behind typed methods, every
result validated at runtime (not cast):
```bash
cd clients/ts
npm install
npm run test:unit # 5 hermetic tests — green with NO Python installed
npm test # + 4 integration tests against the real server
npm run demo # call every tool through the typed client
npm run report # catalogue contract check (a real consumer, CI-gated)
```
See [`clients/ts/README.md`](clients/ts/README.md) for the design notes.
## Design notes
**Redirect-volatile pricing.** Prices and enrolment windows change on the live site, so this
server refuses to store them: `get_pricing_info` returns the live source instead of numbers.
Stable facts (course structure, topics, question content) are served from the bundled snapshot.
This is the same volatile/stable knowledge split that let the platform's production chat
assistant absorb a 3× catalog expansion with zero pricing-logic rewrites — the bot can't go
stale on facts it never stored.
**Tiered hint reveal.** `get_question` mirrors the production RAG tutor's pedagogy: a student
who asks for a nudge must not receive the answer, so hints unlock level by level and the
listing view never includes solutions. The guardrail lives server-side — the client can't
accidentally spoil.
**Sample data in the repo, real bank via env.** The bundled question set is original material
written for this demo in the production bank's format; licensed past-paper content is not
redistributed here. The production deployment points these *same tools* at the private store
(2,500+ taxonomically classified problems, extracted from PDFs via a Vision-API pipeline) —
implemented via environment variables, with records from both production schemas (AMC maths
and science-olympiad) normalised onto one shape (`private_bank.py`):
```bash
# option 1 — explicit files, ";"-separated
QBANK_PATHS="D:\private\amc_junior.json;D:\private\jso_master.json"
# option 2 — a directory of *.json bank files
QBANK_DIR="D:\private\qbank"
```
No env vars → the bundled sample serves; unknown ids and missing hints degrade gracefully.
## Layout
```
src/aceachievers_mcp/
├── server.py # FastMCP server: 6 tools, pure logic separated for testing
├── private_bank.py # env-configured private bank loading + schema normalisation
└── data/
├── courses.json # 26-course catalog snapshot (no prices — by design)
└── sample_questions.json # 10 original questions with 3-tier hints
scripts/demo_client.py # stdio client that exercises all six tools end-to-end
tests/test_tools.py # 16 unit tests
clients/ts/ # typed, zod-validated TypeScript/Node client (9 tests + CI)
```
## License
MIT — see [LICENSE](LICENSE).
TDQS
A4.4/5.0
Scored across 5 tools
Disambiguation5/5
Each tool targets a distinct resource: courses, pricing, and questions. Get vs search are clearly separated, and no two tools overlap in purpose.
Naming Consistency5/5
All tools follow a consistent verb_noun pattern using 'get' or 'search', with clear and predictable names.
Tool Count5/5
With 5 tools, the set is well-scoped for the domain of retrieving course and question information, neither too sparse nor overloaded.
Completeness5/5
The tool set covers retrieval and search for courses and questions plus pricing info. No obvious gaps for the stated purpose of an informational assistant.
Maintenance
ActivityInactive
ResponsivenessNo recent community issues