An industrial-grade Model Context Protocol (MCP) server that provides high-performance Pipelined Query Language (PQL) to SQL compilation using WASM and Extism.
- High Performance: Powered by a Go-based PQL compiler compiled to WASM.
- Zero Dependencies (Runtime): Self-contained WASM execution via Extism.
- Semantic Validation: Provides error messages for syntax and semantic PQL issues.
- MCP Native: Fully compliant with the latest MCP SDK for seamless integration with AI agents (Claude, etc.).
Compiles a PQL query (similar to Kusto/KQL) into standard SQL.
Arguments:
query(string, required): The PQL query to compile.
Example:
StormEvents
| where DamageProperty > 5000
| sort by DamageProperty desc
| limit 10
git clone https://github.com/Angelebeats/pql-mcp-server.git
cd pql-mcp-server
npm install
npm run buildAdd the server to your MCP client (e.g., Claude Desktop) config:
{
"mcpServers": {
"pql-server": {
"command": "node",
"args": ["/path/to/pql-mcp-server/build/index.js"],
"env": {}
}
}
}The server consists of two parts:
- Core Compiler: Written in Go, utilizing
extism-gofor WASM plugin support. - MCP Wrapper: A TypeScript/Node.js application using the
@modelcontextprotocol/sdkto expose the compiler via stdio.
MIT © Angelebeats