Keitaro MCP MCP server

Integration with Keitaro TDS API, providing tools to work with campaigns, streams, offers, and other Keitaro entities.
Back to servers
Setup instructions
Provider
GodzillaDancer
Release date
Apr 08, 2025
Language
Java
Stats
2 stars

Keitaro TDS API MCP Plugin provides integration with Keitaro TDS API, allowing you to work with campaigns, streams, offers, and other Keitaro entities through a Model Context Protocol server. This plugin simplifies interaction with your Keitaro tracker instance directly from Cursor.

Installation Options

Installing via NPM

  1. Clone the repository and install dependencies:

    git clone <repository-url>
    cd mcp-keitaro-tds
    npm install
    
  2. Install the package globally:

    npm install -g .
    
  3. Install the plugin in Cursor:

    node install-cursor-plugin.js
    
  4. Restart Cursor to apply the changes

Manual Configuration in Cursor

You can also manually add the Keitaro MCP server to your Cursor configuration:

  1. Open the Cursor MCP configuration file based on your operating system:

    # On macOS
    open ~/.cursor/mcp.json
    
    # On Windows
    notepad %USERPROFILE%\.cursor\mcp.json
    
    # On Linux
    nano ~/.cursor/mcp.json
    
  2. Add the following entry to the "mcpServers" object:

    "Keitaro": {
      "command": "mcp-keitaro-tds",
      "args": []
    }
    
  3. Save the file and restart Cursor

API Key Configuration

Create an .env file in the project root with your Keitaro credentials:

KEITARO_API_URL=http://your-keitaro-domain.com/admin_api/v1
KEITARO_API_KEY=your-api-key

Using the Plugin

  1. Launch Cursor
  2. Open the command palette (Cmd+P on macOS or Ctrl+P on Windows/Linux)
  3. Find "Keitaro" and select it
  4. You can now use the Keitaro API through Cursor

Available Tools

Campaigns

  • list_campaigns - get a list of campaigns
  • get_campaign - get information about a specific campaign
  • create_campaign - create a new campaign
  • update_campaign - update an existing campaign
  • delete_campaign - delete a campaign

Traffic Streams

  • list_streams - get a list of traffic streams for a campaign
  • get_stream - get information about a specific stream

Traffic Sources

  • list_traffic_sources - get a list of traffic sources
  • get_traffic_source - get information about a specific traffic source

Offers

  • list_offers - get a list of offers
  • get_offer - get information about a specific offer

Clicks and Conversions

  • list_clicks - get a list of clicks
  • get_click - get information about a specific click
  • list_conversions - get a list of conversions
  • get_conversion - get information about a specific conversion

Reports

  • get_report - generate a report with specified parameters

Domains

  • list_domains - get a list of domains
  • get_domain - get information about a specific domain

Usage Examples

Getting a list of campaigns

list_campaigns({
  limit: 10,
  page: 1,
  search: "search query"
})

Creating a new campaign

create_campaign({
  name: "New Campaign",
  type: "position",
  cost_type: "CPC",
  cost_value: 1.5,
  group_id: 1,
  state: "active",
  traffic_source_id: 1
})

Getting a report

get_report({
  from: "2025-01-01",
  to: "2025-01-31",
  group: "campaign",
  filters: {
    campaign_id: 123
  }
})

How to install this MCP server

For Claude Code

To add this MCP server to Claude Code, run this command in your terminal:

claude mcp add-json "Keitaro" '{"command":"mcp-keitaro-tds","args":[]}'

See the official Claude Code MCP documentation for more details.

For Cursor

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.

Adding an MCP server to Cursor globally

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": {
        "Keitaro": {
            "command": "mcp-keitaro-tds",
            "args": []
        }
    }
}

Adding an MCP server to a project

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.

How to use the MCP server

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.

For Claude Desktop

To add this MCP server to Claude Desktop:

1. Find your configuration file:

  • macOS: ~/Library/Application Support/Claude/claude_desktop_config.json
  • Windows: %APPDATA%\Claude\claude_desktop_config.json
  • Linux: ~/.config/Claude/claude_desktop_config.json

2. Add this to your configuration file:

{
    "mcpServers": {
        "Keitaro": {
            "command": "mcp-keitaro-tds",
            "args": []
        }
    }
}

3. Restart Claude Desktop for the changes to take effect

Want to 10x your AI skills?

Get a free account and learn to code + market your apps using AI (with or without vibes!).

Nah, maybe later