Introducing The Sweep: OX’s New Live Security Research Series
Register Now
Breaking: The 2026 Vulnpocalypse Hits PHP: Four Critical RCEs, but How Dangerous Are They?
Read the Report
Are you exposed? Connect your apps in minutes.
Scan your apps free

structx-mcp

Latest version: v0.5.0

Overview

Last scanned
28 Nov 2026
Published
28 Nov 2026
PyPI package Publisher: StructXOps
0 Stars
0 Forks
2 Versions
131 Downloads
Python Repo language

Scan summary

structx-mcp was last scanned on 28 Nov 2026 at version 0.5.0. Risk score 0 of 100. No malicious behavior was detected.

  • Releases: 2 versions, all published within 2 days (27 and 28 Nov 2026).
  • Findings: No rules fired in version 0.5.0.
  • Downloads: 131 downloads.

Versions

2 versions published
Versions and the rules that fired in each
VersionPublishedStatus
0.5.0 LATEST 28 Nov 2026 No rules fired
0.4.0 27 Nov 2026 No rules fired

No rules fired in 0.5.0

Findings

Findings for v0.5.0. The score is a capped sum of the weights of the rules that fired — not CVSS, not exploitability, and not a probability. It is not comparable across packages with different scan coverage.

The score describes 0.5.0; other versions have their own rules, not their own score.

README

The publisher’s own README, as collected from the registry.

structx-mcp

PyPI License

Model Context Protocol (MCP) server for struct-x — install in Claude Desktop, Cursor, Windsurf, or any MCP-compatible client and give your agent first-class structured-extraction tools.

You: extract the product details from this Aeron chair page →
     [pastes URL or HTML]
Agent: [calls structx_extract under the hood, returns typed JSON]
     {
       "title": "Aeron Chair",
       "price_cents": 179500,
       "brand": "Herman Miller",
       …
     }

No HTTP plumbing, no schema-writing detours — the agent just uses extraction.

Install

pip install structx-mcp

Then add to your MCP client's config.

Claude Desktop

Edit ~/Library/Application Support/Claude/claude_desktop_config.json (macOS) or %APPDATA%\Claude\claude_desktop_config.json (Windows):

{
  "mcpServers": {
    "structx": {
      "command": "structx-mcp",
      "env": {
        "STRUCTX_API_KEY": "sx_..."
      }
    }
  }
}

Restart Claude Desktop. Confirm by typing /mcp and verifying structx is listed.

Cursor

.cursor/mcp.json (project-scope) or ~/.cursor/mcp.json (user-scope):

{
  "mcpServers": {
    "structx": {
      "command": "structx-mcp",
      "env": { "STRUCTX_API_KEY": "sx_..." }
    }
  }
}
Windsurf / any other MCP client

Same pattern — command: "structx-mcp", env: { STRUCTX_API_KEY: ... }. The server speaks the standard MCP stdio protocol.

Tools the agent gets

26 tools, grouped below.

Extraction
Tool What it does
structx_extract Extract structured JSON from raw content (HTML / markdown / text / JSON / emails) using a JSON Schema you provide OR a pre-built template slug. Returns per-field confidence scores.
structx_extract_batch Extract from up to 100 content items in one call — each with its own schema/template + tier, shared options. Per-item billing is metered server-side; surfaces total_credits_used.
structx_extract_from_url Fetch a URL and extract in one call. Sandboxed (HTTPS only, public DNS only, 10MB cap, no redirects). Replaces the two-call fetch_url → extract pattern.
structx_extract_document Extract from a PDF (text, tables or scanned pages): pass a local file_path or document_base64, plus a schema or template. Per-field confidence is reported by the model. PDF only (5-20 MB by plan); not enabled on every account yet. Uses structx-sdk 0.6.0+, which installs with this package.
structx_infer_schema Don't have a schema yet? Paste raw content, get a draft schema back with per-field rationales. Plus matching templates from the public catalog.
Catalog & templates
Tool What it does
structx_list_templates Page through the public catalog (25 per page, at most 50), filtered by tag words (q) and category, so the agent can reuse a template for a common format (Stripe events, GitHub issues, product pages, news articles) instead of writing a schema. Items carry no schema; structx_get_template returns one.
structx_get_template Fetch one template's full JSON Schema + metadata by slug.
structx_template_cost_estimate Estimate field count, tokens, and credits for a template at a given tier — no model call. Returns a per-tier breakdown.
structx_template_versions List the version history of a template family by its bare slug.
structx_list_categories Browse the catalog's category → family → vendor hierarchy.
structx_recommend_templates Find existing templates (platform + community + your own) matching content or a draft schema.
structx_augment_schema Refine a schema from structx_infer_schema with natural-language guidance. Takes that call's event_id and the same content (the server rejects different content); content_type is optional. Returns the refined schema with a new event_id.
Canonical projection
Tool What it does
structx_canonical_frameworks List the canonical normalization frameworks (OTel, OCSF, …) with versions.
structx_canonical_project Project an extracted record onto one or more frameworks — deterministic, never re-runs the model, reports unmapped fields.
Personal schemas

These use the server's API key, so they create, change and delete personal schemas only. Binding a schema to an organization or sharing it is done in the struct-x dashboard, and so is offering a schema to the public community catalog (publishable_consent).

Tool What it does
structx_list_my_schemas List schemas saved to the caller's account.
structx_get_my_schema Fetch one saved schema by slug.
structx_save_my_schema Persist a JSON Schema to the account as a personal schema.
structx_update_my_schema Patch a saved schema (pass only changed fields).
structx_delete_my_schema Permanently delete a saved schema.
Synthetic datasets
Tool What it does
structx_synthesize_dataset Generate an anonymized, schema-valid synthetic dataset from a template or inline schema, shaped by free-text directives.
structx_list_datasets List the caller's saved synthetic datasets (metadata only).
structx_get_dataset Fetch one saved dataset in full (records + manifest).
structx_export_dataset Download a saved dataset as json / jsonl / csv.
structx_delete_dataset Delete one of the caller's saved datasets.
Account & community
Tool What it does
structx_usage Current credit usage for the account that owns the API key. Pre-flight check before batches, or post-mortem after a RateLimitError.
structx_request_withdrawal Request removal of a community template the caller authored.

Why use an MCP server vs. the SDK directly?

The Python SDK (structx-sdk) is for building applications. This MCP package is for putting struct-x inside the AI tools you already use — Claude Desktop, Cursor, Windsurf. The agent calls these tools natively, no app code required.

Both are first-party; they share the same backend, same credit pool, same API key.

Security

structx_extract_from_url is sandboxed at the network layer:

  • HTTPS only (no http://, file://, ftp://, etc.)
  • Hostname blocklist for cloud metadata targets (169.254.169.254, metadata.google.internal, etc.)
  • Hostname suffix blocklist for internal-network conventions (.internal, .local, .cluster.local, .consul)
  • DNS resolution + IP classification — refuses any private, loopback, link-local, multicast, or reserved IP
  • No redirect following (one less SSRF vector)
  • 10MB response cap

This matches the defenses on the struct-x backend's webhook outbound-URL validator. See src/structx_mcp/_url_safety.py for the implementation.

Development

git clone https://github.com/struct-x-ai/struct-x-sdks
cd struct-x/mcp

# Install editable + the SDK from the local checkout (the SDK is in
# the same monorepo at python/).
pip install -e "../python" -e ".[dev]"

pytest -q

License

MIT — see LICENSE.

OX Radar and Response Center

Find threats in your stack.

OX Radar can check high-priority threats, like critical package CVEs, against your context.

Each incident is marked Detected or Not Detected with a remediation plan and proof all tracked in the Response Center.

Where it’s listed

The probe returned only these fields for this server — auth requirement, protocol and tool list weren’t observed, so they’re not shown (never guessed).

  • pypi-releases structx-mcp

References

The publisher’s own links, as the registry reports them. These are not sources for the assessment on this page.

Powered by Read the latest findings

Scan your whole stack

Group 1261154050 1
Group 1261154050
 

From OX Research Newsroom

Copy of Template Design OX Blog (2)
Research

NGINX2Root: Five Critical NGINX Flaws Expose Web Servers to Remote Code Execution

Plug and Pray: Your AI Agents Are Taking Orders From Strangers
Research

Plug and Pray: Your AI Agents Are Taking Orders From Strangers

PolinRider Returns
Research

PolinRider Returns: Hijacked npm Packages Use Ethereum Blockchain to Conceal Malware Infrastructure

Frame 2085668439 (1)
Group 1261154229