kongen-mcp
Connects MCP clients to Kongen Labs' Pattern Intelligence API for reasoning regime detection, structural transfer scoring, and intelligent model routing.
README
kongen-mcp
MCP (Model Context Protocol) server for the Kongen Labs Pattern Intelligence API.
Connects Claude Code, Cursor, Windsurf, and any MCP-compatible client to Kongen's cross-domain pattern intelligence — reasoning regime detection, structural transfer scoring, and intelligent model routing.
Tools
| Tool | Description | Cost |
|---|---|---|
score_prompt |
Detect reasoning regime and optimal token budget for a prompt | 1 KT |
transfer_score |
Score a structural signature against cross-domain reference patterns | 50 KT |
check_usage |
Check your token balance and usage | 0 KT |
route_model |
Recommend Haiku/Sonnet/Opus based on prompt complexity | 1 KT |
Installation
pip install kongenlabs-mcp
Or install from source:
git clone https://github.com/kongen-labs/kongen-mcp.git
cd kongen-mcp
pip install .
Configuration
Get your API key at kongenlabs.life.
Claude Code
Add with the CLI:
claude mcp add kongen -- kongen-mcp
Then set your API key when prompted, or add it manually to .claude/mcp.json:
{
"mcpServers": {
"kongen": {
"command": "kongen-mcp",
"env": {
"KONGEN_API_KEY": "kl_live_..."
}
}
}
}
Cursor
- Open Settings > MCP > Add Server
- Name:
kongen - Command:
kongen-mcp - Environment variables:
KONGEN_API_KEY: your API key
Windsurf
Add to your MCP configuration:
{
"mcpServers": {
"kongen": {
"command": "kongen-mcp",
"env": {
"KONGEN_API_KEY": "kl_live_..."
}
}
}
}
Custom base URL
To point the server at a different API endpoint (for example a local proxy), set KONGEN_API_BASE_URL:
{
"mcpServers": {
"kongen": {
"command": "kongen-mcp",
"env": {
"KONGEN_API_KEY": "kl_test_...",
"KONGEN_API_BASE_URL": "http://localhost:8000"
}
}
}
}
Usage examples
Once configured, the tools are available to your AI assistant. Examples of what you can ask:
Prompt scoring:
"Score this prompt for complexity: Prove that the square root of 2 is irrational using proof by contradiction."
Model routing:
"Which Claude model should I use for this task: Summarize this 3-line email."
Transfer scoring:
"Score this structural signature against cross-domain patterns."
Usage check:
"How many Kongen tokens do I have left?"
Environment variables
| Variable | Required | Default | Description |
|---|---|---|---|
KONGEN_API_KEY |
Yes | — | Your Kongen API key (kl_live_... or kl_test_...) |
KONGEN_API_BASE_URL |
No | https://api.kongenlabs.life |
API base URL override |
License
MIT
<!-- mcp-name: io.github.fisnik/kongen-mcp -->
Recommended Servers
playwright-mcp
A Model Context Protocol server that enables LLMs to interact with web pages through structured accessibility snapshots without requiring vision models or screenshots.
Magic Component Platform (MCP)
An AI-powered tool that generates modern UI components from natural language descriptions, integrating with popular IDEs to streamline UI development workflow.
Audiense Insights MCP Server
Enables interaction with Audiense Insights accounts via the Model Context Protocol, facilitating the extraction and analysis of marketing insights and audience data including demographics, behavior, and influencer engagement.
VeyraX MCP
Single MCP tool to connect all your favorite tools: Gmail, Calendar and 40 more.
graphlit-mcp-server
The Model Context Protocol (MCP) Server enables integration between MCP clients and the Graphlit service. Ingest anything from Slack to Gmail to podcast feeds, in addition to web crawling, into a Graphlit project - and then retrieve relevant contents from the MCP client.
Kagi MCP Server
An MCP server that integrates Kagi search capabilities with Claude AI, enabling Claude to perform real-time web searches when answering questions that require up-to-date information.
E2B
Using MCP to run code via e2b.
Neon Database
MCP server for interacting with Neon Management API and databases
Exa Search
A Model Context Protocol (MCP) server lets AI assistants like Claude use the Exa AI Search API for web searches. This setup allows AI models to get real-time web information in a safe and controlled way.
Qdrant Server
This repository is an example of how to create a MCP server for Qdrant, a vector search engine.