---
title: Connect Niyra to Claude, ChatGPT, or any MCP client
description: Add your Niyra as a tool inside Claude, ChatGPT, Cursor, and any Model Context Protocol client. One URL, OAuth sign-in, no token pasting. Full connection guide + example prompts.
url: /docs/connect-mcp
lastUpdated: 2026-07-15
---

# Connect Niyra to Claude, ChatGPT, or any MCP client


When you connect Niyra to another AI assistant, **your Niyra becomes a tool inside it**. Claude or ChatGPT can then reach into *your* world — your email, calendar, documents, long-term memory, and commitments — through Niyra, using your integrations and gated by permissions you approve. You stay in the tool you like; that tool stops being a blank-slate chatbot and starts knowing you.

Niyra speaks the **Model Context Protocol (MCP)** over HTTPS, so it works with any MCP-compatible client.

## Everything you need

| | |
|---|---|
| **MCP endpoint** | `https://api.niyra.ai/mcp` |
| **Protocol** | JSON-RPC 2.0 · MCP `2025-06-18` |
| **Auth** | OAuth 2.1 (sign in + approve) — or a Personal Access Token |
| **OAuth discovery** | `https://api.niyra.ai/.well-known/oauth-authorization-server` |
| **Resource metadata** | `https://api.niyra.ai/.well-known/oauth-protected-resource` |
| **JWKS** | `https://api.niyra.ai/.well-known/jwks.json` |
| **GPT-Action spec** | `https://api.niyra.ai/v1/public/openapi.json` |

For most tools, the endpoint URL is the only thing you paste. Everything else — sign-in, permissions — is discovered automatically.

## How signing in works

You never hand a tool a raw password. When a client connects for the first time:

1. It opens Niyra's **authorization page** at `api.niyra.ai/oauth/authorize`.
2. If you're not signed in, Niyra sends you to **sign in** (the same login you use for niyra.ai) and brings you right back.
3. You see a **consent screen** showing which app is asking and exactly what it wants to do (ask questions, read memories, take actions…). You **Approve** or **Deny**.
4. On approve, the tool is connected. It never sees your password — only a scoped token Niyra issues.

You can review or revoke any connected app anytime in **Settings → API → Authorized integrations**.

## Connect your tool

### Claude Desktop / claude.ai

1. Open **Settings → Connectors → Add custom connector**.
2. Paste `https://api.niyra.ai/mcp` and name it **Niyra**.
3. Sign in + approve when prompted.

> Shortcut: Niyra's own **Settings → API** page has a one-click "Add to Claude" button that pre-fills this.

### Claude Code

Run in your terminal:

```bash
claude mcp add niyra https://api.niyra.ai/mcp
```

### Cursor

**Settings → MCP → Add server**, URL `https://api.niyra.ai/mcp`. (The Settings → API page also has a one-click Cursor deep link.)

### ChatGPT

Two ways, pick one:

- **MCP connector** (Developer mode / Deep Research): add `https://api.niyra.ai/mcp` as a connector and sign in.
- **Custom GPT Action**: in the GPT builder, import the schema from `https://api.niyra.ai/v1/public/openapi.json` and set auth to OAuth (or paste a Personal Access Token as a Bearer key).

### Cline / Windsurf / Continue (and any other MCP client)

Paste this into the tool's MCP config:

```json
{
  "mcpServers": {
    "niyra": {
      "url": "https://api.niyra.ai/mcp"
    }
  }
}
```

## What Niyra can do once connected

The other assistant will see these tools:

| Tool | Permission | What it does |
|---|---|---|
| `niyra_ask` | `niyra:ask` | Ask a question that needs your memory, email, calendar, or docs — read-only |
| `niyra_memories` | `niyra:memory:read` | Search what Niyra remembers about you |
| `niyra_remember` | `niyra:memory:write` | Save a new fact or preference |
| `niyra_execute` | `niyra:execute` | Ask Niyra to *do* something (send an email, schedule a meeting) — destructive steps still confirm in your own channel |
| `niyra_followup` | `niyra:ask` | Continue an ongoing thread or task |
| `niyra_get_task` | `niyra:ask` | Check on a long-running task Niyra spun off |
| `niyra_commitments` | `niyra:memory:read` | See what Niyra has flagged that you owe people |

## Try these once you're connected

- *"Ask my Niyra what meetings I have this week."*
- *"Ask Niyra to summarize my last 10 emails from the legal team."*
- *"What does Niyra remember about my priorities?"*
- *"Have Niyra remember I prefer morning meetings."*
- *"Ask Niyra to draft a reply to the last email from Sarah."* (needs the execute permission)
- *"What has Niyra flagged that I owe people?"*

Tip: when in doubt, just say **"ask Niyra …"** — that routes the request to `niyra_ask`.

## Permissions (scopes)

Niyra issues fine-grained, per-connection permissions. You approve them once at consent time; changing them means re-authorizing.

| Scope | Grants |
|---|---|
| `niyra:ask` | Read-only questions and lookups |
| `niyra:memory:read` | Read saved facts, preferences, history |
| `niyra:memory:write` | Save new facts and preferences |
| `niyra:resources:read` | Read conversation transcripts and task results |
| `niyra:tools:safe` | Use read-only tools (web search, calendar lookups) |
| `niyra:execute` | Run action loops (send, schedule, mutate) |
| `niyra:tools:destructive` | Required for destructive actions — still confirmed by you |

Full detail: [Scopes reference](/docs/api-scopes) · [OAuth flow](/docs/api-oauth).

## Prefer a manual token?

For scripts or tools that want a plain bearer instead of the OAuth flow, mint a **Personal Access Token** in **Settings → API**. Then send:

```bash
curl -X POST https://api.niyra.ai/v1/public/ask \
  -H 'Authorization: Bearer pat_your_token_here' \
  -H 'Content-Type: application/json' \
  -d '{"prompt":"what is my next meeting?"}'
```

## Troubleshooting

- **"Not authorized" / repeated sign-in loop** — make sure you're logging into the same Niyra account you use on niyra.ai, and that pop-ups aren't blocked during the OAuth redirect.
- **Tool connects but answers are empty** — you're on an old build; the ask lane requires the current release. Reconnect, or reach out at founders@niyra.ai.
- **Client won't auto-discover the login** — a few strict clients need the resource-metadata URL directly: `https://api.niyra.ai/.well-known/oauth-protected-resource`.
- **Actions do nothing** — the connection likely only has read scopes. Re-authorize and approve the execute permission.

Still stuck? Email **founders@niyra.ai** and we'll get you connected.
