DMAP-AI MCP server

DMAP-AI MCP server

dmap-ai-mcp•bysohrab4748

An MCP server exposing FastMCP analysis tools at /mcp/ alongside a private owner analytics API and SQLite-backed tool-invocation tracking.

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

WHAT IT DOES

  • •Serves FastMCP analysis tools over an MCP endpoint while providing an Auth0-protected analytics API for the owner.
  • •Records one SQLite row per meaningful analytical tool invocation, treating returned failures and raised exceptions as failures while excluding discovery, health, and debug_ping traffic.
  • •Imports historical journal CSV logs idempotently, redacting api_key values and storing neither messages nor URLs.

BEST FOR

  • •Operators wanting invocation-level analytics for an existing FastMCP tool server.
  • •Teams needing to backfill historical tool-usage data from journal logs into a SQLite analytics store.

ABOUT DMAP-AI-MCP

DMAP-AI MCP server is cataloged as an MCP server attributed to sohrab4748. An MCP server exposing FastMCP analysis tools at /mcp/ alongside a private owner analytics API and SQLite-backed tool-invocation tracking. 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.

能力检查器

能力定义尚未审核。未核验的采集内容不会作为可信接口展示。

Tools (0)

暂无可展示的已审核记录。这不表示上游不支持此能力。

Resources (0)

暂无可展示的已审核记录。这不表示上游不支持此能力。

Prompts (0)

暂无可展示的已审核记录。这不表示上游不支持此能力。

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 DMAP-AI MCP server 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

Does the MCP service itself provide session or user identity tracking?

No; the MCP service is stateless and unauthenticated, so session_hash and user_hash remain null and session/user metrics show as Unavailable.

Which traffic is excluded from analytics counting?

Protocol discovery, health traffic, and debug_ping are not counted.

上游原版 README

在 GitHub 查看同一版本原文

README.md · 030af2977c17 · 采集于 2026-11-13 12:39:00 UTC

保留上游原文,不做 AI 改写。为安全起见过滤脚本、表单和不安全链接。

当前显示最后一次成功采集的文档快照,请以来源页面为准。

DMAP-AI MCP server

The service exposes the existing FastMCP tools at /mcp/ and a private owner analytics API at /admin/analytics/. Analytics uses one final SQLite row per meaningful analytical tool invocation. A returned { "ok": false } result and a raised exception are failures; protocol discovery, health traffic, and debug_ping are not counted.

Local development

python -m venv .venv
.\.venv\Scripts\Activate.ps1
python -m pip install -r requirements-dev.txt
Copy-Item .env.example .env
python -m pytest -q
$env:DMAP_ANALYTICS_MARK_TEST_TRAFFIC='true'
uvicorn server:app --host 127.0.0.1 --port 8001

SQLite is automatically initialized. It uses WAL, foreign keys, a five-second busy timeout, short transactions, parameterized SQL, and indexes for time, tools, status, identifiers, and mapped locations. Timestamps are UTC. Dashboard queries default to America/Chicago but accept any installed IANA timezone.

Configuration

  • DMAP_ANALYTICS_DB_PATH: SQLite path; local default data/analytics.sqlite3. Production should use a persistent directory outside the Git checkout.
  • DMAP_ANALYTICS_HASH_SECRET: long random server-only HMAC secret. Changing it breaks identifier continuity. It is not used to invent identifiers.
  • DMAP_ANALYTICS_ADMIN_SUBS: comma-separated Auth0 sub allowlist. Never expose this in frontend code.
  • DMAP_ANALYTICS_MARK_TEST_TRAFFIC: marks newly captured events as test traffic.
  • DMAP_ANALYTICS_ALLOWED_ORIGINS: comma-separated exact production/development CORS origins.
  • AUTH0_DOMAIN: Auth0 tenant domain without a scheme.
  • AUTH0_AUDIENCE: expected API audience.
  • DMAP_API_BASE: existing DMAP analysis backend base URL.

Every analytics route validates an Auth0 RS256 token through JWKS, issuer, audience, and expiration. Authorization requires read:dmap-analytics in permissions or scope, or an exact subject in the server-only allowlist. Private responses use Cache-Control: no-store.

The current MCP service is stateless and does not authenticate callers, so it has neither a server-issued stable session identifier nor a verified end-user subject. session_hash and user_hash therefore remain null, and the dashboard reports Estimated Sessions, Authenticated Users, and Active Sessions as Unavailable. It never derives identity from IP address or user agent.

Historical import

The importer accepts journal CSV columns timestamp,service,priority,pid,message, ignores repeated headers and discovery traffic, imports only known tool names supported by reliable evidence, redacts api_key query values before deduplication, and stores neither messages nor URLs.

python scripts\import_journal_csv.py C:\path\to\dmap_ai_mcp_logs_30days.csv --dry-run
python scripts\import_journal_csv.py C:\path\to\dmap_ai_mcp_logs_30days.csv
python scripts\import_journal_csv.py C:\path\to\test_logs.csv --mark-test

Repeated imports are idempotent through a SHA-256 source-event fingerprint. Historical logs never produce user or session counts.

Production deployment outline

Use the server's existing deployment method after backup and approval. Set DMAP_ANALYTICS_DB_PATH to a persistent path such as /var/lib/dmap-ai-mcp/analytics.sqlite3, create that directory owned by the systemd service user, install requirements.txt, and restart dmap-ai-mcp. Do not put secret values on a command line or in Git; place them in the existing protected environment file.

Before upgrade, stop writes briefly if required by the current deployment and back up SQLite with its online backup command:

sqlite3 /var/lib/dmap-ai-mcp/analytics.sqlite3 ".backup '/var/backups/dmap-ai-mcp/analytics-$(date -u +%Y%m%dT%H%M%SZ).sqlite3'"

Rollback consists of restoring the prior Git commit/virtual environment according to the existing service procedure, restoring the environment file backup, and restarting the service. The schema is additive; keep the database backup even when application code is rolled back.

Recommended retention is 13 months for aggregate trend comparison, reviewed against actual volume and policy. No automatic deletion is enabled. Back up the database before any deliberate purge and delete in bounded UTC ranges.

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 DMAP-AI MCP server 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/dmap-ai-mcp)

REPOSITORY STATS

GitHub StarsUnavailable
ForksUnavailable

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

下载与拉取统计

来源、范围和时段分别列出;不相加,不代表安装人数、活跃用户或安全审核。

尚无已审核的包 / 镜像标识,暂不展示下载统计。

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