# How to connect Agentql to Claude

```json
{
  "title": "How to connect Agentql to Claude",
  "toolkit": "Agentql",
  "toolkit_slug": "agentql",
  "framework": "Claude Cowork",
  "framework_slug": "claude-cowork",
  "url": "https://composio.dev/toolkits/agentql/framework/claude-cowork",
  "markdown_url": "https://composio.dev/toolkits/agentql/framework/claude-cowork.md",
  "updated_at": "2026-10-04T17:16:33.601Z"
}
```

## Introduction

Claude is Anthropic's AI assistant, available on the web, in the desktop app, and on mobile. Cowork is its agent for knowledge work, and it runs on all of those surfaces too. Connected to your apps, Claude can work with your files and services to accomplish complex tasks on your behalf.
This guide walks you through the easiest and most secure way to connect your Agentql account to Claude via Composio Connect, enabling it to extract all product prices from this Amazon page, summarize key headlines from the New York Times homepage, retrieve your AgentQL subscription usage and limits, and more such actions on your behalf without compromising your account security.
Setup is the same on Claude Web, Desktop, and Cowork, and you only need to do it once. The connector is tied to your account, so it's available in all three.

## Also integrate Agentql with

- [Claude Code](https://composio.dev/toolkits/agentql/framework/claude-code)
- [OpenAI Agents SDK](https://composio.dev/toolkits/agentql/framework/open-ai-agents-sdk)
- [Claude Agent SDK](https://composio.dev/toolkits/agentql/framework/claude-agents-sdk)
- [Codex](https://composio.dev/toolkits/agentql/framework/codex)
- [OpenClaw](https://composio.dev/toolkits/agentql/framework/openclaw)
- [Hermes](https://composio.dev/toolkits/agentql/framework/hermes-agent)
- [Atomic Agent](https://composio.dev/toolkits/agentql/framework/atomic-agent)
- [Google ADK](https://composio.dev/toolkits/agentql/framework/google-adk)
- [LangChain](https://composio.dev/toolkits/agentql/framework/langchain)
- [Vercel AI SDK](https://composio.dev/toolkits/agentql/framework/ai-sdk)
- [Mastra AI](https://composio.dev/toolkits/agentql/framework/mastra-ai)
- [LlamaIndex](https://composio.dev/toolkits/agentql/framework/llama-index)
- [CrewAI](https://composio.dev/toolkits/agentql/framework/crew-ai)
- [Pydantic AI](https://composio.dev/toolkits/agentql/framework/pydantic-ai)
- [AutoGen](https://composio.dev/toolkits/agentql/framework/autogen)

## Connect Agentql to Claude Cowork

### Connecting Agentql to Claude Web, Desktop, and Cowork
Two ways to add the Composio connector. Pick whichever you prefer.
### 1. Add with one click
Click the button. Claude opens with the Composio connector filled in. Click Add, then go to step 2.
[Add to Claude](https://claude.ai/customize/connectors?modal=add-custom-connector&connectorName=Composio&connectorUrl=https%3A%2F%2Fconnect.composio.dev%2Fmcp)
### Add manually
In Claude Desktop, click Customize in the left sidebar, then select Connectors and click the + icon at the top.
Click Add custom connector and paste in the Composio MCP server URL:

```bash
https://connect.composio.dev/mcp
```

## What is the Agentql MCP server, and what's possible with it?

The Agentql MCP server is an implementation of the Model Context Protocol that connects your AI agent and assistants like Claude, Cursor, etc directly to your Agentql account. It provides structured and secure access to remote browser sessions, web data extraction, and account usage statistics, so your agent can create browser sessions, extract structured data from web pages, and check usage limits on your behalf.
- Remote browser sessions: Have your agent create a remote browser session for web-based tasks.
- Structured web data extraction: Direct your agent to extract selected information from a web page and return it as structured JSON.
- Natural language web queries: Let the agent find and organize web page data based on a plain-language request.
- Usage and limit tracking: Instruct your agent to retrieve your Agentql API usage statistics and subscription limits.

## Supported Tools

| Tool slug | Name | Description |
|---|---|---|
| `AGENTQL_CREATE_REMOTE_BROWSER_SESSION` | Create Remote Browser Session | Tool to create a remote browser session. Use when you need to run browser automation on remote infrastructure. |
| `AGENTQL_GET_USAGE` | Get AgentQL Usage Statistics | Retrieves API usage statistics and subscription limits for the AgentQL account. Returns current billing cycle dates, lifetime usage limits, API key usage counts, and total account usage. Useful for monitoring quota consumption and planning usage. No parameters required - uses the authenticated API key from connection settings. |
| `AGENTQL_AGENTQL_QUERY_DATA` | Query Data | Tool to query structured data as JSON from a web page using an AgentQL query or natural language prompt. Use after defining your query or prompt and a URL or HTML. |

## Supported Triggers

None listed.

## Troubleshooting

### 1. Why does Claude not use the Composio connector for Agentql?

The connector can show as connected, but Claude must use it in each Agentql conversation.
- Click + at the lower left of the chat, or type /.
- Hover Connectors.
- Turn on Composio.
- Ask Claude to connect to Agentql again.

### 2. Why does Claude show an MCP server error before Agentql connects?

Claude can show Couldn't reach the MCP server or Authorization with the MCP server failed when you add the connector for Agentql.
- Check that the connector URL is https://connect.composio.dev/mcp.
- Connectors run from Anthropic's cloud, so your device network is usually not the problem.
- Add the connector again from Customize > Connectors, then ask Claude to connect Agentql.
- If it fails again, send the error and the ofid_ reference id to support@composio.dev.

### 3. Why does the Agentql authorization link not work?

The Composio connector is one server. Your Agentql account connects separately when Claude asks for it.
- If the browser does not open, or the link expires, ask Claude to retry the Agentql connection.
- Composio creates a fresh Agentql authorization link.
- Open that link in your browser and finish the Agentql sign-in.

### 4. Why do Agentql actions fail after they worked before?

The Agentql connection can expire or lose permission.
- Ask Claude to inspect the Agentql connection.
- If the connection is unhealthy, disconnect it when Claude prompts you.
- Reconnect the Agentql account and retry the action.
- If Claude shows a permission prompt, approve it before Claude changes data in Agentql.
- If the action still fails with a permission error, check that the connected account has that permission in Agentql itself.

### 5. How do I switch to a different Agentql account?

Claude can manage the Agentql connection for you.
- Ask Claude to disconnect or delete the current Agentql account.
- Ask Claude to connect Agentql again.
- Open the new Composio authorization link for Agentql.
- Sign in with the other Agentql account in the browser.
- After the account connects, ask Claude to retry the Agentql task.

### 6. Why is my Agentql connection missing in Claude Desktop or on a Team plan?

The connector belongs to your Claude account, so your Agentql connection works in Claude Web, Desktop, and Cowork.
- In Claude Desktop, open Customize > Connectors.
- Next to Composio, click ⋮ and click Clear cache.
- If Agentql tools still do not appear, click ⋮, disconnect, remove the connector, and add it again.
- On Team or Enterprise, an Owner or Primary Owner must enable the connector before you can connect Agentql.

## Creating MCP Server - Stand-alone vs Composio SDK

The Agentql MCP server connects Claude Web, Desktop, and Cowork to your Agentql account through Composio. Once connected, Claude can use the available Agentql tools and triggers to complete tasks on your behalf.

## Complete Code

None listed.

## How to build Agentql MCP Agent with another framework

- [Claude Code](https://composio.dev/toolkits/agentql/framework/claude-code)
- [OpenAI Agents SDK](https://composio.dev/toolkits/agentql/framework/open-ai-agents-sdk)
- [Claude Agent SDK](https://composio.dev/toolkits/agentql/framework/claude-agents-sdk)
- [Codex](https://composio.dev/toolkits/agentql/framework/codex)
- [OpenClaw](https://composio.dev/toolkits/agentql/framework/openclaw)
- [Hermes](https://composio.dev/toolkits/agentql/framework/hermes-agent)
- [Atomic Agent](https://composio.dev/toolkits/agentql/framework/atomic-agent)
- [Google ADK](https://composio.dev/toolkits/agentql/framework/google-adk)
- [LangChain](https://composio.dev/toolkits/agentql/framework/langchain)
- [Vercel AI SDK](https://composio.dev/toolkits/agentql/framework/ai-sdk)
- [Mastra AI](https://composio.dev/toolkits/agentql/framework/mastra-ai)
- [LlamaIndex](https://composio.dev/toolkits/agentql/framework/llama-index)
- [CrewAI](https://composio.dev/toolkits/agentql/framework/crew-ai)
- [Pydantic AI](https://composio.dev/toolkits/agentql/framework/pydantic-ai)
- [AutoGen](https://composio.dev/toolkits/agentql/framework/autogen)

## Related Toolkits

- [Excel](https://composio.dev/toolkits/excel) - Microsoft Excel is a robust spreadsheet application for organizing, analyzing, and visualizing data. It's the go-to tool for calculations, reporting, and flexible data management.
- [21risk](https://composio.dev/toolkits/_21risk) - 21RISK is a web app built for easy checklist, audit, and compliance management. It streamlines risk processes so teams can focus on what matters.
- [Abstract](https://composio.dev/toolkits/abstract) - Abstract provides a suite of APIs for automating data validation and enrichment tasks. It helps developers streamline workflows and ensure data quality with minimal effort.
- [AccuWeather](https://composio.dev/toolkits/accu_weather) - AccuWeather is a global weather service providing current conditions, forecasts, MinuteCast precipitation, alerts, and lightning data. Use it for fast, localized forecasts and real-time weather alerts.
- [Adafruit IO](https://composio.dev/toolkits/adafruit_io) - Adafruit IO is Adafruit's cloud platform for connected device and IoT project data. It helps you store, visualize, and act on sensor feeds without running your own backend.
- [Addressfinder](https://composio.dev/toolkits/addressfinder) - Addressfinder is a data quality platform for verifying addresses, emails, and phone numbers. It helps you ensure accurate customer and contact data every time.
- [Agenty](https://composio.dev/toolkits/agenty) - Agenty is a web scraping and automation platform for extracting data and automating browser tasks—no coding needed. It streamlines data collection, monitoring, and repetitive online actions.
- [Ambee](https://composio.dev/toolkits/ambee) - Ambee is an environmental data platform providing real-time, hyperlocal APIs for air quality, weather, and pollen. Get precise environmental insights to power smarter decisions in your apps and workflows.
- [Ambient weather](https://composio.dev/toolkits/ambient_weather) - Ambient Weather is a platform for personal weather stations with a robust API for accessing local, real-time, and historical weather data. Get detailed environmental insights directly from your own sensors for smarter apps and automations.
- [Anonyflow](https://composio.dev/toolkits/anonyflow) - Anonyflow is a service for encryption-based data anonymization and secure data sharing. It helps organizations meet GDPR, CCPA, and HIPAA data privacy compliance requirements.
- [ApexVerify](https://composio.dev/toolkits/apexverify) - ApexVerify is a contact-data validation service for emails and phone numbers. Use it to normalize, verify, and clean leads before they enter your systems.
- [Api ninjas](https://composio.dev/toolkits/api_ninjas) - Api ninjas offers 120+ public APIs spanning categories like weather, finance, sports, and more. Developers use it to supercharge apps with real-time data and actionable endpoints.
- [Api sports](https://composio.dev/toolkits/api_sports) - Api sports is a comprehensive sports data platform covering 2,000+ competitions with live scores and 15+ years of stats. Instantly access up-to-date sports information for analysis, apps, or chatbots.
- [Apify](https://composio.dev/toolkits/apify) - Apify is a cloud platform for building, deploying, and managing web scraping and automation tools called Actors. It lets you automate data extraction and workflow tasks at scale—no infrastructure headaches.
- [Autom](https://composio.dev/toolkits/autom) - Autom is a lightning-fast search engine results data platform for Google, Bing, and Brave. Developers use it to access fresh, low-latency SERP data on demand.
- [Beach Day API](https://composio.dev/toolkits/beach_day_api) - Beach Day API is a beach intelligence service for search, conditions, scores, rules, amenities, tides, and country coverage. Use it to power trip planning, surf reports, safety checks, and location-aware beach discovery.
- [Beaconchain](https://composio.dev/toolkits/beaconchain) - Beaconchain is a real-time analytics platform for Ethereum 2.0's Beacon Chain. It provides detailed insights into validators, blocks, and overall network performance.
- [Big data cloud](https://composio.dev/toolkits/big_data_cloud) - BigDataCloud provides APIs for geolocation, reverse geocoding, and address validation. Instantly access reliable location intelligence to enhance your applications and workflows.
- [Bigpicture io](https://composio.dev/toolkits/bigpicture_io) - BigPicture.io offers APIs for accessing detailed company and profile data. Instantly enrich your applications with up-to-date insights on 20M+ businesses.
- [Bitquery](https://composio.dev/toolkits/bitquery) - Bitquery is a blockchain data platform offering indexed, real-time, and historical data from 40+ blockchains via GraphQL APIs. Get unified, reliable access to complex on-chain data for analytics, trading, and research.

## Frequently Asked Questions

### What are the differences in Tool Router MCP and Agentql MCP?

With a standalone Agentql MCP server, the agents and LLMs can only access a fixed set of Agentql tools tied to that server. However, with the Composio Tool Router, agents can dynamically load tools from Agentql and many other apps based on the task at hand, all through a single MCP endpoint.

### Can I use Tool Router MCP with Claude Cowork?

Yes, you can. Claude Cowork fully supports MCP integration. You get structured tool calling, message history handling, and model orchestration while Tool Router takes care of discovering and serving the right Agentql tools.

### Can I manage the permissions and scopes for Agentql while using Tool Router?

Yes, absolutely. You can configure which Agentql scopes and actions are allowed when connecting your account to Composio. You can also bring your own OAuth credentials or API configuration so you keep full control over what the agent can do.

### How safe is my data with Composio Tool Router?

All sensitive data such as tokens, keys, and configuration is fully encrypted at rest and in transit. Composio is SOC 2 Type 2 compliant and follows strict security practices so your Agentql data and credentials are handled as safely as possible.

---
[See all toolkits](https://composio.dev/toolkits) · [Composio docs](https://docs.composio.dev/llms.txt)
