Skip to main content
Glama

specir-mcp

English | 简体中文

specir-mcp is a data-neutral framework for turning technical documents into a structured intermediate representation (SpecIR) and querying it through five stable MCP tools.

The repository contains no standards PDFs, extracted specification text, knowledge-base databases, model weights, or vendor-specific protocol tables. All bundled demo content is fictional.

Features

  • Document, section, table, figure, entity, passage, provenance, and edge IR.

  • Extensible domain plugin manifests with dependency-aware loading.

  • PDF outline-based section extraction and reusable structure parsers.

  • SQLite-backed exact lookup, fetch, explanation, search, and status APIs.

  • A five-tool FastMCP surface: specir_resolve, specir_fetch, specir_explain, specir_search, and specir_status.

  • Explicit coverage metadata so missing extraction is not confused with absence from a source document.

Related MCP server: literature-agent-mcp

Quick start

python -m venv .venv
. .venv/bin/activate
pip install -e ".[test]"

# Generate a small database from the fictional Acme Device Interface fixture.
specir-demo --output data/demo.db

export SPEC_IR_DB="$PWD/data/demo.db"
specir-mcp-server

The same server may be launched from a source checkout:

fastmcp run src/specir/query/server.py

Example MCP calls:

specir_resolve(kind="command", id="A1h", spec="acme-device")
specir_fetch(uid="acme-device:2.1", include_xrefs=true)
specir_explain(name="Read Telemetry", kind="command", spec="acme-device")
specir_search(query="telemetry", spec="acme-device")
specir_status()

When a database contains one document, spec="auto" selects it. With multiple documents, exact lookups return candidates and request an explicit spec.

Using your own data

Create a database with specir.query.schema.create_database, then insert documents and entities using the schema documented by the Python dataclasses. Set SPEC_IR_DB to that database before starting the server. The framework never downloads or bundles source documents.

The optional PDF extractor can build coordinate-clipped section records:

from specir.extractors.pdf import build_section_tree

sections = build_section_tree("my-spec", "path/to/your-document.pdf")

You are responsible for having permission to process and store the documents you supply.

Development

pytest
python -m build

The tests create temporary synthetic databases and do not require external specifications or network access.

License

Apache License 2.0. See LICENSE.

Install Server
A
license - permissive license
B
quality
B
maintenance

Maintenance

Maintainers
Response time
Release cycle
1Releases (12mo)
Commit activity

Resources

Unclaimed servers have limited discoverability.

Looking for Admin?

If you are the server author, to access and configure the admin panel.

Related MCP Servers

  • F
    license
    -
    quality
    D
    maintenance
    An MCP server that enables AI agents to search, discover, and retrieve technical specifications from a SpecLib instance. It provides tools for full-text search, scope listing, and reading specs as markdown content.
    Last updated
  • F
    license
    C
    quality
    D
    maintenance
    Exposes a local biomedical literature pipeline as MCP tools for automated research workflows. Enables literature search, open-access paper retrieval, and draft generation for biomedical and pathology domains through standard MCP clients.
    Last updated
    6
  • A
    license
    A
    quality
    A
    maintenance
    Comprehensive MCP server for academic research workflows, enabling paper searching across multiple sources, manuscript processing with citation placeholders, search caching, and citation export.
    Last updated
    11
    MIT
  • A
    license
    -
    quality
    D
    maintenance
    A Model Context Protocol (MCP) server for Specifai project integration and automation with any MCP-compatible AI tool. This server currently exposes tools to read all documents generated by the Specifai project.
    Last updated
    20
    13
    MIT

View all related MCP servers

Related MCP Connectors

  • IEEE Xplore MCP — BYOK wrapper over the IEEE Xplore Metadata Search API

  • Read-only MCP over an agentic SLR workspace with per-claim citation verification

  • Read-only MCP over an agentic SLR workspace with per-claim citation verification

View all MCP Connectors

Latest Blog Posts

MCP directory API

We provide all the information about MCP servers via our MCP API.

curl -X GET 'https://glama.ai/api/mcp/v1/servers/jietianliang/specir-mcp'

If you have feedback or need assistance with the MCP directory API, please join our Discord server