App SEO AI is an application for SEO automation and AI-powered optimization that integrates with Google Ads Keyword Planner. It helps you research keywords, analyze search results, examine competitors, and provides SEO recommendations through a convenient API interface.
Before installing, make sure you have:
First, clone the repository and navigate to the project directory:
git clone https://github.com/ccnn2509/app-seo-ai.git
cd app-seo-ai
Next, install the dependencies:
npm install
Create your environment configuration by copying the example file:
cp .env.example .env
Edit the .env
file with your Google Ads API credentials:
# Server Configuration
PORT=3000
NODE_ENV=development
# Google Ads API Configuration
GOOGLE_ADS_DEVELOPER_TOKEN=your_developer_token
GOOGLE_ADS_CLIENT_ID=your_client_id
GOOGLE_ADS_CLIENT_SECRET=your_client_secret
GOOGLE_ADS_REFRESH_TOKEN=your_refresh_token
GOOGLE_ADS_LOGIN_CUSTOMER_ID=your_customer_id_without_dashes
# SERP API Configuration (optional)
SERP_API_KEY=your_serp_api_key
Run the following command to obtain a refresh token:
npm run get-token
This will open your browser and guide you through the OAuth2 authentication process. The refresh token will be automatically saved to your .env
file.
For development:
npm run dev
For production:
npm start
The server will start on the port specified in your .env
file (default: 3000).
You can access the API documentation when the server is running by navigating to:
http://localhost:3000/api-docs
This project includes Model Context Protocol (MCP) integration, allowing AI assistants to use the API. To use this with Smithery:
app-seo-ai
repositoryThe following tools are available through the MCP interface:
// Example request to research keywords
fetch('http://localhost:3000/api/keywords/ideas?keyword=seo%20tools&language=en')
.then(response => response.json())
.then(data => console.log(data));
// Example request to analyze SERP
fetch('http://localhost:3000/api/serp/analyze?query=best%20seo%20tools&location=United%20States')
.then(response => response.json())
.then(data => console.log(data));
// Example request to analyze competitors
fetch('http://localhost:3000/api/competitors/analyze?domain=example.com')
.then(response => response.json())
.then(data => console.log(data));
To add this MCP server to Claude Code, run this command in your terminal:
claude mcp add-json "app-seo-ai" '{"command":"npm","args":["start"],"tools":[{"name":"research_keywords","description":"Research keywords related to a given topic or seed keyword"},{"name":"analyze_serp","description":"Analyze a SERP (Search Engine Results Page) for a given query"},{"name":"analyze_competitors","description":"Analyze competitors for a given keyword or domain"},{"name":"_health","description":"Health check endpoint"}]}'
See the official Claude Code MCP documentation for more details.
There are two ways to add an MCP server to Cursor. The most common way is to add the server globally in the ~/.cursor/mcp.json
file so that it is available in all of your projects.
If you only need the server in a single project, you can add it to the project instead by creating or adding it to the .cursor/mcp.json
file.
To add a global MCP server go to Cursor Settings > Tools & Integrations and click "New MCP Server".
When you click that button the ~/.cursor/mcp.json
file will be opened and you can add your server like this:
{
"mcpServers": {
"app-seo-ai": {
"command": "npm",
"args": [
"start"
],
"tools": [
{
"name": "research_keywords",
"description": "Research keywords related to a given topic or seed keyword"
},
{
"name": "analyze_serp",
"description": "Analyze a SERP (Search Engine Results Page) for a given query"
},
{
"name": "analyze_competitors",
"description": "Analyze competitors for a given keyword or domain"
},
{
"name": "_health",
"description": "Health check endpoint"
}
]
}
}
}
To add an MCP server to a project you can create a new .cursor/mcp.json
file or add it to the existing one. This will look exactly the same as the global MCP server example above.
Once the server is installed, you might need to head back to Settings > MCP and click the refresh button.
The Cursor agent will then be able to see the available tools the added MCP server has available and will call them when it needs to.
You can also explicitly ask the agent to use the tool by mentioning the tool name and describing what the function does.
To add this MCP server to Claude Desktop:
1. Find your configuration file:
~/Library/Application Support/Claude/claude_desktop_config.json
%APPDATA%\Claude\claude_desktop_config.json
~/.config/Claude/claude_desktop_config.json
2. Add this to your configuration file:
{
"mcpServers": {
"app-seo-ai": {
"command": "npm",
"args": [
"start"
],
"tools": [
{
"name": "research_keywords",
"description": "Research keywords related to a given topic or seed keyword"
},
{
"name": "analyze_serp",
"description": "Analyze a SERP (Search Engine Results Page) for a given query"
},
{
"name": "analyze_competitors",
"description": "Analyze competitors for a given keyword or domain"
},
{
"name": "_health",
"description": "Health check endpoint"
}
]
}
}
}
3. Restart Claude Desktop for the changes to take effect