Semrush Integration for AI Agents



Semrush is a leading SEO tool suite for keyword research, competitor analysis, and campaign tracking. It empowers marketers to improve search rankings and optimize online visibility.
Supported Tools
Why Use Composio?
AI Native Semrush Integration
- Supports both Semrush MCP and direct API based integrations
- Structured, LLM-friendly schemas for reliable tool execution
- Rich coverage for reading, writing, and querying your Semrush data
Managed Auth
- Built-in API key handling with secure storage and rotation
- Central place to manage, scope, and revoke Semrush access
- Per user and per environment credentials instead of hard-coded keys
Agent Optimized Design
- Tools are tuned using real error and success rates to improve reliability over time
- Comprehensive execution logs so you always know what ran, when, and on whose behalf
Enterprise Grade Security
- Fine-grained RBAC so you control which agents and users can access Semrush
- Scoped, least privilege access to Semrush resources
- Full audit trail of agent actions to support review and compliance
Connect Semrush MCP Tool with your Agent
Install Composio
pip install composio claude-agent-sdkCreate Tool Router Session
from composio import Composio
from claude_agent_sdk import ClaudeSDKClient, ClaudeAgentOptions
composio = Composio(api_key='your-composio-api-key')
session = composio.create(user_id='your-user-id')
url = session.mcp.urlConnect to AI Agent
import asyncio
options = ClaudeAgentOptions(
permission_mode='bypassPermissions',
mcp_servers={
'tool_router': {
'type': 'http',
'url': url,
'headers': {
'x-api-key': 'your-composio-api-key'
}
}
},
system_prompt='You are a helpful assistant with access to Semrush tools.',
max_turns=10
)
async def main():
async with ClaudeSDKClient(options=options) as client:
await client.query('Get authority score profile for example.com')
async for message in client.receive_response():
if hasattr(message, 'content'):
for block in message.content:
if hasattr(block, 'text'):
print(block.text)
asyncio.run(main())Connect Semrush API Tool with your Agent
Install Composio
pip install composio_openaiInitialize Composio and Create Tool Router Session
from openai import OpenAI
from composio import Composio
from composio_openai import OpenAIResponsesProvider
composio = Composio(provider=OpenAIResponsesProvider())
openai = OpenAI()
session = composio.create(user_id='your-user-id')Execute Semrush Tools via Tool Router with Your Agent
tools = session.tools
response = openai.responses.create(
model='gpt-4.1',
tools=tools,
input=[{
'role': 'user',
'content': 'Show me a summary of top backlinks for example.com'
}]
)
result = composio.provider.handle_tool_calls(
response=response,
user_id='your-user-id'
)
print(result)Use Semrush with any AI Agent Framework
Choose a Framework you want to connect Semrush with
OpenAI Agents SDK
Use Semrush MCP with OpenAI Agents SDK
Claude Agents SDK
Use Semrush MCP with Claude Agents SDK
Google ADK
Use Semrush MCP with Google ADK
Langchain
Use Semrush MCP with Langchain
AI SDK
Use Semrush MCP with AI SDK
Mastra AI
Use Semrush MCP with Mastra AI
LlamaIndex
Use Semrush MCP with LlamaIndex
CrewAI
Use Semrush MCP with CrewAI
Pydantic AI
Use Semrush MCP with Pydantic AI
Autogen
Use Semrush MCP with Autogen
Explore Other Toolkits
Adrapid
Adrapid is a platform for rapid creation of digital marketing visuals using templates. It streamlines design workflows for banners, images, and HTML5 content with automation.
Deadline funnel
Deadline Funnel lets you create personalized deadlines and timers for your marketing campaigns. It helps marketers boost conversions by adding authentic urgency to offers.
Google Ads
Google Ads is Google's online advertising platform for creating, managing, and optimizing digital campaigns. It helps businesses reach targeted customers and maximize return on ad spend.
Frequently Asked Questions
Do I need my own developer credentials to use Semrush with Composio?
Can I use multiple toolkits together?
Is Composio secure?
What if the API changes?

Used by agents from



Never worry about agent reliability
We handle tool reliability, observability, and security so you never have to second-guess an agent action.





