papergraph-mcp

v1.2.3
papergraph-mcp Checked 14 hours ago Published 1 month ago

Turn mathematical LaTeX papers into theorem dependency graphs for AI agents.

These tools were reported by the server itself during our smoke test (tools/list), not copied from the README.

get_environment_diagnostics

Return PaperGraph version and reproducible launch diagnostics.

validate_arxiv_input

Normalize arXiv ID and URL inputs and return the safe next action.

ParameterTypeDescription
text_id
url

validate_arxiv_request

Validate a raw user arXiv request and return the safe next action.

ParameterTypeDescription
input *string

open_workspace

Open or initialize a persistent multi-paper workspace.

ParameterTypeDescription
path *string

workspace_add_local_paper

Add or replace a local LaTeX project in the active workspace.

ParameterTypeDescription
paper_id *string
path *string

workspace_add_arxiv_paper

Add or replace an arXiv LaTeX project in the active workspace.

ParameterTypeDescription
arxiv_id *string
main_file
refreshboolean

workspace_add_pdf_paper

Add or replace a born-digital PDF paper in the active workspace.

ParameterTypeDescription
paper_id *string
path *string

discover_doi_paper

Find exact DOI metadata and public body candidates; never download links.

ParameterTypeDescription
doi *string

workspace_import_doi_candidate

Import a selected root DOI PDF only after explicit review/confirmation. This is not permission to download newly discovered external references. Candidate provider identity is evidence, not a verification of PDF contents.

ParameterTypeDescription
candidate_id *string
doi *string
confirmedboolean

workspace_add_doi_paper

Load a user-requested root DOI when one public PDF candidate is eligible. Multiple candidates require user selection. Do not use for newly discovered external references: those require an import plan and review first.

ParameterTypeDescription
doi *string

workspace_list_papers

List all papers stored in the active workspace.

workspace_get_paper

Return metadata and counts for one stored paper.

ParameterTypeDescription
paper_id *string

workspace_search_theorems

Search theorem titles and bodies across the active workspace.

ParameterTypeDescription
query *string
kind
limitinteger
paper_id

workspace_get_dependencies

Return dependencies of a globally identified stored theorem.

ParameterTypeDescription
global_theorem_id *string
recursiveboolean

workspace_get_dependency_diagnostics

Explain how workspace dependencies were extracted for one theorem.

ParameterTypeDescription
global_theorem_id *string
recursiveboolean

workspace_get_citations

Return incoming or outgoing citation evidence for a stored paper.

ParameterTypeDescription
paper_id *string
directionstring
include_unresolvedboolean

workspace_list_results

List a stable result page (limit 1..100). Advance offset by returned count. A full page may be truncated; continue until a page has fewer than limit results. This is not an unbounded complete list.

ParameterTypeDescription
kind
limitinteger
offsetinteger
paper_id

workspace_get_result

Return one stored evidence result with source spans.

ParameterTypeDescription
result_id *string

workspace_get_result_proof

Return proof evidence for one stored evidence result.

ParameterTypeDescription
result_id *string

workspace_get_proof_dependencies

Return proof dependency evidence for one stored evidence result.

ParameterTypeDescription
result_id *string
recursiveboolean

workspace_get_external_result_mentions

Return external result mentions from a result's proof evidence.

ParameterTypeDescription
result_id *string

workspace_get_evidence

Return metadata and source spans for one evidence node or edge.

ParameterTypeDescription
node_or_edge_id *string

workspace_export_reading_bundle

Export a paper-level evidence bundle for paper-reading consumers.

ParameterTypeDescription
paper_id *string

workspace_export_result_reading_context

Export focused evidence context for reading one result's proof.

ParameterTypeDescription
result_id *string

workspace_get_source_slice

Return bounded source text around one span, result, or proof.

ParameterTypeDescription
contextinteger
proof_id
result_id
span_id

workspace_read_source_blocks

Read raw source blocks from a slice locator; follow next until null. Blocks are source text, with no inferred proof ownership. Works for legacy imports without changing reading data. A changed extraction needs new locators.

ParameterTypeDescription
span_id *string
limitinteger

workspace_get_result_reading_path

Return deterministic local reading paths for one result.

ParameterTypeDescription
result_id *string
recursiveboolean

workspace_get_dependency_reading

List main-result candidates or read a user-selected target with evidence. Statement references and proof-local dependencies remain separate. External references produce reviewable plans only; empty evidence is not independence.

ParameterTypeDescription
paper_id *string
detailstring
max_candidatesinteger
recursiveboolean
target_result_id

workspace_create_reading_session

Create a persistent reading session in the active workspace.

ParameterTypeDescription
paper_id *string
label
target_result_id

workspace_list_reading_sessions

List persistent reading sessions in the active workspace.

ParameterTypeDescription
paper_id
status

workspace_get_reading_session

Return one persistent reading session with checkpoints and notes.

ParameterTypeDescription
session_id *string

workspace_record_reading_checkpoint

Create or update a reading checkpoint in the active workspace.

ParameterTypeDescription
session_id *string
status *string
target_id *string
target_kind *string
evidence
summarystring

workspace_add_reading_note

Add a note or question to a reading session.

ParameterTypeDescription
session_id *string
text *string
note_typestring
target_id
target_kind

workspace_export_reading_session_summary

Export a deterministic recovery summary for a reading session.

ParameterTypeDescription
session_id *string

workspace_create_reading_queue

Create a persistent reading queue for one stored result.

ParameterTypeDescription
result_id *string
label
recursiveboolean

workspace_list_reading_queues

List persistent reading queues in the active workspace.

ParameterTypeDescription
paper_id
status

workspace_get_reading_queue

Return one persistent reading queue with ordered items.

ParameterTypeDescription
queue_id *string

workspace_apply_reading_queue_to_session

Apply reading queue items as checkpoints in a reading session.

ParameterTypeDescription
queue_id *string
session_id *string
statusstring

workspace_plan_external_imports_for_result

Plan external arXiv imports for one result's reading path.

ParameterTypeDescription
result_id *string
recursiveboolean

workspace_plan_external_imports_for_queue

Plan external arXiv imports referenced by one reading queue.

ParameterTypeDescription
queue_id *string

workspace_plan_external_imports_for_paper

Plan external arXiv imports visible in one stored paper.

ParameterTypeDescription
paper_id *string

workspace_resolve_external_reference

Resolve a blocked external reference to a user-confirmed target.

ParameterTypeDescription
blocked_id *string
paper_id *string
target *object
artifact_dir
import_targetboolean

workspace_list_external_reference_resolutions

List recorded external reference resolutions and selection provenance.

ParameterTypeDescription
paper_id

workspace_search_external_reference

Search scholarly metadata providers for a blocked external reference.

ParameterTypeDescription
blocked_id *string
paper_id *string
max_candidatesinteger
providers
refreshboolean
resolver_versionstring

workspace_list_external_reference_searches

List scholarly reference search runs and candidates.

ParameterTypeDescription
blocked_id
paper_id

workspace_resolve_external_reference_candidate

Apply a searched candidate as an explicit reference resolution.

ParameterTypeDescription
blocked_id *string
candidate_id *string
paper_id *string
artifact_dir
import_targetboolean
overwriteboolean

workspace_get_paper_map

Return an evidence-first first-load map for one stored paper.

ParameterTypeDescription
paper_id *string
max_candidatesinteger

workspace_export_paper_reading_report

Export a deterministic Markdown reading report for one stored paper.

ParameterTypeDescription
paper_id *string
max_candidatesinteger

workspace_export_cross_paper_reading_plan

Export a deterministic Markdown reading plan for selected papers.

ParameterTypeDescription
paper_ids *array
focus
max_candidates_per_paperinteger

workspace_plan_starter_project

Plan a Workspace Starter run without writing files.

ParameterTypeDescription
artifact_dir *
papers *array
workspace_path *string
create_queueboolean
create_sessionboolean
focus
max_candidatesinteger
project_title
target_result_id

workspace_bootstrap_reading_project

Create starter artifacts for a first reading project.

ParameterTypeDescription
artifact_dir *string
papers *array
workspace_path *string
create_queueboolean
create_sessionboolean
focus
max_candidatesinteger
project_title
target_result_id

load_paper

Load a local LaTeX paper and build its theorem graph.

ParameterTypeDescription
path *string

load_arxiv_paper

Download an arXiv source project and build its theorem graph.

ParameterTypeDescription
arxiv_id *string
main_file
refreshboolean

load_arxiv_request

Validate a raw arXiv request, then load it only if unambiguous.

ParameterTypeDescription
input *string
main_file
refreshboolean

list_theorems

List theorem-like environments in the currently loaded paper.

ParameterTypeDescription
kind

get_theorem

Return the full text and metadata for one theorem-like node.

ParameterTypeDescription
theorem_id *string

get_dependencies

Return theorem-like nodes referenced by the given theorem.

ParameterTypeDescription
theorem_id *string
recursiveboolean

get_dependency_diagnostics

Explain how dependencies were extracted for one theorem-like node.

ParameterTypeDescription
theorem_id *string
recursiveboolean

where_used

Return theorem-like nodes that reference the given theorem.

ParameterTypeDescription
theorem_id *string

workspace_create_reference_expansion

Save an approved finite expansion policy. Creation does not search or import.

ParameterTypeDescription
root_paper_ids *array
policy

workspace_advance_reference_expansion

Execute the saved policy: search, download arXiv sources, import unique strong candidates and record resolutions without per-paper prompts, within approved budgets. Resume with the same run ID.

ParameterTypeDescription
run_id *string
max_stepsinteger
time_budget_secondsinteger

workspace_get_reference_expansion

Read saved graph, counts, decisions and continuation actions without network.

ParameterTypeDescription
run_id *string

workspace_list_reference_expansions

List saved expansion summaries, optionally filtered by state.

ParameterTypeDescription
state

workspace_decide_reference_expansion

Record exactly one candidate_id, target, existing_paper_id, skip:true or retry:true. Advance separately to execute the approved choice.

ParameterTypeDescription
decision *object
edge_id *string
run_id *string

workspace_update_reference_expansion_policy

Explicitly revise numeric budgets; cumulative usage is retained.

ParameterTypeDescription
limits *object
run_id *string

workspace_pause_reference_expansion

Pause scheduling after the active step. Advance explicitly to resume.

ParameterTypeDescription
run_id *string

workspace_cancel_reference_expansion

Permanently stop this run, preserving imported papers and history.

ParameterTypeDescription
run_id *string

workspace_export_reference_expansion

Return saved JSON or Markdown without writing client files or using network.

ParameterTypeDescription
run_id *string
formatstring