Skip to main content
Glama
kortex-mcp

kortex-mcp

Official
by ibkortex

kortex-mcp

MCP server that exposes the Kortex data plane to MCP clients (Claude Desktop, Claude Code, Cursor, VS Code). Wraps the two data plane endpoints so Claude can discover and search enterprise datasets without leaving the conversation.

Prerequisites

  • Python 3.11+

  • uv (recommended) or pip

  • A running Kortex backend data plane

  • A Kortex personal API key (see below) whose owner has access to at least one collection

Personal API keys

Personal keys are generated in Kortex → Integraciones → Servidor MCP. A personal key acts on behalf of the user who created it: the MCP server sees exactly the collections that user has been granted, and nothing else. The secret is shown only once — copy it straight into your client config, never commit that file, and revoke the key from the same page if it leaks.

Related MCP server: repo-semantic-search

Claude Desktop setup

In Claude Desktop go to: Customize > Developer > Edit Config and edit the claude_desktop_config.json config file.

Choose one of the two options below, then restart Claude Desktop. The Kortex tools will appear in the tool picker (hammer icon).

Option A — Directly from GitHub

Use this to always run the given tagged release without maintaining a local clone. uvx downloads, caches, and runs the package in one step.

{
  "mcpServers": {
    "kortex": {
      "command": "uvx",
      "args": [
        "--from", "https://github.com/ibkortex/kortex_mcp/archive/refs/tags/v0.1.0.zip",
        "kortex-mcp"
      ],
      "env": {
        "KORTEX_API_URL": "https://<kortex_data_plane_url>",
        "KORTEX_API_KEY": "kx_live_<id>_<secret>"
      }
    }
  }
}

Option B — Local clone for active development

Use this if you have cloned the repo and want to run your working copy.

{
  "mcpServers": {
    "kortex": {
      "command": "uv",
      "args": [
        "run",
        "--project", "/absolute/path/to/kortex/src/kortex_mcp",
        "python", "-m", "mcps.kortex_mcp.server"
      ],
      "env": {
        "KORTEX_API_URL": "http://localhost:8080",
        "KORTEX_API_KEY": "kx_live_<id>_<secret>"
      }
    }
  }
}

Replace /absolute/path/to/kortex/src/kortex_mcp with the actual path on your machine.

Installing uv

# macOS / Linux
curl -LsSf https://astral.sh/uv/install.sh | sh

# Windows
winget install --id=astral-sh.uv -e

Claude Code setup

claude mcp add kortex \
  --env KORTEX_API_URL=https://<kortex_data_plane_url> \
  --env KORTEX_API_KEY=kx_live_<id>_<secret> \
  -- uvx --from https://github.com/ibkortex/kortex_mcp/archive/refs/tags/v0.1.0.zip kortex-mcp

Add --scope user to make the server available in every project (the default scope is the current project only). Check it with claude mcp list or /mcp inside a session.

Cursor setup

Create .cursor/mcp.json in your project (or ~/.cursor/mcp.json for all projects):

{
  "mcpServers": {
    "kortex": {
      "command": "uvx",
      "args": [
        "--from", "https://github.com/ibkortex/kortex_mcp/archive/refs/tags/v0.1.0.zip",
        "kortex-mcp"
      ],
      "env": {
        "KORTEX_API_URL": "https://<kortex_data_plane_url>",
        "KORTEX_API_KEY": "kx_live_<id>_<secret>"
      }
    }
  }
}

VS Code setup

Create .vscode/mcp.json in your workspace (note the top-level key is servers and each entry needs "type": "stdio"):

{
  "servers": {
    "kortex": {
      "type": "stdio",
      "command": "uvx",
      "args": [
        "--from", "https://github.com/ibkortex/kortex_mcp/archive/refs/tags/v0.1.0.zip",
        "kortex-mcp"
      ],
      "env": {
        "KORTEX_API_URL": "https://<kortex_data_plane_url>",
        "KORTEX_API_KEY": "kx_live_<id>_<secret>"
      }
    }
  }
}

If the workspace is shared or versioned, keep the key out of the file with an inputs entry ("type": "promptString", "password": true) and reference it as "${input:<id>}".

Tools

list_collections

Lists all collections the API key has access to.

Returns each collection with:

  • id — use this in retrieve

  • nombre / descripcion — human-readable name and description

  • availableVersions — logical version labels you can query (e.g. ["v1", "v2"])

Call this first to discover which collection IDs and version labels are available.


retrieve(query, ...)

Semantic search against Amazon Bedrock Knowledge Bases.

Parameter

Type

Default

Description

query

string

—

Natural-language question or search phrase

collections

string[]

all accessible

Collections to search. Each entry is "collection_id" or "collection_id:version_label". Omit to search all accessible collections at their default version.

number_of_results

integer

10

Maximum passages to return

Each result includes collectionId, versionLabel, content, score, and sourceUri.

Requesting a collection outside the API key's scope returns a 403 — Claude cannot query collections it has not been granted access to.

Testing with MCP Inspector

MCP Inspector wraps the server process and opens a local web UI where you can call tools interactively — no Claude Desktop needed.

Local clone:

npx @modelcontextprotocol/inspector \
  -e KORTEX_API_KEY=kx_live_<token>  \
  -e KORTEX_API_URL=http://localhost:8080 \
  uvx --from ~/kortex/src/kortex_mcp kortex-mcp

From GitHub:

npx @modelcontextprotocol/inspector \
  -e KORTEX_API_KEY=kx_live_<token>  \
  -e KORTEX_API_URL=https://<kortex_data_plane_url> \
  uvx --from https://github.com/ibkortex/kortex_mcp/archive/refs/tags/v0.1.0.zip kortex-mcp

SKILL

  • enable skill in claude

  • Configure env vars

Available Tools

2 tools
list_collectionsA

List all collections accessible to this API key.

Returns a list of collections, each containing:

  • id: unique collection identifier (use this in retrieve)

  • nombre / descripcion: human-readable name and description — read these to understand what a collection contains before deciding whether to query it

  • availableVersions: logical version labels you can query (e.g. ["v1", "v2"])

Call this before retrieve to know which collection IDs and version labels are available.

Inputs: no named parameters.

retrieveA

Semantic search across accessible collections using Amazon Bedrock Knowledge Bases.

Args: query: Natural-language question or search phrase. collections: Which collections (and optionally which version) to search. Each entry is either: - "collection_id" → search that collection at its default version - "collection_id:label" → search that collection at the given version label Omit (or pass null) to search across all collections accessible to the API key, each at its default version. Use list_collections to discover IDs and labels. number_of_results: Maximum number of passages to return (default 10).

Returns a list of results, each with:

  • collectionId / versionLabel: which collection and version the passage came from

  • content: the retrieved text passage

  • score: relevance score (higher is more relevant)

  • sourceUri: original document URI when available

Inputs: query (required), collections, number_of_results.

Tool Schema Changelog

Recent tool additions, removals, and schema changes observed during successful MCP inspections.

Loading tool schema changelog…

    TDQS

    A4.5/5.0

    Scored across 2 tools

    Disambiguation5/5

    The two tools have clearly distinct purposes: list_collections is for discovery of available collections, while retrieve performs semantic search. There is no overlap or ambiguity between them.

    Naming Consistency4/5

    list_collections follows a verb_noun pattern, but retrieve is a single verb without an explicit object. Both are imperative and readable, though not perfectly uniform.

    Tool Count3/5

    With only two tools, the server feels minimal but just barely adequate for its narrow scope of collection discovery and search. It sits on the lower boundary of acceptable tool count.

    Completeness4/5

    The server covers the essential workflow: listing collections to discover IDs and versions, then retrieving search results. There are no obvious dead ends, though a more detailed collection metadata endpoint could be considered a minor gap.

    Maintenance

    ActivitySlowing
    ResponsivenessNo recent community issues

    Related MCP Connectors

    Related MCP Servers

    • A
      license
      A
      quality
      D
      maintenance
      Enables Claude to search, query, and interact with an Enterprise Knowledge Management System (EKMS). Supports semantic search, knowledge recommendations, relationship graphs, and feedback recording for enterprise knowledge bases.
      7
      MIT
    • F
      license
      Not graded
      quality
      D
      maintenance
      Enables semantic code search over local repositories, providing tools like semantic_search and list_indexed_repos to Claude Code, so users can find relevant code sections via natural language instead of grep.
      -
    • A
      license
      Not graded
      quality
      B
      maintenance
      Exposes knowledge base retrieval tools for AI agents via the Model Context Protocol, enabling hybrid search across datasets and dataset listing.
      7 npm
      Apache 2.0
    • F
      license
      Not graded
      quality
      B
      maintenance
      Enables natural-language retrieval from enterprise policy documents via RAG, exposing search_enterprise_knowledge and get_document_sources tools.
      1
      -