Blog / SEO

How to Do Keyword Research From Your Terminal (No Browser Required)

By Delulu Agency, SEO & GEO Specialists| February 15, 2026
How to Do Keyword Research From Your Terminal (No Browser Required)
TL;DR
You don’t need to open a browser to do keyword research. MCP servers and CLI tools bring keyword data directly into your terminal. This guide covers three approaches: MCP-integrated keyword research in Claude Code/Cursor, direct API calls with curl, and CLI wrappers. Includes real examples and setup instructions.

Most keyword research starts with opening Ahrefs, Semrush, or Google Keyword Planner in a browser. You type a seed keyword, wait for results, export a CSV, then manually process the data.

If you’re a developer, that workflow feels broken. You live in the terminal. Your content lives in markdown files. Your deployment is a git push. Why should keyword research require a browser?

Three Ways to Research Keywords From the Terminal

1. MCP Servers (AI-Assisted)

MCP servers connect AI assistants like Claude Code directly to keyword data. You ask a question in natural language, and the AI fetches and analyzes the data for you.

# In Claude Code with an SEO MCP server configured:
> "Find low-competition keywords related to 'API monitoring'"

# Claude calls the MCP server, gets data, and responds:
# Here are 15 keywords with difficulty scores and search intent...

This is the highest-leverage approach. The AI handles query expansion, intent classification, and analysis in one step.

2. Direct API Calls

If you want raw data without AI interpretation, you can hit keyword APIs directly with curl or httpie:

curl -s "https://api.delulu9.com/v1/keywords/by-keyword" \
  -H "Authorization: Bearer YOUR_API_KEY" \
  -d '{"keyword": "api monitoring"}' | jq '.results[:5]'

This gives you structured JSON you can pipe into scripts, save to files, or process with jq.

3. CLI Wrapper Tools

Some keyword tools offer CLI wrappers that provide a familiar command-line interface:

# Example CLI tool usage
seo-keywords search "api monitoring" --intent commercial --limit 20

These are less common but useful if you want a dedicated command rather than API calls.

Setting Up MCP Keyword Research

The fastest path from zero to terminal-based keyword research:

Step 1: Install the MCP Server

npm install -g @delulu9/seo-mcp-server

Step 2: Configure Claude Code

Add to your project’s .mcp.json:

{
  "mcpServers": {
    "seo": {
      "command": "delulu9-seo-mcp",
      "args": ["--api-key", "YOUR_API_KEY"]
    }
  }
}

Step 3: Research Keywords Naturally

Now you can ask Claude Code keyword questions while you’re writing code or content:

The MCP server returns data from Google, Bing, and Reddit, with intent classification and difficulty scores included.

Building Keyword Research Into Your Workflow

Content Planning in Git

Keep a keywords.md or content-plan.md in your repo. When you research keywords from the terminal, pipe results directly into your planning doc:

# Ask Claude to research and format keywords as markdown
> "Research keywords for 'kubernetes monitoring' and add them to content-plan.md as a table with difficulty and intent columns"

Pre-Commit Keyword Checks

Before publishing content, verify your target keywords are actually worth targeting:

# Quick keyword check before committing a blog post
> "Check the search volume and difficulty for the keywords in the frontmatter of content/blog/my-new-post.md"

Batch Research With Scripts

For programmatic SEO, use the API directly in your build scripts:

import requests

seeds = ["api monitoring", "log management", "error tracking"]
results = []

for seed in seeds:
    resp = requests.post(
        "https://api.delulu9.com/v1/keywords/by-keyword",
        headers={"Authorization": "Bearer YOUR_KEY"},
        json={"keyword": seed},
    )
    results.extend(resp.json()["results"])

# Filter for low-difficulty, commercial intent keywords
targets = [
    kw for kw in results
    if kw["difficulty"] == "Low" and kw["intent"] == "Commercial"
]

Why Terminal-Based Keyword Research Wins

Speed

No browser startup, no login screens, no loading dashboards. Ask a question, get an answer in seconds.

Integration

Results flow directly into your codebase. No CSV exports, no copy-paste, no context switching.

Automation

Script your keyword research. Run it in CI. Build content pipelines that start with automated keyword discovery.

Cost

Browser-based SEO tools charge $100-300/mo for their full platforms. API-first tools like Delulu9 cost $12/mo because they skip the dashboard overhead.

Comparing Terminal Keyword Research Options

Tool Type Data Sources Intent Analysis Price
Delulu9 MCP MCP Server Google, Bing, Reddit Yes $12/mo
Ahrefs API REST API Google Limited From $129/mo
Semrush API REST API Google Yes From $139.95/mo
DataForSEO API REST API Google, Bing No Pay-per-request
Google Keyword Planner Browser only Google No Free (with Ads account)

When to Use Browser-Based Tools Instead

Terminal keyword research covers 80% of use cases. You still want a browser for:

For everything else, the terminal is faster.

Can I do keyword research from the terminal?
Yes. MCP servers, REST APIs, and CLI tools bring keyword data directly into your terminal. The fastest approach is using an MCP server with Claude Code or Cursor, which lets you research keywords using natural language without leaving your editor.
What's the best keyword research API?
For developers who want multi-source data (Google, Bing, Reddit) with intent classification, Delulu9’s API offers the best value at $12/mo. If you need enterprise-scale data, Ahrefs and Semrush APIs are more comprehensive but cost $129-140/mo minimum.
How do MCP servers work for SEO?
MCP (Model Context Protocol) servers connect AI assistants like Claude Code to SEO data sources. When you ask a keyword research question, Claude calls the MCP server, which fetches real data from Google, Bing, and Reddit, then Claude analyzes and presents the results.

Try Delulu9 free for 1 day

Keyword research from Claude Code. Google + Bing + Reddit data. $12/mo after trial.

Start Free Trial

Related Articles