Integrates AgentQL so agents can extract structured data from unstructured web pages.
Setup
Choose your client, copy the config, then fill in any required environment variables.
claude mcp add agentql --env AGENTQL_API_KEY='<AGENTQL_API_KEY>' -- npx -y agentql-mcp~/.codex/config.toml
[mcp_servers.agentql]
command = "npx"
args = ["-y", "agentql-mcp"]
env = { AGENTQL_API_KEY = "<AGENTQL_API_KEY>" }
# codex mcp add agentql --env AGENTQL_API_KEY='<AGENTQL_API_KEY>' -- npx -y agentql-mcp~/.cursor/mcp.json
{
"mcpServers": {
"agentql": {
"command": "npx",
"args": [
"-y",
"agentql-mcp"
],
"env": {
"AGENTQL_API_KEY": "<AGENTQL_API_KEY>"
}
}
}
}.vscode/mcp.json
{
"servers": {
"agentql": {
"type": "stdio",
"command": "npx",
"args": [
"-y",
"agentql-mcp"
],
"env": {
"AGENTQL_API_KEY": "<AGENTQL_API_KEY>"
}
}
}
}~/.gemini/settings.json
{
"mcpServers": {
"agentql": {
"command": "npx",
"args": [
"-y",
"agentql-mcp"
],
"env": {
"AGENTQL_API_KEY": "<AGENTQL_API_KEY>"
}
}
}
}claude_desktop_config.json
{
"mcpServers": {
"agentql": {
"command": "npx",
"args": [
"-y",
"agentql-mcp"
],
"env": {
"AGENTQL_API_KEY": "<AGENTQL_API_KEY>"
}
}
}
}.trae/mcp.json
{
"mcpServers": {
"agentql": {
"command": "npx",
"args": [
"-y",
"agentql-mcp"
],
"env": {
"AGENTQL_API_KEY": "<AGENTQL_API_KEY>"
}
}
}
}Environment variables
AGENTQL_API_KEY
Replace the placeholders with your own credentials and keep them out of version control.