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
php mcp_sparql_server.phpEnvironment 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
mcp-manager
A web GUI to easily manage and configure Model Context Protocol (MCP) servers for the Claude Desktop app on MacOS, generating terminal commands for installation and setup.
Delphi-MCP-Server
Implements the Model Context Protocol (MCP) in Delphi to enable AI-powered development workflows and integrate with clients like Claude Code.
php-mcp
Facilitates communication and integration between LLM applications and external data sources or tools by implementing the Model Context Protocol (MCP).
php-mcp-sdk
A PHP SDK for building Model Context Protocol (MCP) servers that expose AI capabilities (tools, prompts, sampling) and data resources to clients, facilitating AI agent orchestration and structured human-AI interaction.