Skip to main content
Glama

@kopern/mcp-server

npm version kopern MCP server License: MIT

Claude Code、Cursor、Windsurf、およびあらゆるMCPクライアント向けの32種類のAIエージェントツール。

ターミナルやIDEから直接、AIエージェントの構築、テスト、評価、デプロイが可能です。

クイックスタート

Claude Code

claude mcp add kopern -- npx -y @kopern/mcp-server

次に、APIキーを設定します:

export KOPERN_API_KEY=kpn_your_key_here

手動設定

.mcp.json(プロジェクト単位)または ~/.claude/settings.json(グローバル)に追加します:

{
  "mcpServers": {
    "kopern": {
      "command": "npx",
      "args": ["-y", "@kopern/mcp-server"],
      "env": {
        "KOPERN_API_KEY": "kpn_your_key_here"
      }
    }
  }
}

Cursor / Windsurf

MCP設定に追加します:

{
  "mcpServers": {
    "kopern": {
      "command": "npx",
      "args": ["-y", "@kopern/mcp-server"],
      "env": {
        "KOPERN_API_KEY": "kpn_your_key_here"
      }
    }
  }
}

ストリーミングHTTP(インストール不要)

クライアントがHTTP MCPトランスポートを直接サポートしている場合:

{
  "mcpServers": {
    "kopern": {
      "type": "http",
      "url": "https://kopern.ai/api/mcp/server",
      "headers": {
        "Authorization": "Bearer kpn_your_key_here"
      }
    }
  }
}

Related MCP server: Google Analytics MCP Server

APIキーの取得

  1. kopern.ai にアクセスしてサインインします

  2. Settings > API Keys に移動します

  3. Generate API Key をクリックします

  4. kpn_... で始まるキーをコピーします

キーには2種類あります:

  • ユーザーレベルキー — 30種類のプラットフォームツールすべてにアクセス可能(エージェントのCRUD、評価、テンプレートなど)

  • エージェントバインドキー — kopern_chat や kopern_agent_info を含む32種類のツールすべてにアクセス可能

ツール (32種類)

エージェント管理 (8ツール)

ツール

説明

kopern_create_agent

システムプロンプト、モデル、スキル、ツールを指定して新しいエージェントを作成

kopern_get_agent

エージェントの完全な設定とメタデータを取得

kopern_update_agent

エージェントのシステムプロンプト、モデル、ドメイン、組み込みツールを更新

kopern_delete_agent

エージェントを完全に削除

kopern_list_agents

スコアとバージョンを含む全エージェントを一覧表示

kopern_chat

エージェントにメッセージを送信(ツール呼び出しを含む)

kopern_agent_info

エージェントのメタデータを取得(エージェントバインドキーのみ)

kopern_deploy_template

37種類の既製テンプレート(BTP、法務、Eコマースなど)からデプロイ

評価と最適化 (6ツール)

ツール

説明

kopern_grade_prompt

インラインテストケースに基づいてシステムプロンプトを評価

kopern_create_grading_suite

再利用可能なテストスイートを作成

kopern_run_grading

評価スイートを実行し、スコアと改善メモを取得

kopern_run_autoresearch

AutoTune — 反復的なプロンプト最適化(改善メモを使用)

kopern_get_grading_results

評価実行の詳細な結果と改善メモを取得

kopern_list_grading_runs

スイートのスコア履歴を一覧表示

チームとパイプライン (4ツール)

ツール

説明

kopern_create_team

マルチエージェントチームを作成(並列、逐次、条件付き)

kopern_run_team

プロンプトを使用してチームを実行

kopern_create_pipeline

入力マッピングを備えたマルチステップパイプラインを作成

kopern_run_pipeline

パイプラインを逐次実行

コネクタ (7ツール)

ツール

説明

kopern_connect_widget

埋め込み可能なチャットウィジェットをデプロイ

kopern_connect_telegram

Telegramボットを接続

kopern_connect_whatsapp

WhatsApp Businessを接続

kopern_connect_slack

Slackワークスペースに接続

kopern_connect_webhook

インバウンド/アウトバウンドWebhookを設定

kopern_connect_email

GmailまたはOutlookを接続

kopern_connect_calendar

GoogleまたはMicrosoftカレンダーを接続

セッションとメモリ (3ツール)

ツール

説明

kopern_list_sessions

メトリクスを含む会話セッションを一覧表示

kopern_get_session

セッションの詳細(イベント、ツール呼び出し、トークン)を取得

kopern_manage_memory

エージェントメモリのCRUD(記憶、想起、忘却、一覧)

ユーティリティ (4ツール)

ツール

説明

kopern_list_templates

37種類のテンプレートを閲覧(汎用28 + 業種別9)

kopern_compliance_report

EU AI法コンプライアンスレポートを生成

kopern_get_usage

トークン使用量、コスト、エージェントごとの内訳

kopern_export_agent

エージェントをポータブルなJSONとしてエクスポート

kopern_import_agent

JSONエクスポートからエージェントをインポート

例

ターミナルからエージェントを作成

> Use kopern_create_agent to create a customer support agent for my SaaS product

プロンプトを評価

> Use kopern_grade_prompt to test my system prompt with these cases:
  - "What's your refund policy?" should mention "30-day guarantee"
  - "Can I cancel?" should be empathetic and provide steps

テンプレートをデプロイ

> Use kopern_list_templates to show me business templates, then deploy the "restaurant" one

評価と改善

> Run kopern_run_grading on my agent — it will return scores AND improvement notes.
  Then run kopern_run_autoresearch to optimize using those suggestions automatically.

完全なワークフロー

> Create an agent, add a grading suite with 5 test cases, run grading,
  then run autoresearch to optimize the prompt to 90%+ score

環境変数

変数

必須

デフォルト

説明

KOPERN_API_KEY

はい

—

Kopern APIキー (kpn_...)

KOPERN_URL

いいえ

https://kopern.ai/api/mcp/server

カスタムエンドポイントURL

アーキテクチャ

このパッケージは軽量なstdio-to-HTTPブリッジです。MCPクライアントからstdin経由でJSON-RPCメッセージを受信し、KopernのストリーミングHTTPエンドポイントに転送して、stdout経由で応答を返します。

Claude Code ──stdin──> @kopern/mcp-server ──HTTP──> kopern.ai/api/mcp/server
            <──stdout──                   <──JSON──

Kopernサーバーは、すべてのMCPプロトコルメソッド(initialize、tools/list、tools/call、ping)を処理します。依存関係はゼロで、Node.js 18+と fetch のみを使用します。

リンク

ライセンス

MIT

Available Tools

31 tools
kopern_compliance_reportA
Read-only

Generate an EU AI Act compliance report for an agent. Checks Art. 6 (risk), Art. 12 (audit trail), Art. 14 (human oversight), Art. 52 (transparency). No LLM cost.

Inputs: agent_id (required).

kopern_connect_calendarA

Connect an agent to Google Calendar or Microsoft Calendar for scheduling tools (list_events, create_event, etc.). Requires OAuth in browser. Enables the service_calendar builtin tool.

Inputs: agent_id (required), provider (required).

kopern_connect_emailA

Connect an agent to Gmail or Outlook for email tools (read_emails, send_email, reply_email). Requires OAuth in browser. Enables the service_email builtin tool.

Inputs: agent_id (required), provider (required).

kopern_connect_slackA
Read-only

Connect an agent to Slack. Returns an OAuth install URL to authorize in your browser (Slack requires interactive OAuth).

Inputs: agent_id (required).

kopern_connect_telegramA
Idempotent

Connect an agent to Telegram via a bot. Requires a bot token from @BotFather.

Inputs: agent_id (required), bot_token (required).

kopern_connect_webhookA

Create an inbound or outbound webhook for an agent. Inbound: receive messages via HTTP POST. Outbound: send events to your URL (n8n, Zapier, Make compatible).

Inputs: agent_id (required), name, type, events, +2 more.

kopern_connect_whatsappA
Idempotent

Connect an agent to WhatsApp Business. Requires Meta Cloud API credentials.

Inputs: agent_id (required), access_token (required), phone_number_id (required), phone_number, +1 more.

kopern_connect_widgetA
Idempotent

Enable the embeddable chat widget for an agent. Returns the embed code for your website.

Inputs: agent_id (required), position, allowed_origins, welcome_message.

kopern_create_agentA

Create a new AI agent with a system prompt, model, and optional skills. Returns the agentId.

Inputs: name (required), system_prompt (required), model, domain, +4 more.

kopern_create_grading_suiteA

Create a grading suite with test cases on an agent. Each case has an input prompt and expected behavior for evaluation.

Inputs: cases (required), agent_id (required), name, description.

kopern_create_pipelineA

Create a multi-step pipeline on an agent. Steps chain agents sequentially with configurable input mapping.

Inputs: name (required), steps (required), agent_id (required), description.

kopern_create_teamA

Create a multi-agent team. Agents work together in parallel, sequential (chain), or conditional (router) mode.

Inputs: name (required), agents (required), description, execution_mode.

kopern_delete_agentA
Destructive

Permanently delete an agent and all its data (skills, tools, grading suites, sessions, connectors).

Inputs: agent_id (required).

kopern_deploy_templateA

Deploy an agent from a template (28 general + 9 vertical). Creates agent + skills + tools + grading suite in one shot. Use kopern_list_templates to see available slugs.

Inputs: slug (required), answers.

kopern_export_agentA
Read-only

Export an agent as a portable JSON object (agent config, skills, tools, extensions, grading suites with cases). Use kopern_import_agent to re-import. No LLM cost.

Inputs: agent_id (required).

kopern_get_agentA
Read-only

Get full details of an agent: system prompt, model, skills count, tools count, grading suites count.

Inputs: agent_id (required).

kopern_get_grading_resultsA
Read-only

Get detailed results of a grading run: per-case scores, agent outputs, criteria evaluations, improvement notes. No LLM cost.

Inputs: run_id (required), agent_id (required), suite_id (required).

kopern_get_sessionA
Read-only

Get full details of a session including message events, tool calls, and metrics. No LLM cost.

Inputs: agent_id (required), session_id (required).

kopern_get_usageA
Read-only

Get token usage and cost metrics. Shows input/output tokens, cost, grading runs, and per-agent breakdown. No LLM cost.

Inputs: year_month, include_history.

kopern_grade_promptA
Read-only

Grade a system prompt against inline test cases. Uses 6 criteria types (output_match, schema_validation, tool_usage, safety_check, custom_script, llm_judge). Returns score 0-1. Uses YOUR API keys.

Inputs: test_cases (required), system_prompt (required), model, provider.

kopern_import_agentA

Import an agent from a Kopern export JSON. Creates a new agent with all skills, tools, extensions, and grading suites. No LLM cost.

Inputs: data (required).

kopern_list_agentsA
Read-only

List all your Kopern agents (name, description, model, domain, grading score). No LLM cost.

Inputs: no named parameters.

kopern_list_grading_runsA
Read-only

List grading runs for a suite. Shows score history, pass rates, and versions over time. No LLM cost.

Inputs: agent_id (required), suite_id (required).

kopern_list_sessionsA
Read-only

List conversation sessions for an agent. Shows purpose, source, token usage, cost, timestamps. No LLM cost.

Inputs: agent_id (required), limit.

kopern_list_templatesA
Read-only

List all 37 AI agent templates (28 general + 9 vertical/business). Returns slug, title, domain, tagline. No LLM cost.

Inputs: category.

kopern_manage_memoryA

Manage an agent's persistent memory. Actions: remember (save key-value), recall (search by query), forget (delete by key), list (all memories). No LLM cost.

Inputs: action (required), agent_id (required), key, query, +2 more.

kopern_run_autoresearchA

Run AutoTune optimization on an agent. Iteratively mutates the system prompt, re-grades, and keeps improvements. Returns the optimized score. Uses YOUR API keys. Can take several minutes.

Inputs: agent_id (required), suite_id (required), target_score, max_iterations, +1 more.

kopern_run_gradingA

Run a grading suite on an agent. Executes all test cases, evaluates with configured criteria, returns detailed scores. Uses YOUR API keys.

Inputs: agent_id (required), suite_id (required).

kopern_run_pipelineA

Execute a pipeline on a prompt. Steps run sequentially, each feeding its output to the next. Uses YOUR API keys.

Inputs: prompt (required), agent_id (required), pipeline_id (required).

kopern_run_teamA

Execute a multi-agent team on a prompt. Returns each agent's output and the final combined result. Uses YOUR API keys.

Inputs: prompt (required), team_id (required).

kopern_update_agentA
Idempotent

Update any part of an agent: config, skills, tools, or extensions. Use add/remove arrays for granular control over subcollections.

Inputs: agent_id (required), name, model, domain, +10 more.

Tool Schema Changelog

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

Loading tool schema changelog…

    TDQS

    A3.9/5.0

    Scored across 31 tools

    Disambiguation5/5

    Each tool has a clearly distinct purpose, from agent lifecycle management to external service connections and evaluation. Even similar tools like kopern_create_agent and kopern_deploy_template are differentiated by the template-based bulk creation. No significant overlap.

    Naming Consistency5/5

    All tools follow the consistent pattern 'kopern_verb_noun' in lowercase snake_case. Verbs like connect, create, delete, get, list, run, update are used predictably, making the toolset easy to navigate.

    Tool Count4/5

    With 31 tools, the server is on the higher end but justifiably so due to the broad scope covering agent creation, connections, grading, pipelines, teams, and more. The count is appropriate for the comprehensive feature set without feeling bloated.

    Completeness5/5

    The tool surface appears complete for an agent management server: full CRUD for agents, integration with multiple external services, grading, optimization, memory management, and team/pipeline execution. No obvious missing operations for the stated domain.

    Maintenance

    ActivityInactive
    ResponsivenessNo recent community issues

    Related MCP Connectors

    Related MCP Servers