Install
mcp extra installs the MCP client that McpToolset needs. Without it, the import below fails.
Connect the MCP server
Add Keenable to your agent as anMcpToolset:
X-API-Key header. Create one in the console. To run without a key, omit the headers argument: calls then run on the shared public tier at lower rate limits. If your client reads OAuth discovery before it connects, use https://api.keenable.ai/mcp-public instead. See MCP server.
The agent gets the search_web_pages and fetch_page_content tools. Ask it a question that needs the web. It calls the tools and answers with sources.
Related pages
Haystack
Add web search and page fetch to Haystack pipelines with the Keenable components.
CrewAI
Give CrewAI agents Keenable web search with the official SDK. Keyless by default.
LangChain
Give LangChain agents web search and page fetch with langchain-keenable: the KeenableSearch and KeenableFetch tools.
Tool calling
Give an LLM web search and page fetch as tools. Pass the SDK’s TOOLS to any OpenAI-compatible chat completions client and run each call with run_tool_call.