Kortx MCP Server
A lightweight MCP server that provides coding copilots with access to GPT-5, Perplexity Sonar, and GPT Image models, offering tools for planning, debugging, research, and image generation.
README
Kortx
Quick Start • Documentation • Examples • Contributing
Kortx is a lightweight Model Context Protocol (MCP) server that gives coding copilots access to:
- OpenAI GPT-5 models (
gpt-5,gpt-5-mini,gpt-5-nano,gpt-5-codex,gpt-5.1-2025-11-13,gpt-5.1-codex) with automatic fallback. - Perplexity Sonar models for real-time research.
- GPT Image (
gpt-image-1) for visual generation and editing. - A default context gatherer that can ingest local file excerpts and optional connectors for Serena, MCP Knowledge Graph, and CCLSP MCP servers when those are running.
The server ships with structured logging, request rate limiting, response caching, and a hardened Docker build that runs as a non-root user. Transport is stdio-only today (HTTP is not implemented yet).
Highlights
- Seven consultation tools plus a batch runner covering planning, alternatives, copy improvement, debugging, expert consultation, research, and image workflows.
- File-based context enrichment out of the box, with pluggable MCP connectors ready for Serena/MCP Knowledge Graph/CCLSP when available.
- Perplexity integration (requires API key) for citation-backed answers and image search.
- Configurable OpenAI model, reasoning effort, verbosity, and retry behaviour.
- Built-in rate limiting, cache, and optional audit logging to avoid flooding upstream APIs.
- Dockerfile uses multi-stage build, npm audits, and runs as UID/GID 1001.
Quick Start
-
Set credentials (both keys are required by the current config):
export OPENAI_API_KEY=sk-your-openai-key export PERPLEXITY_API_KEY=pplx-your-perplexity-key -
Add Kortx to your MCP client. Example generic configuration:
{ "mcpServers": { "kortx-mcp": { "command": "npx", "args": ["-y", "@effatico/kortx-mcp@latest"], "env": { "OPENAI_API_KEY": "${OPENAI_API_KEY}", "PERPLEXITY_API_KEY": "${PERPLEXITY_API_KEY}" } } } }
Client-specific walkthroughs for Claude Code, VS Code Copilot, Cursor, and others are available under docs/integration.
Tool Overview
think-about-plan– Structured review of plans with strengths, risks, and follow-up questions.suggest-alternative– Generates viable alternatives with trade-offs and constraints.improve-copy– Refines technical copy with tone, clarity, and accessibility guidance.solve-problem– Debugging assistant covering root cause analysis and remediation steps.consult– Expert consultation with domain-specific personas (software-architecture, security, performance, database, devops, frontend, backend, ai-ml, general).search-content– Perplexity-backed web/academic/SEC search with citations and optional images.create-visual– GPT Image based generator/editor; search mode reuses Perplexity for visual inspiration.batch-consult– Runs multiple tool calls in parallel and returns aggregated results.
Every consultation tool accepts an optional preferredModel. The OpenAI client falls back through gpt-5.1-2025-11-13 → gpt-5.1-codex → gpt-5 → gpt-5-mini → gpt-5-nano automatically on failures.
Configuration Essentials
Minimum environment variables:
OPENAI_API_KEY– requiredPERPLEXITY_API_KEY– required (disable Perplexity integration by omitting thesearch-content/create-visualsearch mode if you do not have a key)
Common overrides (see .env.example for the full list):
# OpenAI behaviour
OPENAI_MODEL=gpt-5-mini # gpt-5 | gpt-5-mini | gpt-5-nano | gpt-5-codex | gpt-5.1-2025-11-13 | gpt-5.1-codex
OPENAI_REASONING_EFFORT=minimal
OPENAI_VERBOSITY=low
OPENAI_MAX_TOKENS=1024
# Safety & performance
ENABLE_RESPONSE_CACHE=true
CACHE_MAX_SIZE_MB=100
ENABLE_RATE_LIMITING=true
MAX_REQUESTS_PER_HOUR=100
# Context gathering
ENABLE_SERENA=false # flip to true when a Serena MCP server is reachable
ENABLE_MEMORY=false # same for MCP Knowledge Graph
ENABLE_CCLSP=false # same for cclsp
INCLUDE_FILE_CONTENT=true
Note The Serena, MCP Knowledge Graph, and CCLSP connectors are stubs that return data only when the corresponding MCP servers are running and reachable. Out of the box the gatherer uses on-disk file excerpts referenced in prompts.
Full reference: docs/configuration.md
Docker
Build and run locally:
docker build -t kortx-mcp .
docker run -i --rm \
-e OPENAI_API_KEY=$OPENAI_API_KEY \
-e PERPLEXITY_API_KEY=$PERPLEXITY_API_KEY \
kortx-mcp
The image:
- Uses Node.js 22 Alpine
- Performs
npm auditduring build - Copies only the compiled
build/artefacts and production deps - Runs as user
nodejs(UID 1001)
Compose example (docker-compose.yml) is included for longer-lived runs with volume mounts.
Development
git clone https://github.com/effatico/kortx-mcp.git
cd kortx-mcp
npm install
cp .env.example .env
npm run build
npm run dev
Useful scripts:
npm test/npm run test:coveragenpm run lint/npm run lint:fixnpm run format/npm run format:checknpm run inspector– launch MCP Inspector for interactive debugging
Node.js ≥ 22.12.0 and npm ≥ 9 are required.
Documentation
Contributing & Support
License
MIT © Effati Consulting AB. See LICENSE.
推荐服务器
Baidu Map
百度地图核心API现已全面兼容MCP协议,是国内首家兼容MCP协议的地图服务商。
Playwright MCP Server
一个模型上下文协议服务器,它使大型语言模型能够通过结构化的可访问性快照与网页进行交互,而无需视觉模型或屏幕截图。
Magic Component Platform (MCP)
一个由人工智能驱动的工具,可以从自然语言描述生成现代化的用户界面组件,并与流行的集成开发环境(IDE)集成,从而简化用户界面开发流程。
Audiense Insights MCP Server
通过模型上下文协议启用与 Audiense Insights 账户的交互,从而促进营销洞察和受众数据的提取和分析,包括人口统计信息、行为和影响者互动。
VeyraX
一个单一的 MCP 工具,连接你所有喜爱的工具:Gmail、日历以及其他 40 多个工具。
graphlit-mcp-server
模型上下文协议 (MCP) 服务器实现了 MCP 客户端与 Graphlit 服务之间的集成。 除了网络爬取之外,还可以将任何内容(从 Slack 到 Gmail 再到播客订阅源)导入到 Graphlit 项目中,然后从 MCP 客户端检索相关内容。
Kagi MCP Server
一个 MCP 服务器,集成了 Kagi 搜索功能和 Claude AI,使 Claude 能够在回答需要最新信息的问题时执行实时网络搜索。
e2b-mcp-server
使用 MCP 通过 e2b 运行代码。
Neon MCP Server
用于与 Neon 管理 API 和数据库交互的 MCP 服务器
Exa MCP Server
模型上下文协议(MCP)服务器允许像 Claude 这样的 AI 助手使用 Exa AI 搜索 API 进行网络搜索。这种设置允许 AI 模型以安全和受控的方式获取实时的网络信息。