Skip to main content

What is MCP?

The Model Context Protocol lets AI tools call external APIs as tools during a conversation. NearIQ supports two MCP connection modes:
  • Hosted Streamable HTTP endpoint at https://app.neariq.io/api/mcp for clients that support remote MCP servers.
  • Local stdio package via npx @neariq/mcp-server for clients that run local MCP servers.

Prerequisites

  • A NearIQ account on the Growth plan or above.
  • A NearIQ API key from Settings > API Keys.
  • Node.js 18+ only if you use the local npm package.

Hosted endpoint

Use this when your AI tool supports remote MCP servers or Streamable HTTP:
Hosted endpoint tools are read-only in the first release: The hosted endpoint uses the same Growth+ API access, API-key scopes, org permissions, plan gates, and rate limits as the public REST API.

Local package

Use the local package when your AI tool only supports stdio MCP servers:
Optional environment variable: The local package exposes the broader API-backed tool set for competitors, reviews, rankings, AI visibility, content, reports, alerts, market data, and chat.

Troubleshooting

Invalid or missing API key Confirm the key starts with niq_live_ and is passed as Authorization: Bearer ... for the hosted endpoint or NEARIQ_API_KEY for the local package. API 403 Your plan or API-key scopes do not allow the requested tool. Create a key with the required read scopes or upgrade to a plan with API access. Tools not appearing Restart your AI tool after saving the MCP config. For the hosted endpoint, confirm your client supports remote MCP servers.