Stape MCP Server

Stape MCP Server

Enables AI agents to manage Stape.io infrastructure, including container management, custom domains, power-ups, request logs, and Stape Store NoSQL database operations.

Category
访问服务器

README

Stape.io Model Context Protocol (MCP) Server 🚀

CI Pipeline License: MIT TypeScript Node.js

Enterprise-grade Model Context Protocol (MCP) server for Stape.io - the leading hosting platform for server-side Google Tag Manager (sGTM) and Meta Conversions API (CAPI) Gateways.

Connect AI agents like Cursor, Claude Desktop, and Antigravity directly to your Stape infrastructure to automate container management, custom domain SSL provisioning, power-ups, request logs debugging, and Stape Store NoSQL database operations.


🌟 Key Features

  • 18 MCP Tools: Complete coverage of Account, Invoices, Container CRUD, Custom Domains, Power-ups, Request Logs, Stats, and Stape Store (NoSQL DB).
  • MCP Resources: Direct access to dynamic URIs (stape://account, stape://containers, stape://container/{id}).
  • MCP Prompts: Pre-configured system prompt templates (debug_gtm_container_logs, configure_custom_domain).
  • Robust Error Boundary: Custom StapeError class returning structured JSON payloads without corrupting stdio.
  • Security First: Isolated API Key authentication via STAPE_API_KEY environment variable.
  • Enterprise Ready: Full TypeScript type safety, Zod input validation, Vitest test suite, Docker containerization, and GitHub Actions CI.

🛠️ MCP Tools Reference

Account & Invoices

  • stape_get_account_info: Retrieve account details, user profile, billing plan, and currency balance.
  • stape_get_invoices: Retrieve billing invoices and payment history.

Container Management

  • stape_list_containers: List all sGTM and Meta CAPI Gateway containers.
  • stape_get_container: Retrieve detailed configuration for a specific container by identifier.
  • stape_create_container: Create a new sGTM or Meta CAPI container.
  • stape_update_container: Update container settings (name, region, GTM ID, plan).
  • stape_delete_container: Delete an existing container.

Custom Domains

  • stape_list_domains: List custom domains configured for a container.
  • stape_add_domain: Add a custom domain to a container.
  • stape_remove_domain: Remove a custom domain from a container.
  • stape_revalidate_domain: Re-trigger DNS verification for a custom domain.

Power-ups

  • stape_list_powerups: List active and available power-ups (Custom Loader, Cookie Keeper, GEO Headers, Anonymizer).
  • stape_enable_powerup: Enable a power-up on a container.
  • stape_disable_powerup: Disable a power-up on a container.

Logs & Statistics

  • stape_get_logs: Fetch outgoing/incoming request logs for debugging tracking tags.
  • stape_get_stats: Retrieve request volume statistics (daily/domain breakdown).

Stape Store (NoSQL Key-Value DB)

  • stape_get_store_document: Read JSON document by key from Stape Store.
  • stape_set_store_document: Create or update JSON document by key in Stape Store.
  • stape_delete_store_document: Remove a JSON document from Stape Store.

⚡ Quick Start & Installation

1. Prerequisites

  • Node.js >= 18.0.0
  • Stape API Key from Account settings → API Keys on stape.io.

2. Build & Test

# Clone and enter directory
cd stape-mcp-server

# Install dependencies
npm install

# Run build
npm run build

# Run unit & integration tests
npm test

🔌 AI Host Configuration

Cursor Integration

Add to your Cursor MCP config (.cursor/mcp.json):

{
  "mcpServers": {
    "stape": {
      "command": "node",
      "args": [
        "/path/to/stape-mcp-server/dist/index.js"
      ],
      "env": {
        "STAPE_API_KEY": "your_stape_api_key_here"
      }
    }
  }
}

Claude Desktop Integration

Add to your Claude Desktop config (claude_desktop_config.json):

{
  "mcpServers": {
    "stape": {
      "command": "node",
      "args": [
        "/path/to/stape-mcp-server/dist/index.js"
      ],
      "env": {
        "STAPE_API_KEY": "your_stape_api_key_here"
      }
    }
  }
}

🐳 Docker Deployment

# Build image
docker build -t stape-mcp-server -f deployment/Dockerfile .

# Run container
docker run -e STAPE_API_KEY="your_api_key" stape-mcp-server

📄 License

MIT License - see LICENSE for details.

推荐服务器

Baidu Map

Baidu Map

百度地图核心API现已全面兼容MCP协议,是国内首家兼容MCP协议的地图服务商。

官方
精选
JavaScript
Playwright MCP Server

Playwright MCP Server

一个模型上下文协议服务器,它使大型语言模型能够通过结构化的可访问性快照与网页进行交互,而无需视觉模型或屏幕截图。

官方
精选
TypeScript
Magic Component Platform (MCP)

Magic Component Platform (MCP)

一个由人工智能驱动的工具,可以从自然语言描述生成现代化的用户界面组件,并与流行的集成开发环境(IDE)集成,从而简化用户界面开发流程。

官方
精选
本地
TypeScript
Audiense Insights MCP Server

Audiense Insights MCP Server

通过模型上下文协议启用与 Audiense Insights 账户的交互,从而促进营销洞察和受众数据的提取和分析,包括人口统计信息、行为和影响者互动。

官方
精选
本地
TypeScript
VeyraX

VeyraX

一个单一的 MCP 工具,连接你所有喜爱的工具:Gmail、日历以及其他 40 多个工具。

官方
精选
本地
graphlit-mcp-server

graphlit-mcp-server

模型上下文协议 (MCP) 服务器实现了 MCP 客户端与 Graphlit 服务之间的集成。 除了网络爬取之外,还可以将任何内容(从 Slack 到 Gmail 再到播客订阅源)导入到 Graphlit 项目中,然后从 MCP 客户端检索相关内容。

官方
精选
TypeScript
Kagi MCP Server

Kagi MCP Server

一个 MCP 服务器,集成了 Kagi 搜索功能和 Claude AI,使 Claude 能够在回答需要最新信息的问题时执行实时网络搜索。

官方
精选
Python
e2b-mcp-server

e2b-mcp-server

使用 MCP 通过 e2b 运行代码。

官方
精选
Neon MCP Server

Neon MCP Server

用于与 Neon 管理 API 和数据库交互的 MCP 服务器

官方
精选
Exa MCP Server

Exa MCP Server

模型上下文协议(MCP)服务器允许像 Claude 这样的 AI 助手使用 Exa AI 搜索 API 进行网络搜索。这种设置允许 AI 模型以安全和受控的方式获取实时的网络信息。

官方
精选