MCP SPARQL Server is a high-performance, configurable server that connects to any SPARQL endpoint and provides enhanced functionality including result formatting and caching. It's built on top of the MCP (Message Carrying Protocol) framework to provide a seamless, language-agnostic interface for querying semantic data.
Server Config
{
"mcpServers": [
{
"name": "sparql",
"command": "python3",
"args": [
"/path/to/server.py",
"--endpoint",
"https://data.legilux.public.lu/sparqlendpoint",
"--format",
"simplified",
"--cache-enabled",
"true",
"--cache-ttl",
"300",
"--cache-strategy",
"lru"
],
"env": {
"SPARQL_ENDPOINT": "https://data.legilux.public.lu/sparqlendpoint",
"SPARQL_TIMEOUT": "30",
"SPARQL_MAX_RESULTS": "1000",
"SPARQL_CACHE_ENABLED": "true",
"SPARQL_CACHE_TTL": "300",
"SPARQL_CACHE_MAX_SIZE": "100",
"SPARQL_CACHE_STRATEGY": "lru",
"PYTHONPATH": "/path/to/project/directory"
},
"transport": "stdio"
}
],
"defaultServer": "sparql"
}