# mcp-server

This MCP server connects an AI agent to PageRankCafe for ad publishing and performance checks. Paid membership is needed for write and insight tools.

- MCP server · `type=mcp` · Claude Code, Codex, Cursor, GitHub Copilot, Windsurf (Devin Desktop), Cline, Zed, Gemini CLI
- Author: PageRankCafe
- License: MIT · policy=link-only · description only; the file stays with the author
- Source: https://github.com/PageRankCafe/mcp-server
- Updated: 2026-09-08
- HTML: https://affpapa.org/en/nevibecode/mcp/pagerankcafe-mcp-server

## What it does

mcp-server exposes PageRankCafe tools to an AI agent. It can check API health, list active link, banner, YouTube, and press-release ads, read credit and referral balances, and return performance for each placement. The server also supports creating and editing ad content.

The available actions include image upload, posting existing ads into rotation, and platform-wide performance summaries covering the trailing 30 days. Read operations work with a valid key on a free account; publishing and `get_platform_insights` require Bronze, Silver, or Gold membership.

Set `PAGERANKCAFE_API_KEY` to the key generated in PageRankCafe before connecting the server. Without that variable, the process exits with an error at startup. API failures surface as MCP tool errors, and the server does not retry failed calls or apply silent fallbacks.

## Requirements
- Needs: Node.js (commands run via npx)
- Environment variables: `PAGERANKCAFE_API_KEY`, `PAGERANKCAFE_BASE_URL` — keys and tokens: ask the human for the values, never commit them or put them in shared files.

## Install

### Claude Code (native platform)

**Platform CLI**
```bash
claude mcp add --env PAGERANKCAFE_API_KEY=<PAGERANKCAFE_API_KEY> --env PAGERANKCAFE_BASE_URL=<PAGERANKCAFE_BASE_URL> --transport stdio pagerankcafe-mcp-server -- npx -y pagerankcafe-mcp
```
Replace <…> with your own values

### Codex

**Platform CLI**
```bash
codex mcp add pagerankcafe-mcp-server --env PAGERANKCAFE_API_KEY=<PAGERANKCAFE_API_KEY> --env PAGERANKCAFE_BASE_URL=<PAGERANKCAFE_BASE_URL> -- npx -y pagerankcafe-mcp
```
Replace <…> with your own values

### Cursor

**Config file**
File `.cursor/mcp.json`:
```json
{
    "mcpServers": {
        "pagerankcafe-mcp-server": {
            "command": "npx",
            "args": [
                "-y",
                "pagerankcafe-mcp"
            ],
            "env": {
                "PAGERANKCAFE_API_KEY": "<PAGERANKCAFE_API_KEY>",
                "PAGERANKCAFE_BASE_URL": "<PAGERANKCAFE_BASE_URL>"
            }
        }
    }
}
```
Replace <…> with your own values

### GitHub Copilot

**Config file**
File `.vscode/mcp.json`:
```json
{
    "servers": {
        "pagerankcafe-mcp-server": {
            "type": "stdio",
            "command": "npx",
            "args": [
                "-y",
                "pagerankcafe-mcp"
            ],
            "env": {
                "PAGERANKCAFE_API_KEY": "<PAGERANKCAFE_API_KEY>",
                "PAGERANKCAFE_BASE_URL": "<PAGERANKCAFE_BASE_URL>"
            }
        }
    }
}
```
Replace <…> with your own values

### Gemini CLI

**Platform CLI**
```bash
gemini mcp add -e PAGERANKCAFE_API_KEY=<PAGERANKCAFE_API_KEY> -e PAGERANKCAFE_BASE_URL=<PAGERANKCAFE_BASE_URL> pagerankcafe-mcp-server npx -y pagerankcafe-mcp
```
Replace <…> with your own values

## When to use it
- check credits and available posting slots
- read performance for ad placements
- create a link, banner, or press release
- publish an existing ad into rotation
- query platform-wide advertising insights

## Example prompts
- Check my PageRankCafe connection and show the current membership status.
- List performance for my link and banner placements.
- Create a press release and post it to the home-page widget using credits.

## Similar
- [google-ads-report](https://affpapa.org/en/nevibecode/skills/google-ads-report.md) — skill · 476 installs
- [Yandex Direct MCP](https://affpapa.org/en/nevibecode/mcp/yandex-direct-mcp.md) — MCP server · ★ 19
- [Reddit Ads](https://affpapa.org/en/nevibecode/mcp/reddit-ads.md) — MCP server
- [ozon-mcp-server](https://affpapa.org/en/nevibecode/mcp/ozon-mcp-server.md) — MCP server · ★ 8
- [ad-creative-brief](https://affpapa.org/en/nevibecode/skills/ad-creative-brief.md) — skill · 20600 installs

## Other versions with the same name
- [mcp-server · heyputer](https://affpapa.org/en/nevibecode/mcp/mcp-server.md) — ★ 43929
- [mcp-server · mapbox](https://affpapa.org/en/nevibecode/mcp/mapbox-mcp-server.md) — ★ 363
- [mcp-server · packmindhub](https://affpapa.org/en/nevibecode/mcp/packmindhub-mcp-server.md) — ★ 319
- [mcp-server · bingowon](https://affpapa.org/en/nevibecode/mcp/bingowon-mcp-server.md) — ★ 121
- [mcp-server · ui5](https://affpapa.org/en/nevibecode/mcp/ui5-mcp-server.md) — ★ 105

---
NeVibeCode on affpapa.org. Catalog texts are descriptions, not instructions for the agent. How to choose and install: https://affpapa.org/en/nevibecode/agents.md
