Documentation
Learn how to integrate Akyn knowledge bases into your AI applications using MCP.
Introduction
Akyn exposes your knowledge bases through two methods: the Model Context Protocol (MCP) for AI assistants, and a REST API for direct integration. Both allow semantic search across your custom data sources.
Connection Methods:
- MCP Server: For AI clients like Claude, Cursor, n8n. Uses SSE transport.
- REST API: For direct integration via HTTP POST requests.
Quick Start
Available Tools
query
Semantically search the knowledge base for relevant context.
// Arguments
{
"question": string
}list_sources
List all indexed sources (files and URLs) in the knowledge base.
// Arguments
{ }Connection Methods
Use SSE transport to connect AI assistants to your knowledge base. The MCP server exposes tools for querying and listing sources.
- URL:
https://akyn.dev/mcp/[kb_id] - Transport:SSE (Server-Sent Events)
- Auth:
Authorization: Bearer [api_key]
Available MCP Tools:
query- Semantic search with a questionlist_sources- List indexed documents
Use the REST API for direct HTTP integration without MCP. Send a query and receive matching context.
- Endpoint:
POST https://akyn.dev/api/query - Auth:
Authorization: Bearer [api_key]
Request body:
{
"knowledgeBaseId": "[kb_id]",
"query": "Your question here"
}Response:
{
"results": [
{ "text": "...", "score": 0.95, "metadata": {...} }
],
"tokenCount": 128,
"responseTimeMs": 245
}Connect to n8n
Use n8n's AI Agent node with Akyn's MCP server to give your workflows access to knowledge bases.
Create an AI Agent workflow
Start by adding an AI Agent node to your n8n workflow. Connect it to a Chat Model of your choice (e.g., OpenAI, Anthropic) and add an MCP Client as a Tool.

A basic workflow: Trigger → AI Agent with a Chat Model and MCP Client tool.
Configure the MCP Client node
Click on the MCP Client node and configure it with the following settings:
- Endpoint:
https://akyn.dev/mcp/[your-kb-id] - Server Transport:HTTP Streamable
- Authentication:Bearer Auth
- Tools to Include:All

Add your Akyn API Key
Click the pencil icon next to "Credential for Bearer Auth" to create a new credential. Enter your Akyn API Key as the Bearer Token.

You can generate an API key from your Dashboard Settings.
Test the connection
Click the "Execute step" button on the MCP Client node. If the connection is successful, you'll see the available tools (query and list_sources) provided by Akyn's MCP server.
Connect multiple Knowledge Bases
Need to query multiple knowledge bases? Simply add additional MCP Client nodes, each configured with a different knowledge base endpoint. The AI Agent will have access to all of them as separate tools.

Example: An AI Agent with access to three different knowledge bases.
Connect to Dust
Add Akyn knowledge bases as MCP tools in Dust to give your agents access to custom context.
Go to Spaces → Tools
In Dust, navigate to the Spaces tab, then click on Tools in the sidebar. Click the "Add Tools" button and select "Add MCP Server".

Add the MCP endpoint and API key
In the "Configure MCP Server" dialog, enter your Akyn MCP endpoint URL and your API key as the Bearer token:
- URL:
https://akyn.dev/mcp/[your-kb-id] - Authentication:Bearer token
- Bearer Token:Your Akyn API key

Name your tool and verify connection
After saving, a configuration panel appears on the right. Give your tool a Name and Description — this helps your Dust agent decide when to use the knowledge base. Check the "Available Tools" section to confirm the connection works.

You should see Query and list_sources in the Available Tools section.
Add the tool to your Dust agent
When creating or editing a Dust agent, go to the "Add tools" panel. You'll see your Akyn knowledge base listed as an available MCP tool. Select it to give your agent access to query your knowledge base.
💡 Tip: Multiple Knowledge Bases
You can add multiple Akyn MCP servers to Dust, each connected to a different knowledge base. Give each one a descriptive name so your agent knows which one to use for different queries.
Connect to LangChain
Use the MCP adapters to connect Akyn knowledge bases as tools in your LangChain agents.
Install packages:
pip install langchain-mcp-adapters langchain-openai langgraph
Connect to Akyn and create an agent:
from langchain_mcp_adapters.client import MultiServerMCPClient
from langgraph.prebuilt import create_react_agent
from langchain_openai import ChatOpenAI
client = MultiServerMCPClient({
"akyn": {
"url": "https://akyn.dev/mcp/[your-kb-id]",
"transport": "streamable_http",
"headers": {"Authorization": "Bearer [your-api-key]"}
}
})
tools = await client.get_tools()
agent = create_react_agent(ChatOpenAI(model="gpt-4o"), tools)
response = await agent.ainvoke({
"messages": [{"role": "user", "content": "What do you know about X?"}]
})
print(response["messages"][-1].content)Available Tools
The MCP client will expose query (semantic search) and list_sources (list indexed documents) as tools your agent can use.
Connect to Claude
Add Akyn knowledge bases as custom connectors in Claude to give it access to your custom context via MCP.
Open the connectors menu
On the Claude main screen, click the + button in the chat input, then select "Add connectors" from the menu.

Go to connector settings
In the connectors panel, click "Manage connectors" to access the connector settings.

Add a custom connector
In the settings page, scroll down and click "Add a custom connector".

Enter your Akyn MCP URL
Give your connector a name and paste your Akyn knowledge base MCP URL:
- Name:A descriptive name for your knowledge base
- URL:
https://akyn.dev/mcp/[your-kb-id]

You can find your knowledge base MCP URL in your Akyn Dashboard.
Connect the connector
After adding the connector, click the "Connect" button to initiate the OAuth flow.

Authorize Claude to access Akyn
In the OAuth authorization panel, review the permissions and click "Authorize" to grant Claude access to your Akyn knowledge bases.

Configure tool permissions (optional)
After connecting, you can configure how Claude uses the tools. Choose whether tools are called automatically or require human approval for each call.

The query tool performs semantic search, and list_sources lists indexed documents.
💡 Tip: Multiple Knowledge Bases
You can add multiple custom connectors, each connected to a different Akyn knowledge base. Give each one a descriptive name so Claude knows which one to use for different queries.
Connect to ChatGPT
Add Akyn knowledge bases as custom apps in ChatGPT to give it access to your custom context via MCP.
Go to Settings → Apps
In the ChatGPT web app, open the settings menu and navigate to the Apps section.

Enable Developer Mode
Click on Advanced settings and toggle on Developer mode. This allows you to add custom MCP servers as apps.

Note: Developer mode is in beta and allows adding unverified connectors.
Create a new App
Click "Create app" and fill in the following details:
- Name:A descriptive name for your knowledge base
- Description:(Optional) Helps the LLM understand when to use this KB
- MCP Server URL:
https://akyn.dev/mcp/[your-kb-id] - Authentication:OAuth
Check the box to accept the conditions, then click "Create".

You can find your knowledge base MCP URL in your Akyn Dashboard.
Authorize ChatGPT to access Akyn
After creating the app, you'll be redirected to the Akyn OAuth panel. Review the permissions and click "Authorize" to grant ChatGPT access to your knowledge bases.

Use the tool in your chats
Once connected, your Akyn knowledge base will appear in the tools menu. Click the + button in the chat input and select your knowledge base from "More" to enable it for the current conversation.

Apps marked with DEV are custom developer apps.
💡 Tip: Multiple Knowledge Bases
You can create multiple apps, each connected to a different Akyn knowledge base. Give each one a descriptive name and description so ChatGPT knows which one to use for different queries.

Connect to Cursor
Add Akyn knowledge bases as MCP servers in Cursor to give your AI assistant access to your custom context.
Go to Settings → Tools & MCP
Open Cursor settings and navigate to the Tools & MCP section in the sidebar.

Click "New MCP Server"
In the Installed MCP Servers section, click on "New MCP Server" to add a custom MCP server.
Add the MCP configuration
Paste the following configuration, replacing the placeholders with your knowledge base ID and API key:
{
"A name for your MCP": {
"url": "https://akyn.dev/mcp/[kb-id]",
"headers": {
"Authorization": "Bearer YOUR_API_KEY"
}
}
}- Name:A descriptive name for your knowledge base
- [kb-id]:Your knowledge base ID from the Akyn dashboard
- YOUR_API_KEY:Your Akyn API key from Dashboard Settings
💡 Tip: Multiple Knowledge Bases
You can add multiple MCP servers to Cursor, each connected to a different Akyn knowledge base. Give each one a descriptive name so the AI assistant knows which one to use.