Skip to content
verify mcp Beta VerifyMCP is currently in beta. If you notice any issues, get in touch and we’ll put it right.

Web Algebra

PYPI · WEB-ALGEBRA

Composable Linked Data and SPARQL operations, and LinkedDataHub content tools

Available components

+15 this week 92 Trust /100

Last scanned (13 hours ago)

Scores higher than 94% of PyPI servers

Category Databases

Trust breakdown (7 categories)

How this component scores in each security and reliability category. Every signal is checked automatically from public evidence about the published package, including repeated runs of it in an isolated sandbox, and we only credit what we can confirm. How we score → Why this is hard to score →

Supply Chain Security100
  • No malware found by supply-chain analysis.Pass
  • No known CVEs affecting this package version or its production dependencies.Pass
  • Runs setuptools.build_meta at install time, a recognised build step with no custom scripting around it. View diagnostics → Pass
  • 3 of 38 dependencies flagged as unhealthy. View diagnostics → Partial
Provenance & Transparency100
  • Source repository is publicly reachable at the declared URL. View diagnostics → Pass
  • Cryptographically verified build provenance (signed, bound to AtomGraph/Web-Algebra). View diagnostics → Pass
  • Clear OSI-approved license (Apache-2.0).Pass
  • Actively maintained (last published 31 days ago).Pass
  • Publishes a security disclosure policy (SECURITY.md).Pass
Schema Quality & AI Usability62
  • AI-judged instruction clarity (good).Pass
  • Context-footprint check failed: tool/resource definitions use about 7022 tokens (~206/item across 34 items; 34 tools + 0 resources), over budget; trim descriptions and params. See how to fix → Fail
  • Usage-examples check failed: none of the tools include examples. See how to fix → Fail
Stability & Change Management100
  • No destabilizing schema changes in the last 30 days.Pass
Tool Coverage99
  • 100% of tools have a non-trivial description (not blank, and not just the tool's name).Pass
  • 98% of tool parameters carry a description.Partial
Tool Safety75
  • No prompt-injection markers were found in the server instructions, tool names or descriptions we captured.Pass
  • 0 of 5 tool(s) whose name or description implies an irreversible operation declare an MCP destructiveHint annotation; "ldh-RemoveBlock" implies "remove" and declares no destructiveHint at all, which the MCP spec reads as destructive by default. See how to fix → Fail
  • An AI judge read all 34 captured unit(s) of tool text and found none that tries to manipulate the model reading it.Pass
Capabilities100
  • Implements a current MCP spec version (2026-07-28).Pass
What we tested

Checks we ran (16)

  • Malware scan
  • Known CVEs
  • Install scripts
  • Dependency health
  • Source repository
  • Provenance
  • License
  • Maintenance
  • Security disclosure
  • Schema quality
  • Stability
  • Tool coverage
  • Injection markers
  • Destructive annotations
  • Judged manipulation
  • MCP protocol

Does not apply to this package (2)

  • Endpoint SecurityScored on hosted endpoints only. A package has no live endpoint of its own for us to probe.
  • Transport & ReachabilityScored on hosted endpoints only. A package has no live endpoint of its own for us to probe.

The score does not measure everything. What the score does not measure →

Changelog

Every change we have recorded for this component, newest first. Security-relevant changes are always shown. ▲ marks a change for the better, ▼ a change for the worse; unmarked changes are neutral.

  • 27 Nov 26 +15
    • Malware scan: unverified → pass ▲ security
  • 23 Nov 26 −15
    • Malware scan: pass → unverified ▼ security
  • 22 Nov 26 +15
    • Malware scan: unverified → pass ▲ security
  • 20 Nov 26 −14
    • Malware scan: pass → unverified ▼ security
    • Stability: 0.97 → pass security
  • 19 Nov 26 +15
    • Malware scan: unverified → pass ▲ security
  • 18 Nov 26 −14
    • Malware scan: pass → unverified ▼ security
  • 17 Nov 26 +15
    • Malware scan: unverified → pass ▲ security
  • 16 Nov 26 −14
    • Malware scan: pass → unverified ▼ security
Diagnostics

Diagnostic detail from the automated scan of this channel: what the scanner observed at each step, so you can see exactly where a check passed or failed. It is informational only and never changes the trust score.

Captured 30 Nov 2026 · Analysed pypi/web-algebra@2.0.4

Provenance Verified

A signed build attestation was found and verified, binding this exact artifact to the source repository it claims to come from.

Result Verified
Ecosystem pypi
Reason Verified
Discovered via Registry attestation endpoint
Source repo AtomGraph/Web-Algebra
Certificate issuer https://token.actions.githubusercontent.com
Certificate SAN https://github.com/AtomGraph/Web-Algebra/.github/workflows/release.yml@refs/tags/v2.0.4
Rekor log index 3574025499
Predicate type PyPI publish attestation https://docs.pypi.org/attestations/publish/v1
Subject digest sha256:be66e1725fd70b03f3bdb072c6ac1efc20f832cd4453f9ca27a1f7966f724ae3

Background: How many MCP packages publish verified provenance →

Install scripts 1 script
Hook Tier Command
build_backend Known build tool setuptools.build_meta

Background: Why install scripts are a supply-chain risk →

Dependencies 38 packages
Packages resolved 38
Stale 2
No linked repository 1
Tree resolution Complete

Background: SBOMs and build attestations, explained →

MCP tools · 34 exposed · ~7,022 tokens

The tools this component advertises to a client, with an estimated token cost for each. Expand a tool to see its parameters and schema. The per-tool counts are indicative and are not scored directly; the schema's total context footprint is one signal in Schema Quality & AI Usability. A tool's description is untrusted text the model reads on every call, which is what makes this list a security surface and not just an inventory: how tool poisoning works →

Tool Tokens
Concat ~68

Concatenates multiple string values into a single string, per SPARQL's CONCAT() function: if all inputs carry the same language tag the result carries it too, otherwise the result is a simple (xsd:string) literal.

NameTypeReqDescription
inputsarrayyesArray of string values to concatenate.

No output schema declared.

No examples provided.

CONSTRUCT ~65

Executes a SPARQL CONSTRUCT query over an endpoint or over a graph in hand.

NameTypeReqDescription
endpointstring–SPARQL endpoint URL (or give 'graph')
graph––A graph to query locally (or give 'endpoint')
querystringyes–

No output schema declared.

No examples provided.

DESCRIBE ~67

Executes a SPARQL DESCRIBE query over an endpoint or over a graph in hand.

NameTypeReqDescription
endpointstring–SPARQL endpoint URL (or give 'graph')
graph––A graph to query locally (or give 'endpoint')
querystringyes–

No output schema declared.

No examples provided.

EncodeForURI ~70

Encodes a string to be URI-safe, following SPARQL's `ENCODE_FOR_URI` behavior. It encodes characters that are not allowed in URIs, such as spaces, slashes, and colons.

NameTypeReqDescription
inputstringyesThe string to encode for use in a URI.

No output schema declared.

No examples provided.

ExtractClasses ~67

Extracts OWL classes (owl:Class candidates) from rdf:type usage in an RDF dataset, optionally scoped to the subjects in 'bindings'.

NameTypeReqDescription
bindings––Optional SELECT result whose ?subject column scopes the extraction to those subjects
endpointstringyesSPARQL endpoint URL

No output schema declared.

No examples provided.

ExtractDatatypeProperties ~64

Extracts OWL datatype properties from literal-valued predicates in an RDF dataset, optionally scoped to the subjects in 'bindings'.

NameTypeReqDescription
bindings––Optional SELECT result whose ?subject column scopes the extraction to those subjects
endpointstringyesSPARQL endpoint URL

No output schema declared.

No examples provided.

ExtractObjectProperties ~73

Extracts OWL object properties (and functional properties, closed-world) from IRI-valued predicates in an RDF dataset, optionally scoped to the subjects in 'bindings'.

NameTypeReqDescription
bindings––Optional SELECT result whose ?subject column scopes the extraction to those subjects
endpointstringyesSPARQL endpoint URL

No output schema declared.

No examples provided.

ExtractOntology ~73

Extracts a complete OWL ontology (classes, datatype properties, and object properties with functional property restrictions) from an RDF dataset, optionally scoped to the subjects in 'bindings'.

NameTypeReqDescription
bindings––Optional SELECT result whose ?subject column scopes the extraction to those subjects
endpointstringyesSPARQL endpoint URL

No output schema declared.

No examples provided.

GET ~74

Retrieves RDF data from a named graph using HTTP GET. The URL serves as both the resource identifier and the named graph address in systems with direct graph identification. Returns the RDF graph describing the resource at that URL.

NameTypeReqDescription
urlstringyesThe URL to fetch RDF data from. This should be a valid URL pointing to RDF content.

No output schema declared.

No examples provided.

ldh-AddConstruct ~320

Creates a SPARQL CONSTRUCT query resource in a document. This tool creates a SPARQL CONSTRUCT query that can be executed and referenced within LinkedDataHub. The query can be used for charts, views, or other data processing operations. This tool: - Creates a sp:Construct resource with the SPARQL query text - Posts the new CONSTRUCT query resource to the target document - Supports optional title, description, fragment identifier, and service URI Note: the service URI is _not_ the SPARQL endpoint URL but an instance of `sd:Service` that describes the SPARQL service capabilities (and contains the endpoint URL). The service URI can be used to reference the SPARQL service in other operations.

NameTypeReqDescription
descriptionstring–Optional description of the CONSTRUCT query.
fragmentstring–Optional fragment identifier for the query URI (e.g., 'my-query' creates #my-query).
querystringyesThe SPARQL CONSTRUCT query string.
servicestring–Optional URI of the SPARQL service/endpoint specific to this query. Note: the service URI is _not_ the SPARQL endpoint URL but an instance of `sd:Service` that describes the SPARQL service capabiliti…
titlestringyesTitle of the CONSTRUCT query.
urlstringyesThe URI of the document to write the CONSTRUCT query to.

No output schema declared.

No examples provided.

ldh-AddFile ~385

Adds a file to a LinkedDataHub document via multipart RDF/POST. Appends `a nfo:FileDataObject ; nfo:fileName ; dct:title ; ...` to the target document and stores the file bytes at `<base>/uploads/{sha1}` (LDH's built-in upload namespace). The file is a resource the document holds, not one of its content blocks: to show it in the content mode, place it with ldh-AddObjectBlock, the returned `url` as its value. Arguments: - `url` — URI of the target document to add the file's description to. - `file` — absolute local file path. The bytes are read and streamed to the server. - `title` — human-readable title (`dct:title`). - `description` — optional description (`dct:description`). - `content_type` — optional MIME-type override; auto-detected from the file path if absent. Returns a result with `url` (the uploaded file's URI, as the document describes it after the upload: `<base>/uploads/{sha1}`, `<base>` being the application's base URI) and `status` (HTTP status code) bindings. Place the file in the content with ldh-AddObjectBlock, `url` as value.

NameTypeReqDescription
content_typestring–Optional MIME-type override; auto-detected from path if absent.
descriptionstring–Optional description (dct:description).
filestringyesAbsolute local file path. The bytes are read and uploaded.
titlestringyesTitle of the file (dct:title).
urlstringyesTarget document URI to add the file's description to.

No output schema declared.

No examples provided.

ldh-AddGenericService ~249

Writes a generic SPARQL service description to a LinkedDataHub document. This tool creates a SPARQL service description that can be referenced and used within LinkedDataHub. The service description includes endpoint information and supported capabilities. This tool: - Creates an sd:Service resource with endpoint URI and supported languages - Posts the new service description to the target document - Supports optional title, description, fragment identifier, graph store, and authentication - Automatically sets SPARQL 1.1 Query and Update support

NameTypeReqDescription
auth_pwdstring–Optional authorization password for the service.
auth_userstring–Optional authorization username for the service.
descriptionstring–Optional description of the service.
endpointstringyesEndpoint URI of the SPARQL service.
fragmentstring–Optional fragment identifier for the service URI (e.g., 'my-service' creates #my-service).
graph_storestring–Optional Graph Store URI for the service.
titlestringyesTitle of the service.
urlstringyesThe URI of the document to write the service to.

No output schema declared.

No examples provided.

ldh-AddObjectBlock ~499

Appends an object block to a LinkedDataHub document content mode using sequence properties. Only XHTML blocks and object blocks are shown in the content mode. Other resources can still be added to the document, but they will not be displayed in the content mode. Object blocks reference external resources via URI and can have different display modes. Only RDF Linked Data objects can be rendered by using display modes, so if you think you're using an RDF URI value, make sure it returns a valid RDF resource (e.g. use the GET operation to verify). Non-RDF resources (for example images) will be embedded using HTML <object> element. Possible display modes include: - https://w3id.org/atomgraph/client#ReadMode: Default mode for displaying the object. - https://w3id.org/atomgraph/client#GraphMode: Displays the object as a graph. - https://w3id.org/atomgraph/client#MapMode: Displays the object as a map. - https://w3id.org/atomgraph/client#ChartMode: Displays the object as a chart. This tool: - Fetches the current document to find the next sequence number (rdf:_1, rdf:_2, etc.) - Creates an ldh:Object resource with rdf:value pointing to the target resource URI - Posts the new object block to the target document - Supports optional title, description, fragment identifier, and display mode Returns True if the operation was successful, False otherwise. Note: This operation does not return the updated graph, it only confirms the success of the operation.

NameTypeReqDescription
descriptionstring–Optional description for the object block.
fragmentstring–Optional fragment identifier for the object block URI (e.g., 'intro' creates #intro).
graphstring–Optional URI of the document that describes the value, read in place of dereferencing the value's URI (ldh:graph).
modestring–Optional URI of the mode the block shows its resource in (an object mode, not a view's layout). Defaults to ReadMode.
titlestring–Optional title for the object block.
urlstringyesThe URI of the document to append the object block to.
valuestringyesURI of the object resource to reference.

No output schema declared.

No examples provided.

ldh-AddResultSetChart ~648

Writes a chart of SPARQL SELECT query results to a LinkedDataHub document. The chart is a resource the document holds, not one of its content blocks: to show it in the content mode, place it with ldh-AddObjectBlock, the chart's URI as its value - so give the chart a fragment identifier. A chart shows values: the query's bindings themselves, as a table or a plot, the way a spreadsheet would. It is the fit for aggregates and measurements - totals, counts, sums per shop or per month. A resource in a chart is a bare cell, with no image, label or links of its own: to show resources themselves (things, people, places), use ldh-AddView, whose modes render each one as itself. A query that returns a row per resource, with the resource's URI among its variables, is a list of resources and belongs in a view, however many values from related resources it joins in (a thing with its shop, price and date of purchase; a message with its sender). A chart of it shows each resource as its address. Chart only what is not one row per resource: totals, counts, sums by shop or by month. This tool: - Creates an ldh:ResultSetChart resource linked to an existing sp:Select query resource - Configures chart type and variable mappings for visualization - Posts the new chart resource to the target document - Supports optional title, description, and fragment identifier Possible chart types include: - https://w3id.org/atomgraph/client#Table: Table visualization of results - https://w3id.org/atomgraph/client#BarChart: Bar chart visualization - https://w3id.org/atomgraph/client#LineChart: Line chart visualization - https://w3id.org/atomgraph/client#ScatterChart: Scatter chart visualization - https://w3id.org/atomgraph/client#Timeline: Timeline visualization Note: The query parameter must be a URI…

NameTypeReqDescription
category_var_namestringyesName of the SPARQL variable used as category (without leading '?').
chart_typestringyesURI of the chart type (e.g., https://w3id.org/atomgraph/client#BarChart).
descriptionstring–Optional description of the chart.
fragmentstring–Optional fragment identifier for the chart URI (e.g., 'my-chart' creates #my-chart).
querystringyesURI of an existing sp:Select query resource to visualize (not a SPARQL query string).
series_var_namestring|arrayyesName of the SPARQL variable used as series/value (without leading '?'), or an array of names for several series.
titlestringyesTitle of the chart.
urlstringyesThe URI of the document to write the chart to.

No output schema declared.

No examples provided.

ldh-AddSelect ~313

Creates a SPARQL SELECT query resource in a document. This tool creates a SPARQL SELECT query that can be executed and referenced within LinkedDataHub. The query can be used for charts, views, or other data processing operations. This tool: - Creates a sp:Select resource with the SPARQL query text - Posts the new SELECT query resource to the target document - Supports optional title, description, fragment identifier, and service URI Note: the service URI is _not_ the SPARQL endpoint URL but an instance of `sd:Service` that describes the SPARQL service capabilities (and contains the endpoint URL). The service URI can be used to reference the SPARQL service in other operations.

NameTypeReqDescription
descriptionstring–Optional description of the SELECT query.
fragmentstring–Optional fragment identifier for the query URI (e.g., 'my-query' creates #my-query).
querystringyesThe SPARQL SELECT query string.
servicestring–Optional URI of the SPARQL service/endpoint specific to this query. Note: the service URI is _not_ the SPARQL endpoint URL but an instance of `sd:Service` that describes the SPARQL service capabiliti…
titlestringyesTitle of the SELECT query.
urlstringyesThe URI of the document to write the SELECT query to.

No output schema declared.

No examples provided.

ldh-AddView ~874

Writes a view of SPARQL SELECT query results to a LinkedDataHub document. The view is a resource the document holds, not one of its content blocks: to show it in the content mode, place it with ldh-AddObjectBlock, the view's URI as its value - so give the view a fragment identifier. A view shows resources - things, people, places, documents - each as itself: its label, its image, its links. LinkedDataHub DESCRIBEs the resources the query's first projected variable binds and renders those descriptions in the view's mode, so that variable must bind resources (SELECT ?thing WHERE { ... }). One that binds values - a name, a price, a computed total - describes nothing. To show values or aggregates (totals, counts, sums by month), use ldh-AddResultSetChart instead. A list of resources is a view even when what matters about them lives on related resources - a thing's shop and price on the order it came from, a message's sender on a person. Do not join those values into one table to show them beside each resource: select the resources, and let each one's own page show what it links to. Put values that summarise the related resources (spend per shop) in a chart beside it. This tool: - Creates an ldh:View resource linked to an existing sp:Select query resource - Configures optional display mode for the view - Posts the new view resource to the target document - Supports optional title, description, fragment identifier, and display mode Pick the mode by what the resources carry: - https://w3id.org/atomgraph/client#GridMode: a card per resource, led by its image. The fit for resources that have one (foaf:img, foaf:depiction, foaf:logo, schema:image, schema:logo, schema:thumbnailUrl): products, possessions, people, organizations - https://w3id.org/atomgraph/client#MapMode: a pin per resource that…

NameTypeReqDescription
descriptionstring–Optional description of the view.
fragmentstring–Optional fragment identifier for the view URI (e.g., 'my-view' creates #my-view).
modestring–Optional URI of the layout the view shows its results in (a view mode, not an object block's mode). Defaults to ListMode. Pick it by what the resources carry: GridMode for resources with an image, Ma…
querystringyesURI of an existing sp:Select query resource to visualize (not a SPARQL query string).
show_when_emptyboolean–Optional: whether the view is shown when its query returns no results (ldh:showWhenEmpty). LinkedDataHub shows it unless this is false.
titlestringyesTitle of the view.
urlstringyesThe URI of the document to write the view to.

No output schema declared.

No examples provided.

ldh-AddXHTMLBlock ~446

Appends an XHTML block to a LinkedDataHub document using sequence properties. Only XHTML blocks and object blocks are shown in the content mode. Other resources can still be added to the document, but they will not be displayed in the content mode. IMPORTANT: The value parameter must be canonical XML literal - well-formed XHTML content that will be stored as rdf:XMLLiteral datatype. The top-level XHTML element must be <div xmlns="http://www.w3.org/1999/xhtml"></div>. The XHTML can use CSS classes for inline elements from Bootstrap 2.3.2, but no inline CSS styles. Canonical XML Rules (TL;DR): ✅ Well-formed XML - proper opening/closing tags, escaped special chars (&lt; &gt; &amp;) ✅ Attributes alphabetically ordered - <tag attr1="x" attr2="y"> not <tag attr2="y" attr1="x"> ✅ No comments or processing instructions - strip <!-- --> and <?xml ?> ✅ Consistent encoding - UTF-8, normalized whitespace Bottom line: Valid XML + deterministic formatting = canonical XML. This tool: - Fetches the current document to find the next sequence number (rdf:_1, rdf:_2, etc.) - Creates an ldh:XHTML resource with rdf:value containing the XML literal - Posts the new XHTML block to the target document - Supports optional title, description, and fragment identifier Returns True if the operation was successful, False otherwise. Note: This operation does not return the updated graph, it only confirms the success of the operation.

NameTypeReqDescription
descriptionstring–Optional description for the XHTML block.
fragmentstring–Optional fragment identifier for the XHTML block URI (e.g., 'intro' creates #intro).
titlestring–Optional title for the XHTML block.
urlstringyesThe URI of the document to append the XHTML block to.
valuestringyesXHTML content as canonical XML literal (must be well-formed XML).

No output schema declared.

No examples provided.

ldh-CreateContainer ~364

Creates a LinkedDataHub Container document with proper structure. IMPORTANT CONSTRAINTS: - The document URL needs to end with a trailing slash (/) - Documents can only be created at URLs relative to existing container's URL - Example: if https://localhost/blog/ exists, you cannot create https://localhost/blog/posts/something/ before creating https://localhost/blog/posts/ - LinkedDataHub automatically manages timestamps (dct:created, dct:modified) - LinkedDataHub automatically manages parent-child relationships (sioc:has_parent) based on URI hierarchy - It only creates: a document already at the URI is left as it is and the operation fails, unless if_absent is true, which accepts it as the result (like mkdir -p). To replace a document, PUT it.

NameTypeReqDescription
children_viewboolean–Optional: whether the container's first content block lists its children (the shared ldh:ChildrenView). It does unless this is false; the content is then added with ldh-AddObjectBlock and ldh-AddXHTM…
descriptionstring–Description (optional)
if_absentboolean–Optional: whether a document already at the URI counts as success, left as it is (like mkdir -p). Without it the operation fails there.
parentstringyesURI of the parent container
primary_topicstring–URI reference of what the container is about, resolved against its URI (optional), e.g. #this.
slugstring–URL path segment (optional). Defaults to a random UUID.
titlestringyesThe title of the container

No output schema declared.

No examples provided.

ldh-CreateItem ~302

Creates a LinkedDataHub Item document with proper structure. IMPORTANT CONSTRAINTS: - The document URL needs to end with a trailing slash (/) - Documents can only be created at URLs relative to existing container's URL - Example: if https://localhost/blog/ exists, you cannot create https://localhost/blog/posts/something/ before creating https://localhost/blog/posts/ - LinkedDataHub automatically manages timestamps (dct:created, dct:modified) - LinkedDataHub automatically manages parent-child relationships (sioc:has_parent) based on URI hierarchy - It only creates: a document already at the URI is left as it is and the operation fails, unless if_absent is true, which accepts it as the result (like mkdir -p). To replace a document, PUT it.

NameTypeReqDescription
containerstringyesURI of the parent container
descriptionstring–Description (optional)
if_absentboolean–Optional: whether a document already at the URI counts as success, left as it is (like mkdir -p). Without it the operation fails there.
primary_topicstring–URI reference of what the item is about, resolved against its URI (optional), e.g. #this.
slugstring–URL path segment (optional). Defaults to a random UUID.
titlestringyesThe title of the item

No output schema declared.

No examples provided.

ldh-List ~105

Returns a list of children documents for the given URL as SPARQL results JSON.

NameTypeReqDescription
basestring–Base URL for constructing the SPARQL endpoint. Needs to end with a slash. Either 'endpoint' or 'base' must be provided.
endpointstring–The SPARQL endpoint URL to query. Either 'endpoint' or 'base' must be provided.
urlstringyesThe URL of the document to list children for.

No output schema declared.

No examples provided.

ldh-RemoveBlock ~144

Removes a content block from a LinkedDataHub document. This tool removes content blocks from LinkedDataHub documents by: - Deleting the sequence property that references the block (rdf:_N) - Deleting all properties of the block itself - If no specific block URI is provided, removes any blocks found via sequence properties The operation uses SPARQL UPDATE (HTTP PATCH) to perform the deletion.

NameTypeReqDescription
blockstring–Optional URI of the specific content block to remove. If not provided, will remove blocks based on sequence properties.
urlstringyesThe URI of the document to remove the block from.

No output schema declared.

No examples provided.

Merge ~50

Merges a list of RDF graphs as JSON-LD dicts into a single RDF graph as JSON-LD.

NameTypeReqDescription
graphsarrayyesList of JSON-LD objects to merge into a single RDF graph.

No output schema declared.

No examples provided.

Now ~50

Returns the current date and time as an xsd:dateTime literal in UTC, following SPARQL's NOW(): every Now in one run of a program returns the same value, the time the run began.

Input schema present but exposes no named parameters.

No output schema declared.

No examples provided.

PATCH ~169

Updates RDF data in a named graph using HTTP PATCH with SPARQL Update. The URL serves as both the resource identifier and the named graph address in systems with direct graph identification. Updates the RDF graph at that URL using the SPARQL update payload provided in the `update` argument. Only INSERT/WHERE and DELETE WHERE forms of SPARQL Update are supported by PATCH! Only a single update operation is allowed. Returns True if the operation was successful, False otherwise. Note: This operation does not return the updated graph, it only confirms the success of the operation.

NameTypeReqDescription
updatestringyesThe SPARQL update string to execute.
urlstringyesThe URL to send the SPARQL UPDATE to. This should be a valid URL.

No output schema declared.

No examples provided.

POST ~138

Creates or appends RDF data to a named graph using HTTP POST. The URL serves as both the resource identifier and the named graph address in systems with direct graph identification. Creates or adds to the RDF graph (provided as JSON-LD payload) at that URL. Returns True if the operation was successful, False otherwise. Note: This operation does not return the updated graph, it only confirms the success of the operation.

NameTypeReqDescription
dataobjectyesThe RDF data to append, represented as a JSON-LD dict.
urlstringyesThe URL to send the RDF data to. This should be a valid URL.

No output schema declared.

No examples provided.

PUT ~134

Replaces RDF data in a named graph using HTTP PUT. The URL serves as both the resource identifier and the named graph address in systems with direct graph identification. Completely replaces the RDF graph (provided as JSON-LD payload) at that URL. Returns True if the operation was successful, False otherwise. Note: This operation does not return the updated graph, it only confirms the success of the operation.

NameTypeReqDescription
dataobjectyesThe RDF data to send, represented as a JSON-LD dict.
urlstringyesThe URL to send the RDF data to. This should be a valid URL.

No output schema declared.

No examples provided.

Reconcile ~177

The entities a reconciliation service (the W3C Reconciliation Service API) offers for a name, as a result: one row per candidate, best first, binding ?entity (a URI), ?name, ?description, ?score and ?match. `type` is one of the service's type ids, `limit` caps the rows. Wikidata's service is https://wikidata-reconciliation.wmcloud.org/en/api, whose type ids are Wikidata items (Q515 city, Q6256 country, Q43229 organization).

NameTypeReqDescription
endpointstringyesThe reconciliation service's URL.
limitinteger–Optional: at most this many candidates.
querystringyesThe name to reconcile.
typestring–Optional: one of the service's type ids, e.g. Q515.

No output schema declared.

No examples provided.

Replace ~191

Replaces occurrences of a regular-expression pattern in an input string, per SPARQL's REPLACE() / XPath fn:replace. The replacement string may reference capture groups as $1, $2, ...; flags `s`, `m`, `i`, `x`, `q` are supported. The result is a string literal of the same kind (datatype/language tag) as the input. Note: this function should not be used to build URIs! That should be done using EncodeForURI()/ResolveURI().

NameTypeReqDescription
flagsstring–Optional XPath regex flags: any of s, m, i, x, q
inputstringyesThe input string to process
patternstringyesThe regular expression to be replaced (XPath fn:replace syntax)
replacementstringyesThe replacement string; $1, $2, ... reference capture groups

No output schema declared.

No examples provided.

ResolveURI ~57

Creates a new URI relative to the base URL. The relative URI **must** be pre-encoded.

NameTypeReqDescription
basestringyesThe base URI to resolve against.
relativestringyesThe relative URI to resolve.

No output schema declared.

No examples provided.

SELECT ~68

Executes a SPARQL SELECT query over an endpoint or over a graph in hand

NameTypeReqDescription
endpointstring–SPARQL endpoint URL (or give 'graph')
graph––A graph to query locally (or give 'endpoint')
querystringyesSPARQL SELECT query

No output schema declared.

No examples provided.

SPARQLString ~188

Writes a SPARQL query for an endpoint from a natural language question, using an LLM. `projection` names the variables the query must project (because what follows reads them from its rows). `context` holds operations (e.g. a SELECT that inventories predicates, or looks a label up) whose results are shown to the model as what the endpoint holds, before it writes the query. A query that does not parse or lacks the projection goes back to the model, a few times at most.

NameTypeReqDescription
contextarray–Operations whose results show the model what the endpoint holds.
endpointstringyesThe SPARQL endpoint the query is for.
projectionarray–Variable names the query must be a SELECT projecting.
questionstringyesThe natural language question to convert into a SPARQL query.

No output schema declared.

No examples provided.

StrUUID ~41

Generates a fresh UUID (Universally Unique Identifier) as a string, following the behavior of SPARQL's STRUUID(). Each invocation produces a new unique identifier.

Input schema present but exposes no named parameters.

No output schema declared.

No examples provided.

Substitute ~250

Gives one variable of a SPARQL query or update a value without removing the variable: an inline VALUES block restricting it to the term is joined into every group of the query, so the query stays valid, a SELECT still projects the variable and every result row still carries it. Subqueries that do not project the variable keep their own copy (it is renamed there). The query must not assign the variable itself (AS or VALUES). A URI is written as <iri>, a literal escaped; a blank node is rejected. Substitute is Values over a one-row table; use Values for several variables or rows. For example, Substitute("SELECT ?city ?label WHERE { ?city rdfs:label ?label }", "city", URI("http://ex.org/C")) produces "SELECT ?city ?label WHERE { VALUES (?city) { (<http://ex.org/C>) } ?city rdfs:label ?label }".

NameTypeReqDescription
bindingobjectyesA dictionary containing the value and type to substitute for the variable.
querystringyesThe SPARQL query string with variable placeholders.
varstringyesThe variable to substitute in the query (e.g., '?x').

No output schema declared.

No examples provided.

Values ~239

Restricts variables of a SPARQL query or update to the rows of a SPARQL result set, so one query is constrained by, or batched over, the results of another: an inline VALUES block with the rows is joined into every group of the query. The variables stay variables (still projected, still in templates). Columns default to the result's variables; vars selects and orders them; a row that does not bind a column leaves it free (UNDEF). Subqueries that do not project a column keep their own copy; the query must not assign a restricted variable itself (AS or VALUES). Blank nodes are rejected. Substitute is the one-variable, one-value case.

NameTypeReqDescription
dataobjectyesA SPARQL result set (as produced by SELECT) whose variables and rows become the VALUES block. The variable names must match those used in the query.
querystringyesThe SPARQL query or update whose variables are restricted. It must not assign them itself (AS, VALUES).
varsarray–Optional subset and ordering of variable names to emit as columns. Defaults to all variables of the result set.

No output schema declared.

No examples provided.

Install

How do I install the Web Algebra MCP server?

Web Algebra runs locally as a PyPI package, launched with uvx web-algebra mcp. Ready-made configuration for Claude, Cursor, VS Code, Codex and 5 more is on this page, copied from each client's own documentation.

pypi · web-algebra

# add to Claude Code
claude mcp add atomgraph-web-algebra -- uvx web-algebra mcp
Common questions

What is the Web Algebra MCP server?

Web Algebra is an MCP server listed in the public MCP registry as io.github.AtomGraph/web-algebra. Composable Linked Data and SPARQL operations, and LinkedDataHub content tools. This page covers its PyPI package (web-algebra).

Is the Web Algebra MCP server safe to use?

Web Algebra scores 92 out of 100 on VerifyMCP. We found no known CVEs affecting it as of 30 November 2026. Its build provenance is signed and verified. That is a record of what we were able to check automatically, not an endorsement. The category breakdown on this page shows every signal behind the number, including the ones we could not confirm.

What tools does the Web Algebra MCP server expose?

Web Algebra exposes 34 tools: GET, PATCH, POST, PUT, ldh-AddConstruct, and 29 more. Their descriptions and schemas cost roughly 7,022 tokens of context every time the server is loaded.

Is the Web Algebra MCP server still maintained?

Web Algebra is still listed as active in the MCP registry. We last reached this channel on 30 November 2026. Those dates come from our own scans of the registry and the channel itself, not from anything the publisher announced.

What licence is the Web Algebra MCP server under?

Web Algebra declares the Apache-2.0 licence, which is OSI-approved. That covers the source only, and says nothing about the cost of any service it calls.

What did VerifyMCP test on the Web Algebra MCP server?

VerifyMCP ran 16 checks on Web Algebra, covering Malware scan, Known CVEs, Install scripts, Dependency health and 12 more. Endpoint Security and Transport & Reachability do not apply to a PyPI package, so they were not tested. The score does not measure everything, and the scoring documentation lists what it leaves out.