Skip to content
← All docs

Connect Niyra to Claude, ChatGPT, or any MCP client

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.

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 endpointhttps://api.niyra.ai/mcp
ProtocolJSON-RPC 2.0 · MCP 2025-06-18
AuthOAuth 2.1 (sign in + approve) — or a Personal Access Token
OAuth discoveryhttps://api.niyra.ai/.well-known/oauth-authorization-server
Resource metadatahttps://api.niyra.ai/.well-known/oauth-protected-resource
JWKShttps://api.niyra.ai/.well-known/jwks.json
GPT-Action spechttps://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:

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:

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

What Niyra can do once connected

The other assistant will see these tools:

ToolPermissionWhat it does
niyra_askniyra:askAsk a question that needs your memory, email, calendar, or docs — read-only
niyra_memoriesniyra:memory:readSearch what Niyra remembers about you
niyra_rememberniyra:memory:writeSave a new fact or preference
niyra_executeniyra:executeAsk Niyra to do something (send an email, schedule a meeting) — destructive steps still confirm in your own channel
niyra_followupniyra:askContinue an ongoing thread or task
niyra_get_taskniyra:askCheck on a long-running task Niyra spun off
niyra_commitmentsniyra:memory:readSee 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.

ScopeGrants
niyra:askRead-only questions and lookups
niyra:memory:readRead saved facts, preferences, history
niyra:memory:writeSave new facts and preferences
niyra:resources:readRead conversation transcripts and task results
niyra:tools:safeUse read-only tools (web search, calendar lookups)
niyra:executeRun action loops (send, schedule, mutate)
niyra:tools:destructiveRequired for destructive actions — still confirmed by you

Full detail: Scopes reference · OAuth flow.

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:

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.

FAQ

Do I need to paste an API key or token?
No. When your tool connects, it sends you to Niyra's sign-in and consent screen, you approve the scopes, and it's connected. A Personal Access Token is only there if you want a manual bearer for scripts.
What's the MCP endpoint URL?
https://api.niyra.ai/mcp — that single URL is all most tools need. They auto-discover sign-in and permissions from it.
Can it send emails or change things?
Only if you grant the execute scope, and every destructive action still asks you to confirm in your own Niyra channel (web, WhatsApp, Telegram). Read-only is the default.
Does it work with ChatGPT?
Yes — either as an MCP connector (developer / deep-research mode) using the same /mcp URL, or as a custom GPT Action pointed at https://api.niyra.ai/v1/public/openapi.json.
For AI:.md.txt
Connect Niyra to Claude, ChatGPT, or any MCP client · Niyra Docs