PE Civil: Structural Reference Locator

MCP server + REST API that turns a code citation into the exact chapter PDF and page — for AI tutors coaching the NCEES PE Civil: Structural exam. Public, no sign-in. llms.txt · OpenAPI · MCP

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):

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"}}}'
ToolArgumentsReturns
locatecitation, standard?, type?chapter + PDF page + printed page + snippet + open/pdf links; commentary twins; pages that mention it
search_referencesquery, standard?, limit?ranked pages with snippets and links ("quotes" = phrase)
get_tocstandard, chapter?, maxDepth?section headings with PDF and printed page numbers
list_standards—catalog: ids, aliases, chapter PDFs, page counts
list_exams / get_exam / get_questionexam, idpractice questions with options, answer and solution
verify_citationssolutionper-line check of a solution's "Reference path:" locations
read_section / read_pagecitation · standard, chapter, pagefull text — access key required
prompt pe_tutortopic?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

EndpointWhat
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} · /questionsquestion 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

  1. The standard is recognised from its name or alias in the citation (longest alias wins), or from standard=.
  2. The item type comes from the keyword: §/Section → section; Table; Eq./Equation/(…) → equation; Fig./Figure. No keyword → section, then equation, table, figure.
  3. 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.
  4. 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 under commentary.

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

idStandardChapter PDFsPages
ncees-handbookNCEES PE Civil Reference Handbook7502
aashto-lrfd-8AASHTO LRFD Bridge Design Specifications, 8th Ed. (2017)161,762
ibc-20182018 International Building Code50757
asce-7-16ASCE/SEI 7-16 (code + commentary)74889
aci-318-14ACI 318-14 Building Code Requirements for Structural Concrete and Commentary31524
aisc-manual-15AISC Steel Construction Manual, 15th Ed. (Part 16 = AISC 360-16)182,303
nds-2018AWC NDS 2018 with Commentary + 2018 Supplement2292
sdpws-2015AWC SDPWS 2015 with Commentary156
osha-29-cfrOSHA 29 CFR 1910 & 1926 (2020)21,778
pci-handbook-7PCI Design Handbook, 7th Ed.18828
tms-402-16TMS 402/602-16 Masonry Code and Specification25382
ncees-specsNCEES PE Civil: Structural exam specification14

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.

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.