What it does
The PE Civil: Structural exam is computer-based: the only references are on-screen PDFs, one chapter at a time. The skill that decides the exam is navigation — knowing that the strength-reduction factor lives in ACI 318-14 Chapter 21, Table 21.2.2, printed page 343. This service gives any agent that navigation memory over the complete exam-day library (12 reference groups, 245 chapter PDFs, 10,077 pages):
- locate a citation — section, table, equation or figure — to chapter PDF, PDF page, printed page, a snippet, and a link that opens the simulator on that page;
- search the full text with ranked snippets when the number is unknown;
- list headings of a standard or chapter with page numbers (the table of contents, with pages);
- verify that every location cited in a worked solution really exists;
- serve a bank of practice questions with keyed solutions that cite their reference path.
Quick start
curl "https://pe-exam-env.vercel.app/api/v1/locate?cite=ACI%20318-14%20Table%2021.2.2"
{
"found": true,
"query": { "standard": "aci-318-14", "type": "table", "token": "21.2.2" },
"matches": [{
"standard": { "id": "aci-318-14", "short": "ACI 318-14" },
"chapter": { "index": 21, "name": "21 Chapter 21 - Strength Reduction Factors", "pages": 6, "path": "/references/05%20ACI%20318-14/21%20Chapter%2021%20-%20Strength%20Reduction%20Factors.pdf" },
"page": { "pdf": 3, "printed": "343", "section": "21.2.3" },
"citation": "ACI 318-14 Table 21.2.2 — 21 Chapter 21 - Strength Reduction Factors, PDF p. 3 (printed 343)",
"snippet": "Table 21.2.2—Strength reduction factor ϕ for moment, axial force, or combined moment and axial force …",
"links": {
"open": "https://pe-exam-env.vercel.app/?ref=%2Freferences%2F05%20ACI%20318-14%2F21%20Chapter%2021%20-%20Strength%20Reduction%20Factors.pdf&page=3&q=21.2.2",
"pdf": "https://pe-exam-env.vercel.app/pdfjs/web/viewer.html?file=…#page=3&search=21.2.2"
}
}],
"commentary": [], "mentions": []
}
More: /api/v1/locate?cite=ASCE 7-16 §12.8.1.1 · ?cite=TMS 402-16 Eq. 8-21 · ?cite=AISC Manual Table 4-1a · ?cite=IBC 2018 §1604.5 · ?cite=AASHTO Table 3.4.1-2 · ?cite=NDS Supp Table 4A · ?cite=OSHA 1926.501
MCP server
Endpoint https://pe-exam-env.vercel.app/mcp — Model Context Protocol over Streamable HTTP, stateless, protocol version 2025-06-18. No authentication for the public tools.
# Claude Code
claude mcp add --transport http pe-refs https://pe-exam-env.vercel.app/mcp
# any client (mcpServers config)
{ "mcpServers": { "pe-references": { "type": "streamable-http", "url": "https://pe-exam-env.vercel.app/mcp" } } }
# raw JSON-RPC
curl -X POST https://pe-exam-env.vercel.app/mcp \
-H "Content-Type: application/json" -H "Accept: application/json, text/event-stream" \
-d '{"jsonrpc":"2.0","id":1,"method":"tools/call","params":{"name":"locate","arguments":{"citation":"ASCE 7-16 Table 12.6-1"}}}'
| Tool | Arguments | Returns |
|---|---|---|
locate | citation, standard?, type? | chapter + PDF page + printed page + snippet + open/pdf links; commentary twins; pages that mention it |
search_references | query, standard?, limit? | ranked pages with snippets and links ("quotes" = phrase) |
get_toc | standard, chapter?, maxDepth? | section headings with PDF and printed page numbers |
list_standards | — | catalog: ids, aliases, chapter PDFs, page counts |
list_exams / get_exam / get_question | exam, id | practice questions with options, answer and solution |
verify_citations | solution | per-line check of a solution's "Reference path:" locations |
read_section / read_page | citation · standard, chapter, page | full text — access key required |
prompt pe_tutor | topic? | tutoring guidance that always cites exact locations |
All tools are read-only (readOnlyHint). Discovery manifest: /.well-known/mcp.json.
REST API
Base https://pe-exam-env.vercel.app/api/v1 · JSON · Access-Control-Allow-Origin: * · OpenAPI 3.1 · live index
| Endpoint | What |
|---|---|
GET /locate?cite=…[&standard=&type=&limit=] | resolve a citation (200 found/mentioned, 404 otherwise) |
GET /search?q=…[&standard=&limit=1-25] | ranked full-text search with snippets |
GET /standards · /standards/{id} · /standards/{id}/toc?chapter= | catalog, one standard, headings → pages |
GET /exams · /exams/{id} · /exams/{id}/questions/{qid} · /questions | question bank |
POST /verify-citations {"solution": "Reference path:\n …"} | check every cited location resolves |
GET /section?cite=… · GET /page?standard=&chapter=&page= | full text — key required (401 without) |
GET /health | {ok, version, pages, exams} |
Standard ids: ncees-handbook, aashto-lrfd-8, ibc-2018, asce-7-16, aci-318-14, aisc-manual-15, nds-2018, sdpws-2015, osha-29-cfr, pci-handbook-7, tms-402-16, ncees-specs. Inside a citation the usual names work too: "ACI 318", "ASCE 7", "AISC 360-16", "NDS Supp", "TMS 402/602", "AASHTO LRFD", "29 CFR 1926", "Handbook".
How a location is resolved
- The standard is recognised from its name or alias in the citation (longest alias wins), or from
standard=. - The item type comes from the keyword: §/Section → section; Table; Eq./Equation/(…) → equation; Fig./Figure. No keyword → section, then equation, table, figure.
- The number is looked up in a heading index built from the page text of every chapter PDF: section headings ("22.2.2.4.1 Concrete stress…", "3.6.1.3.1—General", "E3. Flexural Buckling…", "§ 1926.501 …"), table and figure captions, and equation definitions such as "(12.8-1)". Contents pages are recognised and demoted so the body heading wins; the chapter whose name carries the leading number (Chapter 22, Section 3, Part 4, IBC 1604 → Chapter 16) is preferred.
- Missing exact heading → nearest parent section (
resolvedAs) → pages that mention the number (mentions). Commentary twins (R22.2.2.4.1, C3.6.1.3.1) are listed undercommentary.
page.pdf is the 1-based page inside that chapter file; page.printed is the number printed on the page (348, 3-26, C-117, 16.1-33); page.section is the first section heading on that page.
Coverage
| id | Standard | Chapter PDFs | Pages |
|---|---|---|---|
| ncees-handbook | NCEES PE Civil Reference Handbook | 7 | 502 |
| aashto-lrfd-8 | AASHTO LRFD Bridge Design Specifications, 8th Ed. (2017) | 16 | 1,762 |
| ibc-2018 | 2018 International Building Code | 50 | 757 |
| asce-7-16 | ASCE/SEI 7-16 (code + commentary) | 74 | 889 |
| aci-318-14 | ACI 318-14 Building Code Requirements for Structural Concrete and Commentary | 31 | 524 |
| aisc-manual-15 | AISC Steel Construction Manual, 15th Ed. (Part 16 = AISC 360-16) | 18 | 2,303 |
| nds-2018 | AWC NDS 2018 with Commentary + 2018 Supplement | 2 | 292 |
| sdpws-2015 | AWC SDPWS 2015 with Commentary | 1 | 56 |
| osha-29-cfr | OSHA 29 CFR 1910 & 1926 (2020) | 2 | 1,778 |
| pci-handbook-7 | PCI Design Handbook, 7th Ed. | 18 | 828 |
| tms-402-16 | TMS 402/602-16 Masonry Code and Specification | 25 | 382 |
| ncees-specs | NCEES PE Civil: Structural exam specification | 1 | 4 |
Live catalog with chapter indices: /api/v1/standards. Known gap: the AISC 360-16 Specification scan has imperfect OCR, so some AISC equation numbers resolve to the section rather than the equation line.
Deep links into the simulator
Every location carries links.open = https://pe-exam-env.vercel.app/?ref=<chapter path>&page=<N>&q=<term>, which opens the owner's Pearson-VUE-style practice environment on that chapter PDF, scrolled to that page with the term highlighted, and links.pdf for the raw pdf.js viewer. The simulator and the PDFs require the owner's sign-in; the locator API does not.
Practice questions
GET /api/v1/questions returns every question with stem, options (A–D), answer, and a solution that begins with a Reference path: block citing the standard locations used (equations not printed in a standard are labelled "derived from mechanics"). Images are absolute URLs. Math markup: _x subscript, ^x superscript, {a}/{b} fraction, *i* italic.
Access & licensing
Public, no key: locations, page numbers, headings, snippets (≤ ~400 characters), search rankings, the question bank, citation verification.
Key required: read_section, read_page, /section, /page — the full text of the standards. The reference standards are copyrighted by their publishers (ACI, AISC, ASCE, ICC, AASHTO, AWC, TMS, PCI, NCEES; 29 CFR is a US Government work). This service points to them; it does not republish them. Agents should cite the standard and location rather than reproduce its text.
Hosted on Vercel; cold start about 2 s (11 MB index), warm responses about 0.3 s. Fair use: a few requests per second is fine.
FAQ
Where is Table 21.2.2 in ACI 318-14?
Chapter 21 - Strength Reduction Factors, PDF page 3, printed page 343 — /api/v1/locate?cite=ACI 318-14 Table 21.2.2.
Which chapter has the seismic response coefficient in ASCE 7-16?
§12.8.1.1 in Chapter 12 - Seismic Design Requirements for Building Structures, PDF page 13, printed page 101 — locate, or search.
How do I connect an AI tutor?
Add the MCP server https://pe-exam-env.vercel.app/mcp to the client (Claude Code: claude mcp add --transport http pe-refs https://pe-exam-env.vercel.app/mcp), then use locate before every citation and paste the open link for the student. The pe_tutor prompt encodes the house rules.
Can I get the full text of a section?
Only with the owner's access key (Authorization: Bearer <key>, X-API-Key, ?key=, or the /mcp/<key> endpoint). Everything else works without it.