Skip to main content
Glama
miyaichi

OpenSincera MCP Server

by miyaichi

OpenSincera MCP 服务器

一个模型上下文协议 (MCP) 服务器,提供对 OpenSincera API 的访问,用于检索发布商元数据、验证信息和广告质量分析。

概述

OpenSincera 是一个为数字广告发布商提供透明度和验证数据的平台。此 MCP 服务器允许 AI 助手和其他工具访问 OpenSincera 的发布商信息,包括验证状态、元数据、运营指标、设备级广告质量信号和竞争基准测试。

Related MCP server: NewsBreak MCP Server

功能

  • 发布商查询:通过域名或发布商 ID 搜索发布商

  • 元数据检索:获取详细的发布商信息,包括验证状态、类别和运营指标

  • 设备级指标:比较移动端与桌面端的 A2CR、广告可见度、广告刷新率等

  • 竞争基准测试:并排比较发布商与类似发布商的指标

  • 媒体评估:为广告主媒体选择对多个发布商进行评分和排名

  • 健康监测:检查 OpenSincera API 连接的状态

  • 错误处理:具有详细错误信息的全面错误处理

  • 输入验证:使用 Zod 模式进行稳健的输入验证

安装

使用 npm 全局安装该包:

npm install -g opensincera-mcp-server

先决条件

  • Node.js 18.0.0 或更高版本

  • OpenSincera API 密钥

设置

  1. 克隆仓库:

git clone https://github.com/miyaichi/opensincera-mcp-server.git
cd opensincera-mcp-server
  1. 安装依赖:

npm install
  1. 构建项目:

npm run build
  1. 设置环境变量:

export OPENSINCERA_API_KEY="your-api-key-here"
export OPENSINCERA_BASE_URL="https://open.sincera.io/api"  # Optional
export OPENSINCERA_TIMEOUT="10000"  # Optional (milliseconds)

使用方法

运行服务器

npm start

开发

npm run dev

Claude Desktop 配置

根据您的安装方法,将以下内容添加到您的 Claude Desktop 配置文件中。

该文件位于:

  • macOS: ~/Library/Application Support/Claude/claude_desktop_config.json

  • Windows: %APPDATA%/Claude/claude_desktop_config.json

选项 1:如果全局安装

如果您通过 npm install -g 全局安装了该包,该命令可直接在您的系统路径中使用。

{
  "mcpServers": {
    "opensincera": {
      "command": "opensincera-mcp-server",
      "env": {
        "OPENSINCERA_API_KEY": "your-api-key-here"
      }
    }
  }
}

选项 2:如果使用本地克隆

如果您在本地克隆了仓库,则必须提供脚本的完整路径。请记住将 /path/to/ 替换为项目目录的实际绝对路径。

{
  "mcpServers": {
    "opensincera": {
      "command": "node",
      "args": ["/path/to/opensincera-mcp-server/dist/index.js"],
      "env": {
        "OPENSINCERA_API_KEY": "your-api-key-here"
      }
    }
  }
}

Claude Desktop 示例提示词

配置完成后,您可以在 Claude Desktop 中使用这些自然语言提示词:

基本健康检查

Check the OpenSincera API connection status

发布商域名查询

Get publisher information for yahoo.com from OpenSincera

详细分析请求

Analyze the publisher metrics for cnn.com and explain:
- Their verification status
- Ad to content ratio and what it means
- Supply chain complexity
- Overall advertising quality

设备级比较

Show me the mobile vs desktop ad quality metrics for nytimes.com

竞争基准测试

Compare businessinsider.com against its similar publishers

移动端媒体评估

Evaluate these publishers for a mobile branding campaign:
- nytimes.com
- washingtonpost.com
- reuters.com
Use device: mobile

发布商 ID 查询

Get detailed information for OpenSincera Publisher ID 2737

业务背景问题

I'm considering running ad campaigns on forbes.com.
Can you check their OpenSincera profile and tell me:
- Is this a verified publisher?
- What's their ad refresh rate and is it good or bad?
- How many supply paths do they have?
- Would you recommend this publisher for quality ad placement?

这些提示词将自动触发相应的 OpenSincera MCP 工具,并返回带有详细指标解释的格式化响应。

可用工具

get_publisher_metadata

从 OpenSincera API 获取发布商元数据。

参数:

  • publisherId (可选):要搜索的发布商 ID

  • publisherDomain (可选):要搜索的发布商域名

  • limit (可选):结果的最大数量 (1-100)

  • offset (可选):要跳过的结果数量

注意: 必须提供 publisherIdpublisherDomain 中的一个。

示例:

{
  "publisherDomain": "example.com"
}

get_publisher_by_domain

通过域名获取单个发布商。

参数:

  • domain (必需):要搜索的发布商域名

示例:

{
  "domain": "example.com"
}

get_publisher_by_id

通过发布商 ID 获取单个发布商。

参数:

  • publisherId (必需):要搜索的发布商 ID

示例:

{
  "publisherId": "12345"
}

compare_publishers

将发布商与其类似发布商进行比较(竞争基准测试)。检索目标发布商及其由 OpenSincera 策划的类似发布商,然后生成关键指标的并排比较。

参数:

  • domain (必需):要进行基准测试的发布商域名

  • device (可选):用于指标比较的设备类型 — overall(默认)、mobiledesktop

示例:

{
  "domain": "businessinsider.com",
  "device": "mobile"
}

evaluate_media

为广告主媒体选择对多个发布商域名进行评分和排名。每个发布商根据广告质量指标、供应链健康状况和身份覆盖范围获得一个分数(0-100),并根据广告活动目标进行加权。

参数:

  • domains (必需):要评估的发布商域名列表

  • campaignGoal (可选):branding(品牌推广)、performance(效果营销)或 balanced(平衡,默认)

  • language (可选):输出语言 — en(默认)或 ja

  • device (可选):用于评分的设备类型 — overall(默认)、mobiledesktop

示例:

{
  "domains": ["nytimes.com", "washingtonpost.com", "reuters.com"],
  "campaignGoal": "branding",
  "device": "desktop"
}

health_check

检查 OpenSincera API 连接的健康状态。

参数:

响应格式

发布商元数据响应

{
  "publishers": [
    {
      "publisherId": "1",
      "publisherName": "Business Insider",
      "ownerDomain": "insider-inc.com",
      "domain": "businessinsider.com",
      "status": "active",
      "lastUpdated": "2026-04-14T01:00:25.419Z",
      "categories": [],
      "verificationStatus": "verified",
      "parentEntityId": 59072,
      "similarPublishers": [41, 67, 405],
      "deviceMetrics": {
        "mobile": {
          "avgAdsToContentRatio": 0.265,
          "maxAdsToContentRatio": 1.0,
          "minAdsToContentRatio": 0.0,
          "avgAdUnitsInView": 1.611,
          "maxAdUnitsInView": 4.0,
          "averageRefreshRate": 58.441,
          "maxRefreshRate": 420.0,
          "minRefreshRate": 5.0,
          "percentageOfAdSlotsWithRefresh": 98.78
        },
        "desktop": {
          "avgAdsToContentRatio": 0.231,
          "maxAdsToContentRatio": 1.0,
          "minAdsToContentRatio": 0.0,
          "avgAdUnitsInView": 2.577,
          "maxAdUnitsInView": 9.0,
          "averageRefreshRate": 81.096,
          "maxRefreshRate": 590.0,
          "minRefreshRate": 5.0,
          "percentageOfAdSlotsWithRefresh": 84.99
        }
      },
      "metadata": {
        "description": "Business Insider tells the global tech, finance...",
        "primarySupplyType": "web",
        "avgAdsToContentRatio": 0.249,
        "avgAdsInView": 2.088,
        "avgAdRefresh": 72.489,
        "totalUniqueGpids": 946,
        "idAbsorptionRate": 0.5,
        "avgPageWeight": 27.843,
        "avgCpu": 254.671,
        "totalSupplyPaths": 118,
        "resellerCount": 69,
        "slug": "business-insider"
      }
    }
  ],
  "totalCount": 1,
  "hasMore": false
}

健康检查响应

{
  "healthy": true,
  "timestamp": "2026-04-14T10:00:00Z"
}

环境变量

变量

描述

默认值

必需

OPENSINCERA_API_KEY

您的 OpenSincera API 密钥

-

OPENSINCERA_BASE_URL

OpenSincera API 基础 URL

https://open.sincera.io/api

OPENSINCERA_TIMEOUT

请求超时时间(毫秒)

10000

错误处理

服务器为常见场景提供了全面的错误处理:

  • 身份验证错误 (401):API 密钥无效或缺失

  • 授权错误 (403):权限不足

  • 未找到错误 (404):未找到发布商

  • 速率限制 (429):超过 API 速率限制

  • 网络错误:连接问题或超时

  • 验证错误:输入参数无效

开发

脚本

  • npm run build - 构建 TypeScript 项目

  • npm run dev - 在开发模式下运行并热重载

  • npm test - 运行测试

  • npm run lint - 运行 ESLint

  • npm run format - 使用 Prettier 格式化代码

项目结构

src/
├── index.ts                 # Main MCP server entry point and tool definitions
├── opensincera-service.ts   # OpenSincera API client and data models
├── metadata-descriptions.ts # Field descriptions and formatted output
└── analysis.ts              # Scoring, comparison, and evaluation logic

贡献

  1. Fork 仓库

  2. 创建功能分支

  3. 进行更改

  4. 为新功能添加测试

  5. 运行测试套件

  6. 提交 Pull Request

许可证

本项目采用 MIT 许可证 - 有关详细信息,请参阅 LICENSE 文件。

支持

有关此 MCP 服务器的问题,请在 GitHub 上提交 Issue。

有关 OpenSincera API 的问题,请直接联系 OpenSincera 支持团队。

更新日志

v1.0.4

  • 添加了 device_level_metrics 支持:A2CR、广告可见度、广告刷新率(平均/最小/最大)以及带有刷新的广告位百分比的移动端和桌面端细分数据

  • 添加了 compare_publishers 工具:针对类似发布商的并排竞争基准测试

  • 添加了 evaluate_media 工具:根据广告活动目标(品牌推广/效果营销/平衡)对多个发布商进行评分和排名

  • compare_publishersevaluate_media 添加了 device 参数,用于移动端/桌面端特定分析

  • 添加了用于评分和报告逻辑的 analysis.ts 模块

v1.0.3

  • 添加了发布商比较和评级功能

  • 更新了发布商元数据结构,包含 owner_domaindomainparent_entity_idsimilar_publishers

v1.0.2

  • 版本升级和稳定性改进

v1.0.0

  • 初始版本

  • 基本发布商查询功能

  • 健康检查端点

  • 全面的错误处理

  • 输入验证

Install Server
A
license - permissive license
B
quality
C
maintenance

Maintenance

Maintainers
Response time
Release cycle
1Releases (12mo)
Commit activity

Resources

Unclaimed servers have limited discoverability.

Looking for Admin?

If you are the server author, to access and configure the admin panel.

Related MCP Servers

  • A
    license
    Not graded
    quality
    B
    maintenance
    Provides access to Altmetric APIs for monitoring research impact and attention across news, policy documents, social media, and other online platforms.
    544
    7
    MIT
  • A
    license
    Not graded
    quality
    B
    maintenance
    Enables interaction with Sam's Club Sponsored Ads APIs through spec-driven endpoint discovery and an authenticated proxy with automatic RSA-SHA256 request signing.
    MIT
  • -
    license
    Not graded
    quality
    Not graded
    maintenance
    Provides access to the OpenAlex API, enabling search and retrieval of scholarly works, authors, sources, and more.

View all related MCP servers

Related MCP Connectors

  • Domain/IP intelligence, web page capture and search APIs

  • Access US federal award, recipient, agency, and spending analytics data from USAspending.gov.

  • SBIR MCP — wraps the SBIR.gov public API (free, no auth)

View all MCP Connectors

Latest Blog Posts

MCP directory API

We provide all the information about MCP servers via our MCP API.

curl -X GET 'https://glama.ai/api/mcp/v1/servers/miyaichi/opensincera-mcp-server'

If you have feedback or need assistance with the MCP directory API, please join our Discord server