OpenSincera MCP Server
Provides access to OpenSincera API for retrieving digital advertising publisher metadata, verification status, and operational metrics through domain or Publisher ID lookup.
README
OpenSincera MCP Server
A Model Context Protocol (MCP) server that provides access to the OpenSincera API for retrieving publisher metadata and verification information.
Overview
OpenSincera is a platform that provides transparency and verification data for digital advertising publishers. This MCP server allows AI assistants and other tools to access OpenSincera's publisher information, including verification status, metadata, and operational metrics.
Features
- Publisher Lookup: Search for publishers by domain or Publisher ID
- Metadata Retrieval: Get detailed publisher information including verification status, categories, and operational data
- Health Monitoring: Check the status of the OpenSincera API connection
- Error Handling: Comprehensive error handling with detailed error messages
- Input Validation: Robust input validation using Zod schemas
Installation
Prerequisites
- Node.js 18.0.0 or higher
- OpenSincera API key
Setup
- Clone the repository:
git clone https://github.com/miyaichi/opensincera-mcp-server.git
cd opensincera-mcp-server
- Install dependencies:
npm install
- Build the project:
npm run build
- Set up environment variables:
export OPENSINCERA_API_KEY="your-api-key-here"
export OPENSINCERA_BASE_URL="https://open.sincera.io/api" # Optional
export OPENSINCERA_TIMEOUT="10000" # Optional (milliseconds)
Usage
Running the Server
npm start
Development
npm run dev
Configuration with Claude Desktop
Add the following to your Claude Desktop configuration file:
macOS
~/Library/Application Support/Claude/claude_desktop_config.json
Windows
%APPDATA%/Claude/claude_desktop_config.json
{
"mcpServers": {
"opensincera": {
"command": "node",
"args": ["/path/to/opensincera-mcp-server/dist/index.js"],
"env": {
"OPENSINCERA_API_KEY": "your-api-key-here"
}
}
}
}
Example Prompts for Claude Desktop
Once configured, you can use these natural language prompts in Claude Desktop:
Basic Health Check
Check the OpenSincera API connection status
Publisher Domain Lookup
Get publisher information for yahoo.com from OpenSincera
Detailed Analysis Request
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
Multiple Domain Comparison
Compare the following publishers using OpenSincera data:
- nytimes.com
- washingtonpost.com
- reuters.com
Focus on their verification status, ad quality metrics, and supply chain efficiency.
Publisher ID Lookup
Get detailed information for OpenSincera Publisher ID 2737
Targeted Metric Analysis
For the domain example.com, explain:
- What is their ID Absorption Rate and why does it matter?
- How does their page weight affect ad performance?
- Are they using too many resellers?
Business Context Questions
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?
These prompts will automatically trigger the appropriate OpenSincera MCP tools and return formatted responses with detailed metric explanations.
Available Tools
get_publisher_metadata
Get publisher metadata from OpenSincera API.
Parameters:
publisherId(optional): Publisher ID to search forpublisherDomain(optional): Publisher domain to search forlimit(optional): Maximum number of results (1-100)offset(optional): Number of results to skip
Note: Either publisherId or publisherDomain must be provided.
Example:
{
"publisherDomain": "example.com"
}
get_publisher_by_domain
Get a single publisher by domain name.
Parameters:
domain(required): Publisher domain to search for
Example:
{
"domain": "example.com"
}
get_publisher_by_id
Get a single publisher by Publisher ID.
Parameters:
publisherId(required): Publisher ID to search for
Example:
{
"publisherId": "12345"
}
health_check
Check the health status of the OpenSincera API connection.
Parameters: None
Response Format
Publisher Metadata Response
{
"publishers": [
{
"publisherId": "12345",
"publisherName": "Example Publisher",
"publisherDomain": "example.com",
"status": "active",
"lastUpdated": "2023-12-01T10:00:00Z",
"contactEmail": "contact@example.com",
"categories": ["News", "Entertainment"],
"verificationStatus": "verified",
"metadata": {
"description": "A leading news publisher",
"primarySupplyType": "direct",
"avgAdsToContentRatio": 0.25,
"avgAdsInView": 3.2,
"avgAdRefresh": 1.5,
"totalUniqueGpids": 150,
"idAbsorptionRate": 0.85,
"avgPageWeight": 2048,
"avgCpu": 15.5,
"totalSupplyPaths": 12,
"resellerCount": 8,
"slug": "example-publisher"
}
}
],
"totalCount": 1,
"hasMore": false
}
Health Check Response
{
"healthy": true,
"timestamp": "2023-12-01T10:00:00Z"
}
Environment Variables
| Variable | Description | Default | Required |
|---|---|---|---|
OPENSINCERA_API_KEY |
Your OpenSincera API key | - | Yes |
OPENSINCERA_BASE_URL |
OpenSincera API base URL | https://open.sincera.io/api |
No |
OPENSINCERA_TIMEOUT |
Request timeout in milliseconds | 10000 |
No |
Error Handling
The server provides comprehensive error handling for common scenarios:
- Authentication errors (401): Invalid or missing API key
- Authorization errors (403): Insufficient permissions
- Not found errors (404): Publisher not found
- Rate limiting (429): API rate limit exceeded
- Network errors: Connection issues or timeouts
- Validation errors: Invalid input parameters
Development
Scripts
npm run build- Build the TypeScript projectnpm run dev- Run in development mode with hot reloadnpm test- Run testsnpm run lint- Run ESLintnpm run format- Format code with Prettier
Project Structure
src/
├── index.ts # Main MCP server entry point
└── opensincera-service.ts # OpenSincera API service implementation
Contributing
- Fork the repository
- Create a feature branch
- Make your changes
- Add tests for new functionality
- Run the test suite
- Submit a pull request
License
This project is licensed under the MIT License - see the LICENSE file for details.
Support
For issues related to this MCP server, please open an issue on GitHub.
For OpenSincera API issues, please contact OpenSincera support directly.
Changelog
v1.0.0
- Initial release
- Basic publisher lookup functionality
- Health check endpoint
- Comprehensive error handling
- Input validation
推荐服务器
Baidu Map
百度地图核心API现已全面兼容MCP协议,是国内首家兼容MCP协议的地图服务商。
Playwright MCP Server
一个模型上下文协议服务器,它使大型语言模型能够通过结构化的可访问性快照与网页进行交互,而无需视觉模型或屏幕截图。
Magic Component Platform (MCP)
一个由人工智能驱动的工具,可以从自然语言描述生成现代化的用户界面组件,并与流行的集成开发环境(IDE)集成,从而简化用户界面开发流程。
Audiense Insights MCP Server
通过模型上下文协议启用与 Audiense Insights 账户的交互,从而促进营销洞察和受众数据的提取和分析,包括人口统计信息、行为和影响者互动。
VeyraX
一个单一的 MCP 工具,连接你所有喜爱的工具:Gmail、日历以及其他 40 多个工具。
graphlit-mcp-server
模型上下文协议 (MCP) 服务器实现了 MCP 客户端与 Graphlit 服务之间的集成。 除了网络爬取之外,还可以将任何内容(从 Slack 到 Gmail 再到播客订阅源)导入到 Graphlit 项目中,然后从 MCP 客户端检索相关内容。
Kagi MCP Server
一个 MCP 服务器,集成了 Kagi 搜索功能和 Claude AI,使 Claude 能够在回答需要最新信息的问题时执行实时网络搜索。
e2b-mcp-server
使用 MCP 通过 e2b 运行代码。
Neon MCP Server
用于与 Neon 管理 API 和数据库交互的 MCP 服务器
Exa MCP Server
模型上下文协议(MCP)服务器允许像 Claude 这样的 AI 助手使用 Exa AI 搜索 API 进行网络搜索。这种设置允许 AI 模型以安全和受控的方式获取实时的网络信息。