> ## Documentation Index
> Fetch the complete documentation index at: https://docs.postinger.dev/llms.txt
> Use this file to discover all available pages before exploring further.

# Cursor

> Add Postinger to Cursor, with OAuth or an API key.

[Install in Cursor](cursor://anysphere.cursor-deeplink/mcp/install?name=postinger\&config=eyJ1cmwiOiJodHRwczovL2FwaS5wb3N0aW5nZXIuZGV2L21jcCJ9)

The link opens Cursor and adds the server. To add it by hand, put this in `~/.cursor/mcp.json` (or a project's `.cursor/mcp.json`):

```json ~/.cursor/mcp.json theme={"system"}
{
  "mcpServers": {
    "postinger": {
      "url": "https://api.postinger.dev/mcp"
    }
  }
}
```

Then open **Cursor Settings → MCP** and log in to Postinger.

To use an API key instead, send it as a header:

```json ~/.cursor/mcp.json theme={"system"}
{
  "mcpServers": {
    "postinger": {
      "url": "https://api.postinger.dev/mcp",
      "headers": {
        "Authorization": "Bearer ${env:POSTINGER_API_KEY}"
      }
    }
  }
}
```

Cursor reads `POSTINGER_API_KEY` from the environment it was started in. Its [MCP documentation](https://docs.cursor.com/context/model-context-protocol) covers the file format.

For what each credential means, and what to do when connecting fails, see [Setup](https://docs.postinger.dev/mcp/setup.md).


This documentation is built and hosted on [Mintlify](https://mintlify.com), a developer documentation platform.