PluginBench
MCP Server
Active
AGPL-3.0

io.github.agentmark-ai/mcp-server MCP Server

io.github.agentmark-ai/mcp-server

Drive the AgentMark API — traces, datasets, scores, deployments — from Claude Code, Cursor, or any MCP client.

What is the io.github.agentmark-ai/mcp-server MCP server?

The io.github.agentmark-ai/mcp-server MCP server exposes the AgentMark API to MCP clients like Claude Code and Cursor, letting them inspect AgentMark traces and drive AgentMark Cloud resources such as apps, experiments, metrics, and deployments. It is part of the open-source AgentMark platform for building and evaluating git-native AI agent prompts.

This MCP server (published as @agentmark-ai/mcp-server) gives AI coding agents direct access to the AgentMark API, so they can inspect traces from LLM calls and manage AgentMark Cloud resources — apps, experiments, datasets, evaluation metrics, and deployments — without leaving Claude Code, Cursor, or another MCP client. It fits into AgentMark's broader git-native workflow, where prompts (.prompt.mdx files) and datasets (JSONL) live in your repo, evals run in CI, and traces are emitted via OpenTelemetry to a local dev UI or AgentMark Cloud.

How to install io.github.agentmark-ai/mcp-server

Copy-paste configuration for popular MCP clients.

transport: stdio
Config generated by PluginBench — verify against the source before use.
Environment / auth
  • AGENTMARK_API_KEY
    secret

    App-scoped API key for CI/automation. Optional — you can instead authenticate with the session bearer written by `agentmark login`.

  • AGENTMARK_API_URL

    AgentMark gateway base URL.

Claude Desktop
~/Library/Application Support/Claude/claude_desktop_config.json
{
  "mcpServers": {
    "mcp-server": {
      "command": "npx",
      "args": [
        "-y",
        "@agentmark-ai/mcp-server"
      ],
      "env": {
        "AGENTMARK_API_KEY": "<YOUR_AGENTMARK_API_KEY>",
        "AGENTMARK_API_URL": "<YOUR_AGENTMARK_API_URL>"
      }
    }
  }
}
Cursor
~/.cursor/mcp.json
{
  "mcpServers": {
    "mcp-server": {
      "command": "npx",
      "args": [
        "-y",
        "@agentmark-ai/mcp-server"
      ],
      "env": {
        "AGENTMARK_API_KEY": "<YOUR_AGENTMARK_API_KEY>",
        "AGENTMARK_API_URL": "<YOUR_AGENTMARK_API_URL>"
      }
    }
  }
}
Windsurf
~/.codeium/windsurf/mcp_config.json
{
  "mcpServers": {
    "mcp-server": {
      "command": "npx",
      "args": [
        "-y",
        "@agentmark-ai/mcp-server"
      ],
      "env": {
        "AGENTMARK_API_KEY": "<YOUR_AGENTMARK_API_KEY>",
        "AGENTMARK_API_URL": "<YOUR_AGENTMARK_API_URL>"
      }
    }
  }
}
VS Code
.vscode/mcp.json
{
  "servers": {
    "mcp-server": {
      "type": "stdio",
      "command": "npx",
      "args": [
        "-y",
        "@agentmark-ai/mcp-server"
      ],
      "env": {
        "AGENTMARK_API_KEY": "<YOUR_AGENTMARK_API_KEY>",
        "AGENTMARK_API_URL": "<YOUR_AGENTMARK_API_URL>"
      }
    }
  }
}
Claude Code
claude mcp add mcp-server --env AGENTMARK_API_KEY=<YOUR_AGENTMARK_API_KEY> --env AGENTMARK_API_URL=<YOUR_AGENTMARK_API_URL> -- npx -y @agentmark-ai/mcp-server

Use cases

  • Inspect OpenTelemetry traces of LLM calls generated by AgentMark prompts
  • Manage AgentMark Cloud apps and deployments from an MCP client
  • Run and review experiments against datasets without leaving Claude Code or Cursor
  • Check evaluation metrics and scores for prompt performance

io.github.agentmark-ai/mcp-server MCP server FAQ

What does the AgentMark MCP server do?

It exposes the full AgentMark API — traces, datasets, scores, and deployments — to MCP clients such as Claude Code and Cursor, so you can inspect AgentMark traces and drive AgentMark Cloud (apps, experiments, metrics, deployments) directly from your AI coding assistant.

Is the AgentMark MCP server free?

The server itself is part of the open-source, self-hosted AgentMark project (AGPL-3.0). Driving AgentMark Cloud features through it may require an AgentMark Cloud account, which has a free tier covering most small teams.

How do I install the AgentMark MCP server?

Install it via npm as @agentmark-ai/mcp-server, or scaffold a full AgentMark project with `npm create agentmark@latest` which includes the CLI, SDK, and MCP server setup. Configure your MCP client (Claude Code, Cursor, etc.) to connect to the installed server.

Does the AgentMark MCP server require authentication?

To interact with AgentMark Cloud resources like traces, experiments, and deployments, you need an AgentMark account/API credentials; self-hosted local usage (e.g. via `agentmark dev`) does not require a cloud dependency.

What can I do with this server that I can't do with the AgentMark CLI alone?

The MCP server lets AI agents like Claude Code or Cursor directly query and manage AgentMark data conversationally — inspecting traces, running experiments, and managing deployments — instead of requiring manual CLI commands.

README (reference)

Source of truth, from the repository.

<h1 align="center">AgentMark</h1> <p align="center"> <a href="https://github.com/agentmark-ai/agentmark"> <img src="https://raw.githubusercontent.com/agentmark-ai/agentmark/main/assets/agentmark.png" alt="AgentMark git-native AI agent platform" width="200"> </a> </p> <p align="center"> <strong>Git-native AI agents.</strong><br> <sub>Prompts and datasets in your repo. Evals in CI. Traces in your OTEL backend.</sub> </p> <p align="center"> <a href="https://www.agentmark.co">Homepage</a> &middot; <a href="https://docs.agentmark.co">Docs</a> &middot; <a href="https://app.agentmark.co">Cloud</a> </p> <p align="center"> <a href="https://www.npmjs.com/package/@agentmark-ai/cli"><img src="https://img.shields.io/npm/v/@agentmark-ai/cli.svg?label=%40agentmark-ai%2Fcli" alt="npm version"></a> <a href="./LICENSE.md"><img src="https://img.shields.io/badge/license-AGPL--3.0-blue.svg" alt="License: AGPL-3.0"></a> <a href="https://github.com/agentmark-ai/agentmark/stargazers"><img src="https://img.shields.io/github/stars/agentmark-ai/agentmark.svg?style=social" alt="GitHub stars"></a> </p>

AgentMark is an open-source platform for building reliable AI agents. Define prompts in Markdown, run them with the SDK you already use, evaluate against datasets locally or in CI, and trace every call with OpenTelemetry.

  • Prompt management. Prompts are .prompt.mdx files with type-safe inputs, tools, structured outputs, conditionals, loops, and reusable components. They live in your repo, get reviewed in PRs, and roll back with git revert.
  • Datasets. JSONL files in your repo. Each row is a line, so git diffs show exactly which test cases changed.
  • Evaluations. Run prompts over datasets with built-in or custom evaluators. Use the CLI or call the SDK from your own pipelines. Block merges on regressions, the way tests do.
  • Tracing. Every LLM call emits an OpenTelemetry span. Inspect traces in the local dev UI, or forward them to AgentMark Cloud (or any OTEL backend) for search, dashboards, and alerts in production.
  • Type safety. Auto-generated TypeScript types from your prompts. JSON Schema validation in your editor.

Quick start

Requires: Node.js 18 or newer.

# Scaffold a new project (interactive: picks your language)
npm create agentmark@latest my-agents
cd my-agents

# Start the dev server (API + trace UI + hot reload)
agentmark dev

# Run a single prompt
agentmark run-prompt agentmark/my-prompt.prompt.mdx

# Run an experiment against a dataset
agentmark run-experiment agentmark/my-prompt.prompt.mdx

About five minutes from npm create to a traced prompt running locally (assuming you have an LLM API key set up).

What a prompt looks like

---
name: customer-support-agent
text_config:
  model_name: anthropic/claude-sonnet-4-20250514
  max_calls: 2
  tools:
    - search_knowledgebase
test_settings:
  props:
    customer_question: "How long does shipping take?"
input_schema:
  type: object
  properties:
    customer_question:
      type: string
  required: [customer_question]
---

<System>
You are a helpful customer service agent. Use the search_knowledgebase tool
when customers ask about shipping, warranty, or returns.
</System>

<User>{props.customer_question}</User>

The frontmatter declares which tools the prompt may call; the implementations live in your code, resolved where you call the model. See Tools and agents.

Run it:

agentmark run-prompt customer-support.prompt.mdx

The prompt is version-controlled, type-checked, and traced. The same file works with any SDK — the Vercel AI SDK, the raw OpenAI or Anthropic client, Pydantic AI, or your own bespoke client. AgentMark renders the prompt to a neutral { messages, ...config } shape; your SDK makes the call.

Why git-native

Most AI tooling treats the dashboard as the primary workspace. Prompts are rows in a database. Edits happen in a browser. Version history is whatever audit log the vendor decided to expose.

That's fine for prototyping. It stops working as soon as you do anything an engineering team would normally do with code. Branch off main to try a variant. Review a prompt change in a PR. Run evals in CI before a merge. Look up who changed the retrieval logic last quarter. Roll back when something breaks.

AgentMark treats prompts, datasets, and evals like the rest of your code. Prompts are MDX files. Datasets are JSONL. Evals are functions you import. Branches, PRs, git log, git revert: they all work the same way they do for anything else in your repo.

And when you decide to leave, your prompts are already in your repo and your traces are already in whatever OTEL backend you point them at. No export job, no vendor migration.

Want to try it on a team? Start free on AgentMark Cloud →  |  Read the docs →

Features

FeatureDescription
Multimodal generationGenerate text, structured objects, images, and speech from a single prompt file.
Tools and agentsDeclare tools by name in frontmatter; your code owns the implementations. Build agentic loops with max_calls.
Structured outputType-safe JSON output via JSON Schema definitions.
Datasets and evalsRun prompts over JSONL datasets with built-in or custom evaluators.
TracingOpenTelemetry-native tracing for every LLM call, local and cloud.
Type safetyAuto-generated TypeScript types from your prompts. JSON Schema validation in your IDE.
Reusable componentsImport and compose prompt fragments across files.
Conditionals and loopsDynamic prompts with <If>, <ForEach>, props, and filter functions.
File attachmentsAttach images and documents for vision and document tasks.
MCP serversCall Model Context Protocol tools directly from prompts.
MCP serverDrive the full AgentMark API — traces, datasets, scores, deployments — from Claude Code, Cursor, or any MCP client.

Bring your own SDK

AgentMark doesn't call LLM APIs directly, and there are no SDK-specific adapters to install. Prompts render to a neutral { messages, ...config } shape that you hand to whatever SDK you already use — so you keep your existing client, retry logic, and auth:

import { createAgentMark } from "@agentmark-ai/prompt-core";

const agentmark = createAgentMark({ loader });
const prompt = await agentmark.loadTextPrompt("customer-support.prompt.mdx");
const { messages, ...config } = await prompt.format({ props });
// hand `messages` + `config` to your SDK of choice

See the bring-your-own-SDK guide for the full integration path, including the createExecutor builder that lets AgentMark Cloud and agentmark dev run prompts through your SDK.

Language support

LanguageStatus
TypeScript / JavaScriptSupported
PythonSupported
OthersOpen an issue

Examples

See the examples/ directory for complete, runnable projects:

Packages

PackageDescription
@agentmark-ai/cliCLI for local development, prompt running, experiments, and building.
@agentmark-ai/sdkSDK for tracing and cloud platform integration.
@agentmark-ai/prompt-coreCore prompt parsing and formatting engine.
@agentmark-ai/templatedxMDX-based template engine with JSX components, conditionals, and loops.
@agentmark-ai/mcp-serverMCP server exposing the AgentMark API to Claude Code, Cursor, and other MCP clients.
@agentmark-ai/model-registryCentralized LLM model metadata and pricing.
create-agentmarkProject scaffolding tool.

Version compatibility

Packages are versioned independently. The pairings below are what each release line is tested against — mixing outside them can fail at runtime, because @agentmark-ai/sdk imports @agentmark-ai/prompt-core lazily (a mismatch surfaces when runExperiment/the webhook runner first executes, not at install time):

@agentmark-ai/sdk@agentmark-ai/prompt-core@agentmark-ai/cli
2.x≥1.0≥0.21

The loaders (@agentmark-ai/loader-api, @agentmark-ai/loader-file) are re-export shims of @agentmark-ai/prompt-core/loader-api / /loader-file — prefer the prompt-core subpaths in new code.

Self-host vs Cloud

AgentMark is open-core. The full development loop runs locally with no cloud dependency.

  • Self-hosted (this repo, AGPL-3.0). CLI, SDK, prompt engine, local trace UI (agentmark dev), eval runner, MCP server. Ship to production using only what's in this repo, and forward traces to any OpenTelemetry backend.
  • AgentMark Cloud (hosted, proprietary). The team layer on top: persistent trace storage, dashboards, collaborative prompt editing, annotations, alerts, and two-way Git sync. Free tier covers most small teams.

If you only need observability and you already have an OTEL backend, the self-hosted setup is enough. Cloud is for teams that want the dashboard, collaboration, and managed trace storage.

AgentMark Cloud

AgentMark Cloud adds the team layer:

  • Persistent trace storage with search, filtering, and saved views
  • Dashboards for cost, latency, and quality metrics
  • Collaborative prompt editing with version history
  • Annotations and human evaluation workflows
  • Alerts for quality regressions, cost spikes, and latency
  • Two-way Git sync. Edit prompts in the dashboard, changes land as commits in your repo (and vice versa).

The free tier covers small teams. Try Cloud free →

Contributing

We welcome contributions. See CONTRIBUTING.md.

Community

License

GNU Affero General Public License v3.0 or later

Related MCP servers

Give your AI agent stealth web scraping with Cloudflare bypass and CSS selection, powered by Scrapling.

67k
Python
BSD-3-Clause
View repository →

Give your AI coding agent full control of a live Chrome browser for automation, debugging, and performance analysis.

45k
TypeScript
Apache-2.0
View repository →

Let AI agents manage your Puter files, websites, and serverless workers over MCP.

43k
TypeScript
AGPL-3.0
View repository →

Browser automation for AI agents via MCP, powering ByteDance's Agent TARS hybrid GUI/DOM browser control.

37k
TypeScript
Apache-2.0
View repository →

Run arbitrary shell commands from an MCP-connected AI agent.

37k
TypeScript
Apache-2.0
View repository →

Filesystem access MCP server from ByteDance's UI-TARS/Agent TARS ecosystem.

37k
TypeScript
Apache-2.0
View repository →