space-standards-mcp
This MCP server answers questions about ECSS and NASA space standards with requirement-level citations, working only from the standards documents you supply yourself.
List what's loaded (
list_documents): browse standards by family (ECSS/NASA), type, discipline or keyword, with issue, record counts and parse tier; optionally show documents present but not loaded.Fetch an exact requirement (
get_requirement): get the verbatim text of one clause/requirement ID (ECSS letters, NASA tags like SWE-144, DRD/definition forms), with kind, issue, date, page and tier — or a clear "not found" signal for a wrong revision or multi-record clause.Keyword search (
search_requirements): BM25 (optionally hybrid) search over requirements and table rows, with neighbouring records per hit, and warnings for unloaded/foreign standards or weak coverage.Read tables (
get_table): factors-of-safety-style tables as structured rows with labels, cell text, parsed values and footnotes.Trace references (
get_references): the standards and clauses a requirement points to.Compare standards (
compare_topic): search one topic across several standards, grouped ECSS vs NASA, with a coverage rating per document.Locate coverage (
find_standards): rank which loaded standards treat a topic, with their best-matching sections and citations.Navigate a standard (
get_section_outline): table of contents, per-clause record IDs and tables (no requirement text).Trust signals: every record carries a parse
tier(verified/checked/unchecked) and page; numbers from less-verified tables come with a "check against the source, page N" flag.Explicit gaps: it names standards that are missing (in your folder vs. not held at all) rather than answering from them, and declines when nothing is covered.
Answers questions about NASA space standards with exact, requirement-level citations. The server works over NASA documents downloaded from the NASA Technical Standards System (via the included polite downloader script), parsing and indexing their requirements, recommendations, tables (e.g. factors of safety) and clauses so they can be listed, searched, compared topic-by-topic and retrieved by requirement ID or table, always naming the document, issue and requirement ID in the citation.
Click on "Deploy Server".
Wait a few minutes for the server to deploy. Once ready, it will show a "Started" state.
In the chat, type
@followed by the MCP server name and your instructions, e.g., "@space-standards-mcp which factor of safety applies to a metallic fairing in ECSS-E-ST-32?"
That's it! The server will respond to your query, and you can continue using it as needed.
Here is a step-by-step guide with screenshots.
space-standards-mcp
An MCP server (and a thin optional agent) that answers questions about ECSS and NASA space standards with exact, requirement-level citations: every result names the document, issue and requirement ID, or the answer is "not covered". You bring the standards; nothing from them is stored in this repository. It started with launcher and payload-fairing structures (factors of safety, fracture control, loads, shock, vibroacoustics), where its parsing is hand-verified, and now loads every ECSS branch (management, product assurance, engineering, sustainability, system) and the NASA standards, handbooks and procedural requirements. Each record carries a parse tier, so you can tell hand-checked documents from automatically parsed ones.
Independent project. Not affiliated with or endorsed by the European Space Agency (ESA), the ECSS Secretariat or NASA. The ECSS, ESA and NASA names and the names of their standards belong to their owners and are used here only to identify the documents the software works with.
60-second demo (invented fixtures)
The repository ships three invented demo standards and a demo handbook in tests/fixtures/ (made-up text and numbers, so you can try
everything without any real document).
git clone https://github.com/manojknaikade/space-standards-mcp.git && cd space-standards-mcp
python -m venv .venv && source .venv/bin/activate # Python 3.11+
pip install -e ".[dev]"
pytest -q # fixture tests; real-document tests skip without documents/
# retrieval eval on the demo standards: expected recall@5 1.00 over 4 questions
python eval/run_retrieval_eval.py --docs tests/fixtures --questions eval/demo_questions.yaml
# the MCP server over the demo standards (stdio; an MCP client talks to it)
SPACESTD_DOCS=tests/fixtures python -m spacestd.serverConnect a client (below) to that server and ask, for example, "which factor of safety applies to a metallic
fairing in DEMO-E-ST-98C?". The answer comes back with a citation such as DEMO-E-ST-98C Rev.2, 4.1.2a.
Related MCP server: RAG MCP Server
Use your own documents
No standards text is distributed here. Download the documents yourself and put them in documents/ (gitignored)
or any folder you point SPACESTD_DOCS at:
ECSS: https://ecss.nl (free registration); Word or PDF.
NASA: the NASA Technical Standards System, https://standards.nasa.gov.
python scripts/download_nasa_standards.py documents/nasafetches the public ones politely (robots.txt, one request every 2 s);--dry-runonly lists them.
Then:
python -m spacestd.catalogue documents # what was found, and what is loaded
python -m spacestd.health documents # parse every document, set its tier, write eval/CORPUS_HEALTH.mddocuments/corpus.yaml selects what is loaded (doc-ID patterns with *, see
ADR-0006); without it only files directly in documents/ load:
load:
- ECSS-E-ST-32*
- NASA-STD-5*File naming, sidecar metadata and formats (PDF preferred; Word files need LibreOffice) are described in
documents/README.md. Parsed documents are cached in documents/.spacestd-cache/.
The standards remain subject to their publishers' terms of use.
Install without a clone
The package is on PyPI:
uvx space-standards-mcp
pipx install space-standards-mcpThe latest development version installs from git:
pipx install git+https://github.com/manojknaikade/space-standards-mcp.
The space-standards-mcp command starts the server (stdio) and reads SPACESTD_DOCS.
Connect an MCP client
Use an absolute path to the Python that has the package installed, and to your documents folder.
With uvx, a client can start the server without a local install, e.g. in Claude Desktop:
{"command": "uvx", "args": ["space-standards-mcp"], "env": {"SPACESTD_DOCS": "/abs/path/to/documents"}}.
Claude Code
claude mcp add space-standards --env SPACESTD_DOCS=/abs/path/to/documents -- /abs/path/to/.venv/bin/python -m spacestd.serverClaude Desktop (claude_desktop_config.json)
{
"mcpServers": {
"space-standards": {
"command": "/abs/path/to/.venv/bin/python",
"args": ["-m", "spacestd.server"],
"env": { "SPACESTD_DOCS": "/abs/path/to/documents" }
}
}
}VS Code (.vscode/mcp.json)
{
"servers": {
"space-standards": {
"type": "stdio",
"command": "/abs/path/to/.venv/bin/python",
"args": ["-m", "spacestd.server"],
"env": { "SPACESTD_DOCS": "/abs/path/to/documents" }
}
}
}Tools
Tool | What it does |
| Loaded standards and issues with family, type, discipline, parse tier, record counts and tables; filters; can also list documents present but not loaded |
| Exact record for a document and requirement ID |
| BM25 keyword search over requirements and table rows, with neighbouring records per hit; reports named standards that are not loaded |
| A table (e.g. factors of safety) as structured rows with labels, cell text, parsed value and footnotes |
| Standards and clauses a requirement points to |
| One topic searched separately in each standard, grouped ECSS / NASA, with a coverage rating per standard |
| A standard's table of contents; for one clause its record IDs and tables (no requirement text) |
| Which loaded standards treat a topic: documents ranked, with their best-matching sections |
The full interface (arguments, result fields, the signals for "not covered" and for a wrong revision) is in docs/TOOLS.md.
Every record carries its kind (requirement, recommendation, permission, guidance, definition, deleted), a
citation, its issue and issue_date.
Optional: hybrid search and the agent
pip install -e ".[embed]" and SPACESTD_EMBED=default add embedding ranking fused with BM25 (opt-in, see
eval/RESULTS.md). pip install -e ".[agent]" adds python -m spacestd_agent "<question>" --docs documents,
the same tools in a tool-calling loop with a citation gate that checks each draft for invented IDs and numbers not
found in the retrieved records (ADR-0005); it needs an Anthropic API key.
Parse tiers
Documents differ in how well they parse, so each carries a tier (ADR-0006):
verified: checked by hand against the source (requirement counts, IDs, tables).
checked: passes the automatic health checks (
python -m spacestd.health), not reviewed by hand.unchecked: parsed, but no check has passed; treat results as leads.
Records, tables and rows carry their tier and page. Numbers taken from tables of documents below verified
come with a "check against the source, page N" flag, and the citation gate only accepts such a number when the
answer repeats it. Always confirm a number in the source.
Evaluation and its limits
Two evals run on a 57-question set (17 numeric, 17 lookup, 7 classification, 5 compare, 11 not covered). Numbers from eval/RESULTS.md, on the 7 hand-verified standards:
Measure | Value |
retrieval recall@5 / @20 (46 scored questions) | 0.64 / 0.89 (0.74 at @5 counting neighbouring records) |
table recall@5: row hit / reachable (10 questions) | 0.50 / 0.85 |
answers, independent judge, plain client: correct / partial / wrong | 52 / 4 / 1 |
answers, gated agent: correct / partial / wrong | 49 / 7 / 1 |
invented requirement IDs | 0 |
"not covered" questions declined without numbers | 11 / 11 |
Limits: the question set is small and written by one author; the first 21 questions had domain review and the
later additions did not; one model family answers and judges; retrieval is keyword-based and misses paraphrases
(hybrid search helps only partly); and the figures say nothing about the many documents at tier checked or
unchecked. Treat answers as aids for locating requirements, not as authority.
Disclaimer
No standards text is included. You download the standards yourself.
Answers are aids, not authority. They are not a substitute for the applicable standard in the issue your project is contracted to, with its tailoring. Verify any requirement, factor or test level against the source.
Project docs
Roadmap · Release plan · Project brief · Architecture · Decision records · Contributing · Security
Licence
The code is licensed under the Apache License 2.0; see also NOTICE and ADR-0007.
Available Tools
8 toolscompare_topicARead-only
Side-by-side search of one topic in several standards, e.g. ECSS vs NASA on factors of safety.
topic: the subject only, e.g. "ultimate design factor metallic structure" (no standard names).
doc_ids: the standards to compare, e.g. ["ECSS-E-ST-32-10", "NASA-STD-5001"]; omit for all loaded.
Returns one section per document, grouped by family (ECSS, NASA), with its top hits and the
table rows they matched. Requested or named standards that are not loaded are listed as in
search_requirements (not_loaded, in_documents_folder, not_in_documents_folder). coverage: "weak" marks a document whose best hit is far below the
best hit elsewhere: it may not treat the topic — say so rather than force an equivalence.
Coverage is judged on keyword matches: read the hits, and use get_requirement / get_table before comparing.
Inputs: topic (required), limit, doc_ids.
find_standardsARead-only
Which loaded standards treat a topic: documents ranked for "which standards apply to / cover X".
topic: REQUIRED, the subject in a few words, e.g. "thermal vacuum test", "software criticality", "space debris
mitigation". family: "ECSS" or "NASA" (optional). doc_type: e.g. "standard", "handbook" (optional).
Returns {"documents": [...]}: each with doc_id, issue, issue_date, title, family, doc_type, discipline, parse
tier, a score, how many of its records matched, and top_sections (clause, heading, the citation of the
best record there; no text). The ranking is by keyword matches: it shows where a topic is written about, not
that a standard is applicable to a given project. Read the sections with get_section_outline and
get_requirement before stating what a standard requires, and cite those records, not this list.
Inputs: topic (required), limit, family, doc_type.
get_referencesBRead-only
List the standards and clauses that a requirement (or its notes) refers to.
Inputs: doc_id (required), req_id (required).
get_requirementARead-only
Get the exact text of one requirement.
doc_id: e.g. "ECSS-Q-ST-80C" or "ECSS-Q-ST-80" or "NPR 7150.2"; issue words are allowed ("ECSS-Q-ST-80C Rev.2").
req_id: ECSS clause + letter, e.g. "5.2.1a" (DRD content: "A.2.1<5.2>a"; a definition: its number, "3.2.1"; a
requirement printed without a letter: "4.2.3 req 2"); NASA tag, e.g. "FSR 24", "SWE-144",
or an FCR item, e.g. "FCR 11 / 7.2.1.c"; untagged NASA standards: section + item, e.g. "4.2a", "4.3(1)",
or the n-th "shall" paragraph of a section, e.g. "4.4 req 1". Records carry a kind: requirement, recommendation,
permission, guidance, definition or deleted — say which when answering — and issue, issue_date, page, tier.
Not found: loaded_issues (the issue or revision letter named is not the loaded one: say so, do not answer as
if it were), records_in_clause (a clause with several records: ask for one), or nearest_ids (suggestions to
read, never to cite unread). A record returned with asked_for holds the item asked for inside its text.
Inputs: doc_id (required), req_id (required).
get_section_outlineARead-only
Table of contents of one standard: clause numbers, titles and how many records (by kind) each holds.
doc_id: e.g. "ECSS-E-ST-32-01C" or "NASA-STD-5019A". clause: e.g. "7.2" to list that section and its subsections, plus the record IDs placed directly in it and the tables in it; omit for the whole document. depth: how many heading levels to list below the starting point (default 2). The outline has no requirement text: use get_requirement / get_table for anything you quote or cite.
Inputs: doc_id (required), depth, clause.
get_tableARead-only
Get a table (e.g. factors of safety) as structured rows, verbatim from the source.
doc_id: e.g. "ECSS-E-ST-32-10C" or "NASA-STD-5001B". table_id: e.g. "Table 4-3" or "4-3".
Each row has row labels and value cells (text as printed, parsed value, footnote markers).
Quote the cell text and its footnotes; 'spans_rows' marks a value printed once in a merged
cell that covers several rows. The table and each row carry tier and page; below verified they also
carry check ("check against the source, page N"): give every number from such a table with that flag
(an answer that does not repeat it fails the citation check). Omit table_id (empty string) to list the tables of a document.
Inputs: doc_id (required), table_id.
list_documentsARead-only
List the standards currently loaded: issue, title, family (ECSS / NASA), doc_type (standard, handbook, ...),
discipline, record counts and parse tier ("verified": hand-checked against the source; "checked": passes the
automatic parse health checks; "unchecked": parsed automatically — for both, check numbers against the source
page before relying on them).
Filters (optional, case-insensitive): family "ECSS" or "NASA"; doc_type e.g. "handbook"; discipline as a
code ("E-32", "Q-70", "NASA-5000") or a name ("structures"); query: words in the doc ID or title.
include_not_loaded: also list standards in the user's documents folder that are not loaded (loaded: false).
Their text is not available: never answer from them, but you may name one as the standard that would cover
a question. Returns {"count", "documents"} (at most limit, plus "truncated" when more match).
Inputs: limit, query, family, doc_type, +2 more.
search_requirementsARead-only
Search across loaded requirements (BM25; hybrid with embeddings when the server enables it). Optionally restrict to one document.
query: REQUIRED search words, never empty, e.g. "ultimate factor of safety metallic structure" or "fracture control NASA-STD-5019". A call without search words returns no results.
Returns {"results": [...]} plus, when relevant, "not_loaded", "issue_mismatch", "external_standards",
"coverage", "elsewhere" and "notes". issue_mismatch: the query names an issue or revision letter that is
not loaded (results come from the loaded issue: say which). external_standards: standards of other bodies
named in the query, never held here. coverage "none" (no keyword match) or "weak" (unmatched_terms: an
acronym or designation of the query is in no hit): the hits may not treat the subject.
Without doc_id, standards named in the query (e.g. "NASA-STD-5001B", "ECSS-E-ST-32-01") restrict
the search to them. not_loaded lists named standards that are not loaded: never answer from
them. It is split into in_documents_folder (present in the user's documents folder but not loaded,
with issue and status: say so, and that they can be loaded through corpus.yaml) and
not_in_documents_folder (the user does not have them). elsewhere holds stronger hits from other loaded documents when the named document
matches weakly — it may not cover the topic. Table rows are searched too: a hit found through a
table carries matched_table_row (table citation, row labels, cells) — take the numbers from
there or from get_table, and cite both the requirement and the table. Records and rows carry tier
(verified, checked, unchecked) and page; rows from tables below verified carry check: repeat it
("check against the source, page N") next to any number taken from them. Each hit may carry
neighbours: the records next to it in the same clause (a requirement is often split over sibling
letters). They are full records with citations; read them before concluding a clause is not covered.
Inputs: query (required), limit, doc_id.
Tool Schema Changelog
Recent tool additions, removals, and schema changes observed during successful MCP inspections.
Loading tool schema changelog…
TDQS
Scored across 8 tools
Most tools target clearly different resources: get_requirement/get_table/get_references fetch by ID, list_documents/get_section_outline describe structure. The three retrieval tools (search_requirements, find_standards, compare_topic) all do keyword search, but the descriptions sharply distinguish their outputs (records vs. ranked documents vs. side-by-side). One or two could still be confused at first glance, mainly find_standards vs. search_requirements.
Uniform snake_case verb_noun pattern throughout: search_requirements, get_requirement, find_standards, get_section_outline, compare_topic, get_references, get_table, list_documents. The different verbs (get/find/search/list/compare) map meaningfully to different operations rather than being inconsistent.
Eight tools is well within the sweet spot. Each tool covers a distinct step in the workflow (discover documents -> outline -> search -> fetch record/table -> follow references), with no redundant tools.
The surface covers the full retrieval lifecycle: list/filter documents, outline structure, keyword search, fetch exact requirement text, fetch tables, cross-references, and cross-standard comparison. Minor gaps remain — e.g. no tool to fetch a document's scope/abstract or to resolve reference targets directly (get_references only lists them), but agents can work around this with get_requirement.
Maintenance
Related MCP Connectors
Page-cited retrieval for embedded docs, datasheets, MISRA, CMSIS, and RTOS references.
Live EU AI Act record from 22 official sources: EUR-Lex, AI Office, AI Board, CEN-CENELEC and national regulators (BNetzA, CNIL, AESIA, Dutch AP and more). Ask for obligations by role and risk class, look up an article, or get a digest of what changed since a date. Every answer links the primary source. Works without a key.
Query your own PDFs and documents from any MCP client. Every answer cites the page it came from.
Cited answers from your organisation's documents. GDPR-compliant, hosted in Germany.
Related MCP Servers
- FlicenseAqualityCmaintenanceLocal-first, read-only MCP server for retrieving and searching authorised CCSDS and ECSS standards, enabling citation-rich passage-level search and document access.3-
- FlicenseNot gradedqualityDmaintenanceEnables document indexing and question answering with Retrieval-Augmented Generation, providing cited answers from user-supplied documents.-
- FlicenseNot gradedqualityCmaintenanceEnables retrieval and comparison of automotive regulations and standards, plus question answering where every answer must carry standard number, clause number, and original excerpt, with unsupported conclusions flagged for review. Java backends and Feishu can call it directly over MCP.-
- AlicenseNot gradedqualityCmaintenanceSpacecraft component specifications read from vendor datasheets (2,500+ products, 24 categories): search by engineering requirements, compare, budget mass and power, read datasheet digests and facts, find data gaps, and assemble a bus around parts you lock. Every value cites its datasheet page; missing data is named, never guessed.37 npm1MIT