Skip to main content

mcpadserver

Ad monetization SDK for Model Context Protocol (MCP) servers.

Installation

pip install mcpadserver

Quick Start

from mcpadserver import AdClient
from mcp.server import Server
from mcp.types import TextContent

app = Server("my-server")
ad_client = AdClient(api_key="your_api_key")

@app.call_tool()
async def get_data(query: str):
    # Your main data logic
    data = fetch_data(query)

    # Request contextual ad
    ad = await ad_client.request_ads(context=f"query: {query}")

    # Return as MCP content blocks
    return [
        TextContent(type="text", text=f"Data: {data}"),
        TextContent(
            type="text",
            text=f"📢 Sponsored by {ad['sponsor']}\n{ad['content']}\n{ad['link']}"
        )
    ]

Features

  • 🔌 MCP-Native: Drop-in SDK for MCP servers
  • 🔒 Privacy-Safe: No cookies, no tracking, contextual only
  • 💰 70/30 Split: Publishers keep 70% of revenue
  • 📊 Real-time Analytics: Track impressions, clicks, and earnings
  • ⚡ 5-Minute Setup: Start earning immediately

Documentation

Visit mcpadserver.com/docs for full documentation.

License

MIT License - see LICENSE file for details.

Metadata

Release files for mcp-ads-sdk 0.1.0

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for mcp-ads-sdk 0.1.0
File Size Uploaded Provenance Actions
mcp_ads_sdk-0.1.0.tar.gz 3.6 kB Without provenance Details for mcp_ads_sdk-0.1.0.tar.gz

Built distribution (wheel)

Table of built distributions (wheels) for mcp-ads-sdk 0.1.0
File Interpreter ABI Platform Actions
mcp_ads_sdk-0.1.0-py3-none-any.whl Python 3 none any Details for mcp_ads_sdk-0.1.0-py3-none-any.whl

Total release size: 7.5 kB

Release files / mcp_ads_sdk-0.1.0.tar.gz

Download URL mcp_ads_sdk-0.1.0.tar.gz
Size 3.6 kB
Tags Source
SHA-256 checksum
How to use checksums
aed2e20bbf4e548be11e57dded419d410a7143515748f4d35764d21a36675b7b
BLAKE2b-256 checksum
How to use checksums
5454a9a37b2767e266d2c85cdef0dc68440599c788f1a7a9f94b84f3fbeabe46
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/6.2.0 CPython/3.10.4

Release files / mcp_ads_sdk-0.1.0-py3-none-any.whl

Download URL mcp_ads_sdk-0.1.0-py3-none-any.whl
Size 4.0 kB
Tags Python 3
SHA-256 checksum
How to use checksums
66634b369876d2fc7ba513b4422236cad37732640835aa611409538c94464c70
BLAKE2b-256 checksum
How to use checksums
ba3b6300fca8702f6a10e0be6383624ea4df865deac686a77d21861181a6bca6
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/6.2.0 CPython/3.10.4

Security for mcp-ads-sdk 0.1.0

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

No provenance found

None of the files in this release were uploaded with provenance metadata.

A note on package security

PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.

To learn more about protecting yourself from malicious actors, visit our package security documentation.

Release history Release notifications | RSS feed

This release

0.1.0 This release

2 release files No provenance

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page