原型 · 预览版:收录官方注册中心里的全部服务器,每 30 分钟同步一次。评价和账户功能将在后续阶段推出。
PopNx MCP为使用 AI 的人准备的 MCP 服务器 · 用大白话讲清楚

Cortex

作者:jmagar版本 3.9.0i★ –i电脑或云端
注册名称tv.tootie/cortex

安装

概览

作者提供的说明(英文原文)

Syslog receiver and MCP server for homelab log intelligence.

PopNx MCP 的三大支柱

这三项永远不会合并成一个分数:意见、测量和人气是不同的东西。

它能帮你做什么

我们还没有为它写通俗的介绍。下面是我们从注册中心读取到的事实。

  • 连接方式: 电脑或云端
  • 传输方式: stdio, Streamable HTTP
  • 分类: 其他
  • 你需要填写:CORTEX_RECEIVER_HOST, CORTEX_TOKEN

安装

选择你使用的 AI 应用,然后复制设置。

安装之前

  • 基础检查:1 项中通过 0 项
  • 在作者的服务器上运行:你向它提出的内容会经过他们的服务器。
  • 需要你自己填写: CORTEX_RECEIVER_HOST, CORTEX_TOKEN, CORTEX_RECEIVER_PORT

标为机密的值是你账户的钥匙。千万不要分享给别人,也不要粘贴到聊天里。

你需要

你用的是哪个应用?

在上方选择你的应用。我们会记住它,下次按钮会显示“安装到 …”。

适用于网页版、桌面版和手机版 Claude:

  1. 打开 Settings → Connectors
  2. 点击 Add custom connector
  3. 粘贴下面的地址,然后点击 Add
  4. 如果要求登录,请登录作者的服务
SettingsConnectors1+ Add2https://…3
https://cortex.tootie.tv/mcp

或者在你的电脑上运行

打开 Claude Desktop → Settings → Developer → Edit Config,把下面的内容粘贴到 claude_desktop_config.json

{
  "mcpServers": {
    "cortex": {
      "command": "docker",
      "args": [
        "run",
        "-i",
        "--rm",
        "-e",
        "CORTEX_RECEIVER_HOST",
        "-e",
        "CORTEX_TOKEN",
        "-e",
        "CORTEX_RECEIVER_PORT",
        "ghcr.io/jmagar/cortex:v3.9.0"
      ],
      "env": {
        "CORTEX_RECEIVER_HOST": "your-value",
        "CORTEX_TOKEN": "your-value",
        "CORTEX_RECEIVER_PORT": "your-value"
      }
    }
  }
}

在终端中运行这条命令

claude mcp add --transport http cortex https://cortex.tootie.tv/mcp

或者在你的电脑上运行

claude mcp add cortex --env CORTEX_RECEIVER_HOST=your-value --env CORTEX_TOKEN=your-value --env CORTEX_RECEIVER_PORT=your-value -- docker run -i --rm -e CORTEX_RECEIVER_HOST -e CORTEX_TOKEN -e CORTEX_RECEIVER_PORT ghcr.io/jmagar/cortex:v3.9.0

运行前请先填写空着的值。

在 Cursor 中打开

或者自己复制设置

粘贴到项目中的 .cursor/mcp.json,或 ~/.cursor/mcp.json

{
  "mcpServers": {
    "cortex": {
      "url": "https://cortex.tootie.tv/mcp"
    }
  }
}

或者在你的电脑上运行

在 Cursor 中打开

或者自己复制设置

粘贴到项目中的 .cursor/mcp.json,或 ~/.cursor/mcp.json

{
  "mcpServers": {
    "cortex": {
      "command": "docker",
      "args": [
        "run",
        "-i",
        "--rm",
        "-e",
        "CORTEX_RECEIVER_HOST",
        "-e",
        "CORTEX_TOKEN",
        "-e",
        "CORTEX_RECEIVER_PORT",
        "ghcr.io/jmagar/cortex:v3.9.0"
      ],
      "env": {
        "CORTEX_RECEIVER_HOST": "your-value",
        "CORTEX_TOKEN": "your-value",
        "CORTEX_RECEIVER_PORT": "your-value"
      }
    }
  }
}

浏览器会先询问是否打开应用,然后应用会显示设置并请你确认。密钥的值会留空,由你自己填写。

在 VS Code 中打开

或者自己复制设置

粘贴到项目中的 .vscode/mcp.json

{
  "servers": {
    "cortex": {
      "type": "http",
      "url": "https://cortex.tootie.tv/mcp"
    }
  }
}

或者在你的电脑上运行

在 VS Code 中打开

或者自己复制设置

粘贴到项目中的 .vscode/mcp.json

{
  "servers": {
    "cortex": {
      "type": "stdio",
      "command": "docker",
      "args": [
        "run",
        "-i",
        "--rm",
        "-e",
        "CORTEX_RECEIVER_HOST",
        "-e",
        "CORTEX_TOKEN",
        "-e",
        "CORTEX_RECEIVER_PORT",
        "ghcr.io/jmagar/cortex:v3.9.0"
      ],
      "env": {
        "CORTEX_RECEIVER_HOST": "your-value",
        "CORTEX_TOKEN": "your-value",
        "CORTEX_RECEIVER_PORT": "your-value"
      }
    }
  }
}

浏览器会先询问是否打开应用,然后应用会显示设置并请你确认。密钥的值会留空,由你自己填写。

ChatGPT 只能连接互联网上的服务器:

  1. 打开网页版 ChatGPT → Settings → Connectors (Apps)
  2. 点击 Create 或 Add(部分套餐需要先在 Advanced 中开启 Developer mode)
  3. 粘贴下面的地址,起个名字,然后保存
  4. 如果要求登录,请登录作者的服务
SettingsConnectors1+ Create2https://…3
https://cortex.tootie.tv/mcp

菜单名称可能因套餐和版本不同而略有差异。

你的选择通过 Cookie 保存在这台设备上,无需账户。

需要你填写的值

  • CORTEX_RECEIVER_HOST 必填 env
    Hostname or IP of the syslog listener.
  • CORTEX_TOKEN 机密 env
    Bearer token for MCP endpoint authentication.
  • CORTEX_RECEIVER_PORT env
    Syslog listener port (UDP + TCP). Default: 1514.

这些设置是根据作者在注册中心的条目生成的。如果 README 的写法不同,请以 README 为准。

它能做什么

我们还没有读取这个服务器的工具列表;我们会轮流检查各个端点。

基础检查i

我们检查的是任何人都能看到的信息;我们没有阅读代码。不适用的检查项不计入总数。 · 检查于 2026年11月7日

  • ! 注意

    作者与仓库一致

    发布者(tootie.tv)不是仓库所有者(jmagar);可能是其他人代为上架的

  • … 尚未检查

    仍在维护

    我们还没有从 GitHub 读取这个仓库

  • … 尚未检查

    有许可证

    我们还没有从 GitHub 读取这个仓库

  • … 尚未检查

    端点有响应

    尚未检查;我们会轮流检查各个端点

  • … 尚未检查

    使用 OAuth 登录

    尚未检查;我们会轮流检查各个端点

  • … 尚未检查

    工具描述中没有隐藏指令

    尚未检查;我们会在检查端点时读取工具列表

与“其他”中的其他服务器比较i

  • 星标数多于此分类中其他 32568 个服务器的 0%
  • 发布到注册中心的时间比此分类中其他 32568 个服务器的 17% 更新
  • 基础检查结果等于或优于此分类中其他 32568 个服务器的 31%

与注册中心里这个分类中所有活跃的服务器比较。只有当发布者拥有该仓库时,星标数才计入。

常见问题

Cortex 安全吗?

它在 1 项适用的基础检查中通过了 0 项。我们没有阅读代码。在添加密钥或令牌之前,请先看看这个服务器要求哪些权限,并使用只具备所需权限的密钥。

它需要哪些密钥或代码?

你需要填写:CORTEX_RECEIVER_HOST, CORTEX_TOKEN

它在我的电脑上运行还是在云端?

两种方式都可以:安装在你的电脑上,或者连接云端版本。

它还在维护吗?

GitHub 仓库最后更新于–,最新版本(3.9.0)于4个月前进入注册中心。

哪些应用可以使用它?

支持 MCP 的应用,例如 Claude Desktop、Claude Code、Cursor 和 VS Code。它通过 URL 连接,所以接受远程 MCP 服务器的应用也可以使用,例如开启开发者模式的 ChatGPT。

有什么可以替代它?

同一分类中有:Spec Driven Development, Remote Desktop Commander, FlyDocs

替代选择

同一分类中其他作者的服务器,按星标数排序。

如何看卡片:★ GitHub 星标i三大支柱:评价 · 检查 · 使用情况i更新 = 最新版本发布到注册中心的时间i

Spec Driven Development

作者:formulahendry

MCP Server that facilitates spec-driven development workflows, not just Vibe Coding.

在你的电脑上运行★ 440MIT14个月前更新
安装

Remote Desktop Commander

作者:desktop-commander

Remote Desktop Commander: use files, terminal and processes on your own computers from any AI app.

在云端运行★ 211昨天更新
安装

FlyDocs

作者:flydocs.ai

Spec-driven development workflow: your agent works issues, sessions and the status lifecycle.

在你的电脑上运行今天更新
安装

作者的 README

打开 README

按原文从作者的仓库复制。PopNx MCP 没有审查或背书其内容。HTML、图片和脚本已被移除。链接会离开本站。

Cortex

Self-hosted homelab log intelligence over MCP, CLI, and REST with SQLite/FTS.

It collects logs and operational evidence, stores them in SQLite with FTS5 search, and exposes one shared intelligence layer through CLI, REST, MCP, and a bundled browser workspace.

Cortex began as a syslog receiver. It now covers network logs, Docker, managed files, OpenTelemetry logs, metrics, and traces, host heartbeats, fleet inventory, shell and agent activity, and Claude, Codex, Gemini CLI, and Antigravity transcripts. It correlates those sources into timelines, incidents, and an evidence-backed topology graph without making the graph a second source of truth.

At a glance

AreaWhat Cortex provides
IngestUDP/TCP syslog, OTLP/HTTP logs, metrics, and traces, Docker logs and events, managed file tails, host heartbeats, AI transcripts, shell history, agent command records, and fleet inventory
StorageSQLite in WAL mode, FTS5 full-text search, bounded metadata, retention, storage budgets, maintenance jobs, checkpoints, and 63 sequential schema migrations
InvestigationSearch, filtering, context, timelines, patterns, anomaly comparison, cross-source correlation, recurring error signatures, deterministic incident bundles, and graph explanations
Fleet intelligenceSSH and API inventory collectors, host state, service topology, container and route relationships, redacted evidence, and rebuildable graph projections
AI operationsClaude, Codex, Gemini CLI, and Antigravity session indexing; skill, MCP, and hook event extraction where each provider exposes them; incident clustering; and guarded local LLM assessments
InterfacesNative CLI, one action-dispatched MCP tool, authenticated REST APIs, MCP prompts and resources, an MCP Apps search widget, and a bundled investigation workspace
OperationsSetup and repair, diagnostics, Compose control, backup, integrity checks, WAL checkpoints, vacuum, update workflows, agents, and health endpoints

[!IMPORTANT]

Cortex is designed for a trusted homelab or small private fleet. It is not a clustered log warehouse, a general-purpose SIEM, or a safe place to expose unauthenticated administrative surfaces to the public internet.

Contents

  • Quick start
  • How Cortex is built
  • Ingestion
  • Investigation and intelligence
  • Fleet inventory and graph
  • AI session intelligence
  • Alerts and notifications
  • Interfaces
  • Configuration
  • Authentication and trust boundaries
  • Storage and maintenance
  • Deployment and distribution
  • Operations
  • Development and verification
  • Documentation
  • Current boundaries
  • License

Quick start

Install the CLI

The first-class guided path is:

npx skills add dinglebear-ai/cortex --skill install-cortex

Start a fresh agent task and invoke $install-cortex. It chooses server or client-only role, delegates to the canonical installer/setup engine, configures auth/network/storage, and verifies the live client connection.

The npm launcher remains the fastest manual path for local CLI and stdio MCP use:

npx -y @dinglebear/cortex --help

npx -y @dinglebear/cortex mcp

Install it permanently with:

npm install --global @dinglebear/cortex

cortex --version

The launcher requires Node.js 18 or newer. It downloads a checksum-verified native release binary for Linux x64, Linux ARM64, macOS ARM64, or Windows x64.

Build from source with the current stable Rust toolchain:

git clone https://github.com/dinglebear-ai/cortex.git

cd cortex mise install # optional, but pins the repository tools just build ./.cache/cargo/debug/cortex --version

Start a local server

The full daemon starts UDP and TCP syslog receivers plus the shared HTTP server. Use separate MCP and REST tokens:

mkdir -p "$HOME/.cortex/data"

export CORTEX_DB_PATH="$HOME/.cortex/data/cortex.db" export CORTEX_TOKEN="$(openssl rand -hex 32)" export CORTEX_API_TOKEN="$(openssl rand -hex 32)"

cortex serve mcp

Defaults:

  • Syslog: 0.0.0.0:1514 over UDP and TCP
  • HTTP: 127.0.0.1:3100
  • MCP: http://127.0.0.1:3100/mcp
  • REST: http://127.0.0.1:3100/api/*
  • Investigation workspace: http://127.0.0.1:3100/app

Verify it from another terminal:

curl -fsS http://127.0.0.1:3100/health

logger -n 127.0.0.1 -P 1514 --tcp "cortex quickstart from $(hostname)"

export CORTEX_API_TOKEN="the-same-api-token" cortex tail --limit 10

For a managed local deployment, cortex setup repair creates or repairs the Cortex home, Compose assets, data paths, and missing 64-character MCP and REST tokens without replacing existing token values.

Connect an MCP client

Query-only stdio mode reads the configured local database and starts no network listeners:

{

"mcpServers": { "cortex": { "command": "npx", "args": ["-y", "cortex-rmcp", "mcp"], "env": { "CORTEX_DB_PATH": "/absolute/path/to/cortex.db" } } } }

Streamable HTTP mode connects to the persistent daemon:

{

"mcpServers": { "cortex": { "url": "http://127.0.0.1:3100/mcp", "headers": { "Authorization": "Bearer your-cortex-token" } } } }

A useful first call is:

{"action":"status"}

Then narrow the investigation with tail, errors, search, timeline, or context before using broader analysis operations.

How Cortex is built

Cortex is one Rust binary with multiple operating modes. The same application and service layer backs the CLI, REST handlers, and MCP handlers, so validation, limits, identity resolution, redaction, and business rules do not belong to one transport alone.

                         INGESTION

Syslog UDP/TCP OTLP signals Docker agent / pull Managed file tails Heartbeats Claude / Codex / Gemini / Antigravity Shell history Agent commands Fleet inventory \ | / \ | / +---- bounded parsing and enrichment ----+ | scrub, normalize, batch | SQLite WAL + FTS5 | +----------------+----------------+ | | authoritative records derived accelerators logs, heartbeats, rollups, signatures, inventory, sessions graph projections | | +----------------+----------------+ | shared service layer | CLI REST MCP Web workspace

The daemon supervises its receivers and background services with cooperative cancellation. Shutdown drains HTTP requests, gives maintenance tasks 10 seconds to finish before abort-and-join, gives ingest 5 seconds to flush, and then attempts a WAL checkpoint. Already-running blocking SQLite calls cannot be cancelled by Tokio.

Background services include:

  • Retention and storage-budget enforcement
  • WAL and FTS maintenance
  • Docker ingest supervision
  • File-tail supervision
  • Error-signature scanning
  • Notification evaluation, dispatch, and digest scheduling
  • Inventory refresh and backfill
  • Graph projection refresh
  • AI-session and timeline rollups
  • Database optimization and maintenance jobs

Heavy analytical reads and maintenance jobs have separate concurrency controls so one expensive investigation cannot starve the ingest path.

Ingestion

All log-like sources are normalized into the same durable log model, enriched where safe, scrubbed where configured, and written through bounded batch paths.

Syslog over UDP and TCP

Cortex listens on the same configurable port for UDP and TCP syslog. It parses common RFC 3164 and RFC 5424 shapes, preserves the raw frame, records sender identity, normalizes severity and facility, and enriches known application formats.

Relevant defaults:

  • Bind: 0.0.0.0:1514
  • Maximum message: 8 KiB
  • Maximum concurrent TCP connections: 512
  • TCP idle timeout: 300 seconds
  • Writer batch: 100 records or 500 ms
  • Write queue capacity: 10,000 records

Syslog has no application-layer authentication. Restrict senders with network controls and CORTEX_ALLOWED_SOURCE_CIDRS when the listener is reachable beyond a trusted network.

Built-in enrichment recognizes useful signals from AdGuard, Authelia, Docker lifecycle events, fail2ban, Linux kernel and OOM events, SWAG, reverse-proxy logs, and host-local Cortex Docker agent metadata. Source gates can restrict enrichment that would otherwise trust a marker inside an unauthenticated syslog body.

OpenTelemetry ingestion

Cortex accepts protobuf OTLP/HTTP export requests on the shared HTTP listener. Logs use POST /v1/logs with a 4 MiB body limit and flow through the normal writer. Metrics use POST /v1/metrics and traces use POST /v1/traces, each with an 8 MiB body limit and dedicated storage. Metric requests admit at most 5,000 points and also enforce a bounded normalized payload budget.

Current OTLP scope is intentionally narrow:

  • Logs, traces, and metrics over HTTP/protobuf are supported.
  • OTLP/gRPC is not implemented.

All three OTLP endpoints authenticate with `CORTEX_TOKEN` — the same static MCP bearer token that guards POST /mcp, read from the managed ~/.cortex/.env on a deployed host. It is not CORTEX_API_TOKEN (REST /api/*) and not CORTEX_API_ADMIN_TOKEN. Loopback and trusted-gateway policies skip the check. An OAuth-only deployment with no static token denies OTLP outright, because machine exporters have no OAuth flow — so a non-loopback OAuth-only OTLP exposure is rejected at startup unless CORTEX_TOKEN is set.

Docker logs and events

Cortex supports two Docker collection paths:

  1. Host-local agent, the preferred multi-host path. The host-local cortex agent reads the local Docker socket, converts logs and lifecycle events into bounded records, and forwards them to the server without changing Docker's daemon logging driver.
  2. Central pull compatibility mode, an optional server-side collector for explicitly configured Docker Engine or docker-socket-proxy HTTP endpoints. It records per-container checkpoints and reconnects with bounded exponential backoff.

Central pull is disabled by default. The CORTEX_DOCKER_HOSTS shorthand expands hosts into insecure http://host:2375 endpoints and should only be used on a tightly controlled private network. A hosts file supports explicit base URLs and safer endpoint configuration.

Managed file tails

Managed file-tail sources are persisted in a registry and supervised by the daemon. Add, remove, list, and inspect sources through the CLI, REST, or the file_tails MCP admin action.

The path policy rejects unsafe targets, including paths outside configured roots, symlink escap

只显示了开头部分;其余内容请在仓库中阅读

问 PopNx