# API & MCP

Canonical: https://devtune.ai/product/api-mcp

## API & MCP

## Built to be built on.

DevTune is designed from the ground up to plug into your own automations, workflows, and agents: a scoped REST API and an MCP server that put the same ground truth you see into the tools you already run.

#### The REST API

Pull citations, visibility, traffic, and actions into your own dashboards, pipelines, and scheduled jobs. Versioned endpoints, per-key scopes, and documented shapes you can automate against.

#### MCP for your agents

DevTune is an MCP server. Point Claude Code, Cursor, or any MCP client at it and your agents query your citations, pages, and traffic mid-task, no glue code required.

#### Scoped by design

API keys carry explicit scopes, and MCP tokens bind to a project, re-checked on every request. Your automation reads exactly what you granted, and nothing else.

#### Agent-legible answers

Your agents get clean, structured answers they can act on directly, no HTML to scrape and no guessing which number means what. Ask a question, get data back in a shape a program understands.



## Example request

```sh
curl "https://devtune.ai/api/v2/projects/$PROJECT_ID/citations/stats?windowDays=30" \
  -H "Authorization: Bearer $DEVTUNE_API_KEY" | jq '.data.stats'
```

```json
{
  "totalCitations": 1540,
  "uniquePages": 42,
  "uniqueDomains": 12,
  "avgPosition": 2.4,
  "top3Count": 1120,
  "primaryCitations": 913,
  "competitorCitations": 487,
  "otherCitations": 140
}
```

- [Pricing](https://devtune.ai/pricing)
- [Documentation](https://docs.devtune.ai/)
