Skip to main content
The Hadiq.io MCP server implements the Model Context Protocol (MCP), a standard that lets AI tools connect to external data sources and services. By pointing Cursor, Claude Desktop, or any other MCP-compatible tool at your Hadiq.io instance, you give it direct access to your team’s indexed knowledge — documents, wikis, code, and more.

What MCP provides

MCP defines a standard interface for AI assistants to discover and call tools. When you connect an external tool to the Hadiq.io MCP server, it gains three capabilities: The server also exposes an indexed_sources resource that lists all connected sources (e.g. confluence, github, google_drive) so the AI tool can filter searches by source.
All access controls are enforced by Hadiq.io. The MCP server authenticates every request using your Hadiq.io API key or Personal Access Token, so users only see documents they already have permission to access.

Prerequisites

  • A running Hadiq.io instance with the MCP server enabled (MCP_SERVER_ENABLED=true)
  • An Hadiq.io API key or Personal Access Token
You can generate a Personal Access Token in Hadiq.io under your user settings. API keys can be created by an admin under Admin → API Keys.

Enabling the MCP server

The MCP server runs as a separate process alongside the Hadiq.io API server. Enable it by setting the following environment variable:
By default, the MCP server listens on port 8090. You can change this with MCP_SERVER_PORT. Verify it is running:
Expected response:

Authentication

All requests to the MCP server require a bearer token in the Authorization header. Use either:
  • A Personal Access Token (PAT) — scoped to your own user account
  • An API Key — can be scoped to a specific set of permissions
The MCP server validates the token against your Hadiq.io API server on every request. No token is stored by the MCP server itself.

Configuring MCP clients

Add Hadiq.io to your Cursor MCP configuration. Open or create ~/.cursor/mcp.json (or the workspace-level .cursor/mcp.json):
~/.cursor/mcp.json
Replace your-Hadiq.io-domain.com with your Hadiq.io instance URL, and YOUR_PAT_OR_API_KEY with your token.After saving, restart Cursor. Hadiq.io will appear in the MCP tools panel and Cursor will use it automatically when generating code or answering questions that benefit from your team’s knowledge.
Cursor works best when you also tell it what sources are available. Ask it to list indexed_sources to see what Hadiq.io has indexed in your workspace.

Available tools

search_indexed_documents

Searches your team’s private knowledge base indexed in Hadiq.io. Returns ranked document chunks with content, source type, link, and relevance score.

search_web

Searches the public internet. Returns titles, URLs, and snippets. Use open_urls to fetch full content.

open_urls

Fetches the full text content of one or more URLs. Returns the full text content and metadata for each URL.

Environment variables

The MCP server runs as a separate process. If you are self-hosting Hadiq.io, make sure port 8090 is accessible from the machines running your MCP clients, or configure a reverse proxy to expose it on a standard port.