MCP server for AI agent observability and knowledge

MCP server for AI agent observability and knowledge

mcpolly•bymcpolly

A self-hostable MCP server that lets AI agents report status, errors, and activity in real time, with a web dashboard for monitoring and semantic search over indexed documents.

License: Not specified•Runtime: Awaiting documentation review•Category: developer tools

WHAT IT DOES

  • •Exposes MCP tools for registering agents, posting status updates and errors, listing agents, and retrieving an agent's activity timeline.
  • •Provides MCP tools to index PRD and design documents as embeddings and search them semantically via Ollama-generated vectors.
  • •Sends configurable webhook alerts to Discord, Slack, or generic endpoints when agent statuses change.
  • •Offers a web dashboard with an activity feed, error feed, health summary, and a global command bar for searching agents, errors, and knowledge.

BEST FOR

  • •Teams running AI coding agents that want real-time visibility into agent progress and errors across projects.
  • •Users who want local semantic search over product documents without cloud API keys.

ABOUT MCPOLLY

MCP server for AI agent observability and knowledge is cataloged as an MCP server attributed to mcpolly. A self-hostable MCP server that lets AI agents report status, errors, and activity in real time, with a web dashboard for monitoring and semantic search over indexed documents. It is categorized under developer tools. See the capability inspector for recorded interfaces and their independent review status; consult upstream documentation for the current interface.

HOW TO INSTALL

Installation configuration is not reviewed. No executable setup is offered for this entry; inspect the source repository before proceeding.

LICENSE

Catalog license label: Not specified. Check the source repository's current license and terms before using, modifying or distributing this software.

Capability inspector

Capability definitions are not reviewed. Unreviewed imports are not exposed as trusted interfaces.

Tools (0)

No reviewed records to display. This does not establish that upstream lacks this capability.

Resources (0)

No reviewed records to display. This does not establish that upstream lacks this capability.

Prompts (0)

No reviewed records to display. This does not establish that upstream lacks this capability.

NEWSLETTER - COMING LATER

Newsletter subscriptions are not open yet

Email delivery is not connected. This page does not collect email addresses or create subscriptions.

Browse the registry for current listings instead.

Community Reviews

Coming later

Reviews for MCP server for AI agent observability and knowledge are not available yet

Review publishing and storage are not connected. This page does not collect or publish ratings or comments, including after sign-in.

FREQUENTLY ASKED QUESTIONS

What transport does the MCPolly MCP server use?

It uses MCP Streamable HTTP at the `/mcp` endpoint, with JSON-RPC over HTTP and SSE streaming; an optional stdio bridge binary exists for platforms without HTTP transport.

Does MCPolly require a cloud API for embeddings?

No. Embeddings are generated locally via Ollama using the all-MiniLM model, and vector embeddings are optional but required for semantic search and context-aware agent spawning.

Upstream README

View this exact version on GitHub

README.md · d1b7f03a7b1e · Fetched 2026-11-13 10:47:19 UTC

Original upstream text, without AI rewriting. Scripts, forms and unsafe links are filtered for safety.

Showing the last retrieved documentation snapshot; check the source for current changes.

MCPolly

Agent-native status, observability, and knowledge platform for AI agents. MCPolly is an MCP server that lets AI agents report their progress, errors, and state in real time — and gives humans a unified web dashboard to monitor everything. Agents can also index and semantically search product documents to stay aligned.

Built with Rust, Axum, SQLite, and HTMX. Designed to self-host on minimal hardware.

Architecture

┌─────────────────┐   MCP Streamable HTTP   ┌──────────────────┐
│  AI Agent       │◄───────────────────────►│  MCPolly Server  │
│  (Cursor, etc.) │   JSON-RPC / SSE        │  (Axum + SQLite) │
└─────────────────┘   Bearer auth           └──────┬───────────┘
                                                   │
                                          ┌────────▼────────┐
                                          │   Web Dashboard  │
                                          │   (HTMX UI)      │
                                          └─────────────────┘
                                                   │
                                          ┌────────▼────────┐
                                          │  Ollama (local)  │
                                          │  all-MiniLM      │
                                          └─────────────────┘

MCPolly exposes a /mcp endpoint that speaks the MCP Streamable HTTP protocol (JSON-RPC over HTTP with SSE streaming). Agent platforms connect directly — no subprocess binary needed.

  • MCPolly Server — The Axum HTTP server that stores agent data in SQLite, serves the web UI, evaluates alert rules, manages vector embeddings, and hosts the MCP endpoint.
  • Ollama — Local LLM server used for generating vector embeddings with the all-MiniLM model (384 dimensions).
  • mcpolly_mcp (optional) — A lightweight stdio binary for platforms that don't support HTTP MCP transport. It bridges stdio to the MCPolly HTTP API.

Features

Agent Observability

  • Agent registration and status tracking (starting, running, warning, error, completed, offline, paused, errored, stopping, stopped)
  • Real-time activity feed with color-coded entries
  • Global error feed across all agents
  • Webhook alerts (Discord, Slack, generic) with retry logic
  • Configurable alerts for any status change — error, completed, running, starting, warning, paused, stopped, offline, or a catch-all "any status" rule
  • Silent agent detection (background checker)

Web Dashboard

  • Dark mode with system preference detection
  • First-run setup wizard with auto-login and MCP configuration snippets
  • Instance reset from the login page (revokes all keys, generates a new one, re-enters setup wizard)
  • Health strip summary (total/running/errored/offline agent counts)
  • Status filter pills for quick agent filtering
  • Agent detail page with tabbed content (Activity, Errors, Info)
  • Global command bar (Cmd+K) searching agents, errors, and knowledge
  • Alert rules management with notification history
  • Knowledge page with semantic search UI
  • API key management
  • Settings page with server info and session management
  • 10-second HTMX polling for live updates

Knowledge Layer (Vector Embeddings)

  • Index PRD, design, and custom documents as vector embeddings
  • Semantic search across all indexed content via MCP tools and web UI
  • Spawn product manager and product designer agents with relevant context
  • Powered by sqlite-vec (in-process) and Ollama (local, no cloud API keys needed)

Installation

Detects your OS and architecture, downloads the correct binaries from GitHub Releases:

curl -fsSL https://raw.githubusercontent.com/MCPolly/mcpolly/main/install.sh | bash

Customize with environment variables:

# Install only the MCP stdio bridge
MCPOLLY_BINARY=mcp curl -fsSL https://raw.githubusercontent.com/MCPolly/mcpolly/main/install.sh | bash

# Install to a custom directory
MCPOLLY_INSTALL_DIR=/usr/local/bin curl -fsSL https://raw.githubusercontent.com/MCPolly/mcpolly/main/install.sh | bash

# Install a specific version
MCPOLLY_VERSION=v0.2.0 curl -fsSL https://raw.githubusercontent.com/MCPolly/mcpolly/main/install.sh | bash

Supported platforms: Linux (x86_64, aarch64, armv7), macOS (x86_64, Apple Silicon), Windows (x86_64).

Option 2: Build from Source

git clone https://github.com/MCPolly/mcpolly.git
cd mcpolly
cargo build --release

Binaries will be at:

  • target/release/mcpolly (HTTP server)
  • target/release/mcpolly_mcp (MCP stdio bridge)

Option 3: Cargo Install

cargo install mcpolly --bin mcpolly_mcp

Setup

1. Install Ollama (for vector embeddings)

# Install Ollama (https://ollama.ai)
curl -fsSL https://ollama.ai/install.sh | sh

# Pull the embedding model
ollama pull all-minilm

# Ollama runs on http://localhost:11434 by default

Vector embeddings are optional — MCPolly works without Ollama, but semantic search and agent spawning with context will be unavailable.

2. Start the MCPolly Server

PORT=3000 RUST_LOG=mcpolly=info ./mcpolly

The SQLite database (mcpolly.db) is created automatically on first run. The web dashboard is available at http://localhost:3000.

3. Get Your API Key

On first run, MCPolly generates a default API key and opens the setup wizard in your browser. The wizard displays the key and provides ready-to-copy MCP configuration snippets. The key is also printed to the server terminal:

╔═══════════════════════════════════════════════════════════════╗
║  DEFAULT API KEY (save this — it will not be shown again!)   ║
║                                                               ║
║  mcp_xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx          ║
║                                                               ║
╚═══════════════════════════════════════════════════════════════╝

You can create additional keys through the web UI's Settings page (http://localhost:3000/settings).

Forgot your API key? Click "Forgot API key? Reset your instance" on the login page. This revokes all existing keys, generates a new one, and takes you back through the setup wizard.

4. Configure the MCP Client

Add MCPolly to your AI agent platform's MCP configuration.

Edit ~/.cursor/mcp.json:

{
  "mcpServers": {
    "mcpolly": {
      "url": "http://localhost:3000/mcp",
      "headers": {
        "Authorization": "Bearer your-api-key-here"
      }
    }
  }
}

This connects directly to the MCPolly server's MCP endpoint over HTTP. No binary to install.

Cursor (stdio — alternative)

If your platform doesn't support HTTP MCP transport, use the stdio binary:

{
  "mcpServers": {
    "mcpolly": {
      "command": "/path/to/mcpolly_mcp",
      "env": {
        "MCPOLLY_URL": "http://localhost:3000",
        "MCPOLLY_API_KEY": "your-api-key-here"
      }
    }
  }
}

Claude Code

MCPolly connects to Claude Code via HTTP transport. There are two ways to configure it.

Option A: CLI (user-level, available in all projects)

claude mcp add mcpolly --transport http http://localhost:3000/mcp \
  --header "Authorization: Bearer your-api-key-here"

Option B: Project-level .mcp.json (checked into the repo)

Create .mcp.json in your project root:

{
  "mcpServers": {
    "mcpolly": {
      "type": "http",
      "url": "http://localhost:3000/mcp",
      "headers": {
        "Authorization": "Bearer your-api-key-here"
      }
    }
  }
}

This makes MCPolly available to every Claude Code session in that project automatically — no per-user setup required.

Auto-approve MCPolly tools (no permission prompts):

Add mcp__mcpolly__* to the allow list in your project or user settings:

# Project-level (.claude/settings.json — shared with team)
# or user-level (~/.claude/settings.json — personal)
{
  "permissions": {
    "allow": [
      "mcp__mcpolly__*"
    ]
  }
}

This lets Claude Code call all MCPolly tools in the background without asking for confirmation each time.

Verify the connection:

claude mcp list

MCPolly should appear with status connected. You can also test from within a Claude Code session:

"Use mcpolly to list all registered agents."

Automatic agent integration via CLAUDE.md

To have Claude Code automatically register itself and post status updates on every task, add the following to your project's CLAUDE.md:

## Agent Observability

At the start of every task:
1. Call `register_agent` with your agent name and a brief description.
2. Call `post_status` with state `starting` and a summary of the task.

As you work, call `post_status` at major milestones (state: `running`).

On completion, call `post_status` with state `completed`.

If you encounter an unrecoverable error, call `post_error` before stopping.

5. Enable MCPolly for All Agent Sessions (Global Setup)

To have every Claude Code session — across all projects — automatically register and report status to MCPolly, configure both the MCP server and agent instructions globally.

Step 1: Add MCPolly as a global MCP server

claude mcp add mcpolly --transport http http://localhost:3000/mcp \
  --header "Authorization: Bearer your-api-key-here"

This makes the MCPolly MCP tools available in every Claude Code session without per-project .mcp.json files.

Step 2: Auto-approve MCPolly tools globally

Edit ~/.claude/settings.json (create it if it doesn't exist):

{
  "permissions": {
    "allow": [
      "mcp__mcpolly__*"
    ]
  }
}

This prevents Claude Code from prompting for permission each time it calls a MCPolly tool.

Step 3: Add agent instructions to your global CLAUDE.md

Append the contents of GLOBAL_CLAUDE.md to ~/.claude/CLAUDE.md (create it if it doesn't exist):

cat /path/to/mcpolly/GLOBAL_CLAUDE.md >> ~/.claude/CLAUDE.md

Or manually add:

## Agent Observability

At the start of every task:
1. Call `register_agent` with your agent name and a brief description.
2. Call `post_status` with state `starting` and a summary of the task.

As you work, call `post_status` at major milestones (state: `running`).

On completion, call `post_status` with state `completed`.

If you encounter an unrecoverable error, call `post_error` before stopping.

The global ~/.claude/CLAUDE.md file is loaded into every Claude Code session automatically. With this in place, every agent — in any project — will register itself with MCPolly, post status updates as it works, and report completion or errors.

6. Verify

Open a new Cursor agent session and ask it to list agents:

"Use mcpolly to list all registered agents."

Automatic Agent Integration

MCPolly can be configured so that every AI agent session automatically registers itself and posts status updates — no manual prompting required.

How It Works

Copy the provided Cursor rules file into any project:

mkdir -p .cursor/rules
cp /path/to/mcpolly/.cursor/rules/mcpolly.mdc .cursor/rules/

This rule file instructs every Cursor agent in that project to:

  1. Register itself with MCPolly at the start of each task
  2. Post status updates as it works through major steps
  3. Report completion when the task finishes
  4. Report errors if something goes wrong

MCP Tools

Once configured, the following MCP tools are available to AI agents:

Agent Management

ToolDescription
register_agentRegister a new agent (name + description). Returns an agent ID. Idempotent on name.
post_statusPost a status update (state + message). States: starting, running, warning, error, completed, offline, paused, errored.
post_errorReport an error with severity (error, warning, critical). Triggers configured alerts.
list_agentsList all registered agents and their current status.
get_agent_activityGet the recent activity timeline for a specific agent.

Vector Embeddings

ToolDescription
update_prd_embeddingsIndex a PRD document for semantic search (chunks markdown, generates embeddings via Ollama).
update_design_embeddingsIndex a design document for semantic search.
search_embeddingsSearch indexed documents using natural language. Returns ranked results by similarity.
list_embedding_sourcesList all indexed embedding sources with chunk counts and timestamps.
delete_embeddingsDelete all embeddings for a given source name.

Agent Spawning

ToolDescription
spawn_product_managerSpawn a product manager agent with relevant context from embeddings.
spawn_product_designerSpawn a product designer agent with relevant PRD and design context.

Environment Variables

MCPolly Server

VariableDefaultDescription
PORT3000HTTP server port
DATABASE_URLmcpolly.dbPath to SQLite database file
RUST_LOGinfoLog level (trace, debug, info, warn, error)
OLLAMA_URLhttp://localhost:11434Base URL for the Ollama API
OLLAMA_EMBEDDING_MODELall-minilmEmbedding model name

MCP Binary (mcpolly_mcp)

VariableRequiredDescription
MCPOLLY_URLYesBase URL of the MCPolly HTTP server
MCPOLLY_API_KEYYesAPI key for authentication

API Endpoints

JSON API (/api/v1/..., requires API key header)

MethodPathDescription
GET/api/v1/agentsList all agents
POST/api/v1/agents/registerRegister an agent
GET/api/v1/agents/:idGet agent detail
GET/api/v1/agents/:id/activityGet agent activity
GET/api/v1/agents/:id/errorsGet agent errors
POST/api/v1/statusPost status update
POST/api/v1/errorsPost error
GET/POST/api/v1/alertsList/create alert rules
GET/api/v1/alerts/historyAlert notification history
DELETE/api/v1/alerts/:idDelete alert rule
GET/POST/api/v1/keysList/create API keys
DELETE/api/v1/keys/:idRevoke API key
POST/api/v1/embeddings/indexIndex a document
GET/api/v1/embeddings/searchSemantic search
GET/api/v1/embeddings/sourcesList embedding sources
DELETE/api/v1/embeddings/sources/:nameDelete embeddings
GET/api/v1/server/infoServer version, uptime, DB size

Alert Conditions

Alert rules can be configured for any agent status change:

ConditionFires when
any_statusAny status update from the agent
agent_completedAgent posts completed state
agent_runningAgent posts running state
agent_startingAgent posts starting state
agent_errorAgent posts error or errored state
agent_warningAgent posts warning state
agent_pausedAgent posts paused state
agent_stoppedAgent posts stopped state
agent_stoppingAgent posts stopping state
agent_offlineAgent goes silent (background checker)

Supported channels: Discord, Slack, and generic webhook (plain JSON POST).

MCP Endpoint

PathDescription
/mcpMCP Streamable HTTP endpoint (JSON-RPC + SSE)

Development

Local Dev Server

PORT=3000 RUST_LOG=mcpolly=info cargo run --bin mcpolly

Build MCP Binary

cargo build --bin mcpolly_mcp

Release Build

cargo build --release

Upgrading

Use the upgrade script to safely update a running MCPolly instance:

./upgrade.sh

The script will:

  1. Download and verify the new binary from GitHub Releases
  2. Back up the SQLite database (keeps the last 5 backups)
  3. Gracefully stop the service
  4. Swap the binary
  5. Restart and health-check — with automatic rollback if the new version fails to start

Options:

# Upgrade to a specific version
MCPOLLY_VERSION=v0.3.0 ./upgrade.sh

# Dry run (see what would happen without changing anything)
MCPOLLY_DRY_RUN=1 ./upgrade.sh

# Skip database backup
MCPOLLY_SKIP_BACKUP=1 ./upgrade.sh

The upgrade script auto-detects the install location, systemd service type (user or system), and database path.

Deployment

MCPolly is designed to run on minimal hardware. A $4/month VPS is sufficient.

Prerequisites

  • Ollama installed and running with all-minilm model pulled (for embeddings)
  • Port 3000 (or configured port) available

systemd Service

Create /etc/systemd/system/mcpolly.service:

[Unit]
Description=MCPolly Agent Observability Server
After=network.target

[Service]
Type=simple
User=mcpolly
WorkingDirectory=/opt/mcpolly
ExecStart=/opt/mcpolly/mcpolly
Environment=PORT=3000
Environment=RUST_LOG=mcpolly=info
Environment=DATABASE_URL=/opt/mcpolly/data/mcpolly.db
Environment=OLLAMA_URL=http://localhost:11434
Restart=on-failure
RestartSec=5

[Install]
WantedBy=multi-user.target
sudo systemctl enable --now mcpolly

Reverse Proxy (Caddy)

mcpolly.example.com {
    reverse_proxy localhost:3000
}

Caddy handles TLS automatically via Let's Encrypt.

License

MIT

Install configuration

Are you the maintainer?

Claim this server with your GitHub account to request manual ownership verification.

README Embed Badge
Markdown

Link to the catalog listing for MCP server for AI agent observability and knowledge from your README. This badge does not certify ownership, compatibility or security.

[![MCP catalog listing](https://img.shields.io/badge/MCP-awesome--mcp-orange?style=flat-square)](https://awesome-mcp.com/servers/mcpolly)

REPOSITORY STATS

GitHub StarsUnavailable
ForksUnavailable

Public repository statistics could not be verified. Check the configured source address; unavailable counts are not zero.

Downloads and pulls

Separate sources, scopes and periods. Never combined or treated as installations, active users or security reviews.

No reviewed package or image identity; download statistics are not listed yet.

Related developer tools MCP Servers

Alternative and complementary servers in the same category

View all in developer tools →
Postbye
postbye-mcp•postbye-team

A directory listing describing a cancellation-letter and mailing-address service. The configured public GitHub repository returned 404 during source verification.

Repository stats unavailable
Developer Tools
Singapore Proxy MCP
singapore-proxy-mcp•Xavierfok

A hosted MCP service for browsing and searching through Singapore mobile-network proxies.

0
Developer Tools

A directory listing describing a Markdown-to-PDF service. The configured public GitHub repository returned 404 during source verification.

Repository stats unavailable
Developer Tools