Back to Home
rdmpage icon

php-mcp-server

by rdmpage

Overview

Implements the Model Context Protocol (MCP) to expose SPARQL query capabilities and resource information to an AI client like Claude Desktop.

Installation

Run Command
php mcp_sparql_server.php

Environment Variables

  • SPARQL_ENDPOINT

Security Notes

The `mcp_sparql_server.php` directly uses user-provided SPARQL queries (via the `sparqlQuery` tool) and URIs (via the `authorsOfWork` tool) without sanitization before passing them to the SPARQL endpoint. This allows for arbitrary SPARQL query injection on the configured `SPARQL_ENDPOINT` if an attacker can control the input arguments. This is a critical vulnerability for the backend SPARQL service. Error reporting is configured to stderr, which is good practice for production servers.

Similar Servers

Stats

Interest Score0
Security Score3
Cost ClassLow
Avg Tokens1000
Stars0
Forks0
Last Update2025-12-17

Tags

MCPPHPSPARQLKnowledge GraphAI ToolsProtocol Server