Keyword Insights MCP Server
An MCP (Model Context Protocol) server that provides tools for interacting with the Keyword Insights API.
Features
- 23 tools covering all Keyword Insights API endpoints
- Automatic authentication with token caching
- Async HTTP client for optimal performance
- Full support for keyword clustering, ranking, content briefs, and writer agent
- Pagination support for large result sets
- Explicit parameter schemas for better AI model understanding
- Compact responses - ~70% smaller output (no whitespace, nulls/empties stripped)
Installation
Option 1: Using uvx (Recommended)
No installation required - uvx runs the package in an isolated environment:
uvx keyword-insights-mcp
If you don't have uv installed, get it from astral.sh/uv.
Option 2: Using pip
pip install keyword-insights-mcp
Note: If you have multiple Python versions installed, ensure you install with the same Python that will run the server. Use
python -m pip install keyword-insights-mcpto be explicit.
Usage
With Claude Desktop
Add to your Claude Desktop configuration file:
- macOS:
~/Library/Application Support/Claude/claude_desktop_config.json - Windows:
%APPDATA%\Claude\claude_desktop_config.json
Using uvx (Recommended)
{
"mcpServers": {
"keyword-insights": {
"command": "uvx",
"args": ["keyword-insights-mcp"],
"env": {
"KEYWORD_INSIGHTS_EMAIL": "your-email@example.com",
"KEYWORD_INSIGHTS_PASSWORD": "your-password"
}
}
}
}
Using pip installation
{
"mcpServers": {
"keyword-insights": {
"command": "python",
"args": ["-m", "keyword_insights_mcp.server"],
"env": {
"KEYWORD_INSIGHTS_EMAIL": "your-email@example.com",
"KEYWORD_INSIGHTS_PASSWORD": "your-password"
}
}
}
}
With Claude Code
Add to your project's .mcp.json or Claude Code settings:
Using uvx (Recommended)
{
"mcpServers": {
"keyword-insights": {
"command": "uvx",
"args": ["keyword-insights-mcp"],
"env": {
"KEYWORD_INSIGHTS_EMAIL": "your-email@example.com",
"KEYWORD_INSIGHTS_PASSWORD": "your-password"
}
}
}
}
Using pip installation
{
"mcpServers": {
"keyword-insights": {
"command": "python",
"args": ["-m", "keyword_insights_mcp.server"],
"env": {
"KEYWORD_INSIGHTS_EMAIL": "your-email@example.com",
"KEYWORD_INSIGHTS_PASSWORD": "your-password"
}
}
}
}
Testing with MCP Inspector
mcp dev src/keyword_insights_mcp/server.py
Available Tools
User
get_user- Get account data, credit balance, and subscription info
Keyword Ranking
create_advanced_ranking_order- Analyze SERP for a single keyword- Required:
keyword,location,language - Optional:
device,domain,include_word_count
- Required:
get_advanced_ranking_order- Get ranking order resultscreate_advanced_ranking_batch_order- Analyze SERP for multiple keywordsget_advanced_ranking_batch_order- Get batch ranking results
Content Brief
get_content_brief_languages- List supported languagescreate_content_brief- Create a content brief from SERP analysis- Required:
keyword,language,location
- Required:
get_content_brief- Get brief results bybrief_idlist_content_briefs- List all briefs
Keyword Content
create_keyword_content_order- Extract content insights (PAA, Reddit/Quora questions, meta titles/descriptions)- Required:
keyword,language,location,content_insights - Optional:
device - Credit costs: paa/reddit/quora = 50 credits, meta_titles/descriptions = 200 credits each
- Required:
get_keyword_content_order- Get content order results
Keyword Insights (Clustering)
get_insights_languages- List supported languagesget_insights_locations- List locations (returns first 20 by default)search_insights_locations- Search locations by name (recommended)create_insights_order- Create keyword clustering order- Required:
project_name,keywords,search_volumes,language,location,insights - Optional:
clustering_method,grouping_accuracy,hub_creation_method,device,url,folder_id - Insights options:
cluster,context,rank,title_ai
- Required:
get_insights_order- Get clustering order status/resultsget_insights_order_cost- Estimate order cost before creating- Required:
n_keywords,insights
- Required:
get_insights_order_json- Get clustered data with pagination- Required:
order_id - Optional:
page_size(default 50),page_number,sort_by,ascending
- Required:
export_insights_order_xlsx- Export to Excel filelist_insights_orders- List orders by count or date range
Writer Agent
get_writer_agent_options- Get available content types, tones, and POV optionscreate_writer_agent_order- Generate AI article outline, plan, and content- Required:
keyword - Optional:
language_code,location_name,content_type,point_of_view,folder_id,additional_insights
- Required:
get_writer_agent_order- Get generated content results
Example Usage
Once configured, you can ask Claude to:
- "Get my Keyword Insights account balance"
- "Search for locations matching 'Mexico'"
- "Estimate the cost of clustering 500 keywords with cluster and context insights"
- "Create a keyword insights order for these keywords with their search volumes"
- "Get page 2 of the clustered results for order abc123"
- "Create a content brief for 'best running shoes' in English for the United States"
- "Generate an article about 'sustainable gardening tips'"
License
MIT
Metadata
Release files for keyword-insights-mcp 0.1.3
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | Provenance | |
|---|---|---|---|---|
| keyword_insights_mcp-0.1.3.tar.gz | 8.9 kB | Without provenance | Details |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Reset |
|---|---|---|---|---|
| keyword_insights_mcp-0.1.3-py3-none-any.whl | Python 3 | none | any | Details |
Total release size: 19.1 kB
Release files / keyword_insights_mcp-0.1.3.tar.gz
| Download URL | keyword_insights_mcp-0.1.3.tar.gz |
|---|---|
| Size | 8.9 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
3162baa97e810358405f306a9e9182e8f961c7083265e0da1da8a7057de7a54b
|
|
BLAKE2b-256 checksum How to use checksums |
268846d536aed6e39c33d037ebaf15c62baa232b09e78f32a76badaed4cbf569
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/6.2.0 CPython/3.14.2
|
Release files / keyword_insights_mcp-0.1.3-py3-none-any.whl
| Download URL | keyword_insights_mcp-0.1.3-py3-none-any.whl |
|---|---|
| Size | 10.2 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
be8d49cf46ced6481cf2a382aeaaff270624cea93ac5ee7af9f349b4a1665077
|
|
BLAKE2b-256 checksum How to use checksums |
8a72877344a51349da9c86d900ed22992268307f30c8d415f0314326d961743d
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/6.2.0 CPython/3.14.2
|
Security for keyword-insights-mcp 0.1.3
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
No provenance found
None of the files in this release were uploaded with provenance metadata.
A note on package security
PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.