dprr-mcp
This server does not currently have a deployable release on Glama. Follow the repository's setup instructions to install and configure it for your MCP client, including any required credentials and local dependencies.
dprr-mcp
Natural-language prosopographic queries for the Roman Republic. Generates validated SPARQL against the DPRR RDF dataset and synthesises results with uncertainty flags and source citations.
Before You Begin
Strongly recommended reading: Caveat Utilitor — a detailed guide to the risks, biases, and inferential fallacies inherent in the DPRR dataset. The database documents a narrow, elite slice of Roman Republican society filtered through multiple layers of modern scholarly interpretation. Absence of evidence is not evidence of absence, naming conventions are ambiguous, and coverage varies dramatically by period. Read this document before drawing conclusions from query results.
Related MCP server: RCE CHO SPARQL MCP Server
Setup
From source
Requires Python 3.13+ and uv.
uv sync
uv run dprr-serverDocker
Prebuilt images are published to GHCR on every release:
docker run -p 8000:8000 ghcr.io/gillisandrew/dprr-mcp:latestOr build locally:
docker build -t dprr-mcp .
docker run -p 8000:8000 dprr-mcpTo persist the auto-downloaded data across container restarts, mount a volume:
docker run -p 8000:8000 -v dprr-data:/app/data ghcr.io/gillisandrew/dprr-mcp:latestData
On first startup, the server automatically downloads the DPRR RDF dataset from the latest GitHub release and initializes the local Oxigraph store. No manual data setup is required.
Why bundle the data? The upstream DPRR site (romanrepublic.ac.uk) experiences frequent downtime and serves a proof-of-work challenge page that blocks programmatic access. Bundling a snapshot of the RDF export in each release ensures the server can initialize reliably without depending on upstream availability. The dataset is distributed under its original CC BY-NC 4.0 license.
Data is stored in $XDG_DATA_HOME/dprr-mcp/ (defaults to ~/.local/share/dprr-mcp/). Override with DPRR_DATA_DIR.
Usage
MCP Server
The server uses the streamable-http transport — it runs as a standalone HTTP process that MCP clients connect to over the network.
# From source:
uv run dprr-server
# Custom host/port:
uv run dprr-server --host 0.0.0.0 --port 9000
# Docker:
docker run -p 8000:8000 ghcr.io/gillisandrew/dprr-mcp:latestThe server listens on http://127.0.0.1:8000/mcp by default. A health check endpoint is available at /healthz. Queries that exceed the timeout (default 600s, configurable via DPRR_QUERY_TIMEOUT) return a structured error instead of crashing the connection.
MCP Tools
Tool | Description |
| Returns DPRR ontology prefixes, available classes, and general query tips |
| Syntax check, auto-repairs missing PREFIX declarations, semantic validation against the ontology |
| Full validation + execution against the local Oxigraph RDF store |
Claude Code configuration
Start the server, then configure Claude Code to connect. Add to .claude/settings.json:
{
"mcpServers": {
"dprr": {
"type": "http",
"url": "http://127.0.0.1:8000/mcp"
}
}
}Claude Desktop configuration
Start the server, then add to claude_desktop_config.json:
{
"mcpServers": {
"dprr": {
"type": "http",
"url": "http://127.0.0.1:8000/mcp"
}
}
}Claude Code Skill
With the MCP server configured, use the built-in skill:
/dprr Who held the office of praetor in 150 BC?Claude will load the DPRR schema, generate a SPARQL query, validate and execute it, then synthesize the results into an academic summary with source citations and uncertainty flags.
Example output
Praetors in 150 BC: Evidence from DPRR
The Digital Prosopography of the Roman Republic (DPRR) aggregates modern secondary scholarship — principally Broughton's Magistrates of the Roman Republic (MRR) and Brennan's Praetorship in the Roman Republic (2000) — into a queryable database. Results therefore reflect modern editorial judgments about ancient magistracies, not unmediated ancient testimony. What follows reports what DPRR's sources record for praetors datable to 150 BC.
Firmly Attested Praetors
C. Livius (14) M. f. M. n. Drusus (LIVI1519) is recorded as praetor in 150 BC (Broughton, MRR I). A scholarly note in DPRR observes that this represents "the latest possible date for his praetorship" (Broughton, MRR I), indicating that the date itself carries some imprecision — 150 BC is a terminus ante quem rather than a firmly fixed year. Brennan (2000, p. 737) also attests this praetorship.
P. Sextilius (SEXT2976, not in RE) is recorded as praetor with a date of 150 BC, though DPRR flags both the start and end dates as uncertain (Broughton, MRR II, Appendix 2). The accompanying scholarly note explains that he is "named, probably as presiding officer, in a fragmentary decree of the Senate discovered at Trikkala in Thessaly" (Giannopoulos, Eph. Arch. 1934–35, 149, no. 2; cf. L. Robert, Études Épig. et Phil. 287f., note 1), and dates his praetorship to "probably before the middle of the second century." The overall assertion is also flagged as uncertain. Brennan (2000, p. 756, fn. 504) provides additional discussion.
A Note on Absent Evidence
The query returns only two individuals with praetorships precisely dated to 150 BC. The remaining results captured by the broader date-range search are individuals whose praetorships fall within wide chronological windows (e.g., 200–101 BC or 509–31 BC) and are all flagged as uncertain — these represent persons known to have held the praetorship at some undetermined point within those ranges, not specifically in 150 BC. They include figures recorded by Brennan (2000) and Broughton (MRR II, Appendix 2; MRR III) such as Cn. Aufidius, (Cornelius) Sulla, Domitius Calvinus, L. Furius, A. (Manlius) Torquatus, M. Marcius, Octavius, and C. Rabirius — but assigning any of them to 150 BC specifically would exceed what the sources warrant.
The small number of attested praetors for this year should not be taken as evidence that few praetors served. Six praetors were elected annually by this period. The sparse record reflects the fragmentary state of our sources for the mid-second century BC, a period that falls between Livy's surviving narrative (which breaks off after 167 BC) and the richer documentation of the late Republic. DPRR can only record what modern scholarship has been able to reconstruct from the surviving evidence.
Bibliography
Bradley, John. "A Prosopography as Linked Open Data." DHQ 14.2 (2020).
Brennan, T. C. The Praetorship in the Roman Republic. 2 vols. Oxford (2000).
Broughton, T. R. S. The Magistrates of the Roman Republic. 3 vols. (1951–1986).
Giannopoulos. Ephemeris Archaiologike (1934–35).
Robert, L. Études Épigraphiques et Philologiques. Paris (1938).
Architecture
flowchart TB
A["Claude Code Skill (/dprr)\nSystem prompt with DPRR domain knowledge\nOrchestrates: analyze → generate\n→ validate → execute → synthesize"]
B["MCP Server (dprr-server)\nPython, streamable-http\n3 tools: get_schema, validate_sparql,\nexecute_sparql"]
C["Local Oxigraph Store\nRDF triples from DPRR dataset"]
A -- "MCP protocol (streamable-http)" --> B
B --> CThe MCP server + skill path lets Claude orchestrate the pipeline with no additional API calls needed.
Environment Variables
Variable | Description |
| Override data directory (default: |
| Override URL for auto-downloading the data tarball |
| Query timeout in seconds (default: 600) |
References
This tool queries data from the Digital Prosopography of the Roman Republic (DPRR), which draws on the following secondary sources:
@misc{dprr,
author = {Mouritsen, Henrik and Mayfield, Jamie and Bradley, John},
title = {Digital Prosopography of the Roman Republic ({DPRR})},
year = {2017},
publisher = {King's Digital Lab, King's College London},
url = {https://romanrepublic.ac.uk/},
note = {AHRC grant AH/K007211/1}
}
@book{broughton1951,
author = {Broughton, T. Robert S.},
title = {The Magistrates of the Roman Republic},
volume = {1: 509 B.C.--100 B.C.},
series = {Philological Monographs},
number = {15},
publisher = {American Philological Association},
address = {New York},
year = {1951}
}
@book{broughton1952,
author = {Broughton, T. Robert S.},
title = {The Magistrates of the Roman Republic},
volume = {2: 99 B.C.--31 B.C.},
series = {Philological Monographs},
number = {15},
publisher = {American Philological Association},
address = {New York},
year = {1952}
}
@book{broughton1986,
author = {Broughton, T. Robert S.},
title = {The Magistrates of the Roman Republic},
volume = {3: Supplement},
series = {Philological Monographs},
number = {15},
publisher = {Scholars Press},
address = {Atlanta, GA},
year = {1986}
}
@book{rupke2008,
author = {R{\"u}pke, J{\"o}rg},
title = {Fasti Sacerdotum: A Prosopography of Pagan, Jewish, and Christian Religious Officials in the City of Rome, 300 {BC} to {AD} 499},
translator = {Richardson, David M. B.},
publisher = {Oxford University Press},
address = {Oxford},
year = {2008},
isbn = {978-0-19-929113-7}
}
@book{zmeskal2009,
author = {Zmeskal, Klaus},
title = {Adfinitas: Die Verwandtschaften der senatorischen F{\"u}hrungsschicht der r{\"o}mischen Republik von 218--31 v.~Chr.},
publisher = {Verlag Karl Stutz},
address = {Passau},
year = {2009},
isbn = {978-3-88849-304-1}
}Citing this tool
If you use dprr-mcp in your research, please cite:
@software{dprr_mcp,
author = {Gillis, Andrew},
title = {dprr-mcp: Natural Language {SPARQL} Queries for the Digital Prosopography of the Roman Republic},
year = {2025},
url = {https://github.com/gillisandrew/dprr-mcp}
}Development
uv run pytest
uv run ruff check .Tool Schema Changelog
Recent tool additions, removals, and schema changes observed during successful MCP inspections.
Loading tool schema changelog…
This server cannot be deployed
Maintenance
Related MCP Connectors
Grounds LLMs in real Latin: Wiktionary lemmas, Morpheus inflections, citations.
Provenance-first database for teams and agents: every value carries sources, rules and coverage.
Read-only Wikidata tools and identity evidence. Local optional Google KG; bounded public remote.
Machine-readable entity discovery with provenance, trust and verified source evidence.
Related MCP Servers
- AlicenseNot gradedqualityDmaintenanceEnables natural language queries about family tree data from a Gramps genealogy database.6GPL 2.0
- FlicenseNot gradedqualityDmaintenanceEnables LLMs to query the RCE Cultural Heritage SPARQL endpoint using ontology context, query validation, and predefined tools.-
- FlicenseNot gradedqualityDmaintenanceEnables natural-language querying of SQLite databases through a governed semantic layer, with citations and typed abstention for PII or uncertified data.-
- FlicenseNot gradedqualityBmaintenanceEnables agents to store documents and atomic facts with provenance in a local SQLite knowledge base, then search them through fused keyword, exact, semantic, entity, graph and fact retrieval arms that return one ranked list where every result carries its address, trust level and a reason for its rank. A read-only terminal and loopback web view let humans inspect the same searches, timelines, entity neighbourhoods and agent-written pages without being able to alter the knowledge base.-