Skip to main content
Glama
constile-mcp

constile-mcp

Official

constile-mcp

An MCP server that gives an AI assistant a read_article tool. When a publisher's page carries a Constile ad, the tool handles it the way the person chose.

Constile lets publishers keep being paid when assistants read their pages. Instead of the page's ads, the person sees one labeled sponsored message in the assistant's answer, and the advertiser pays the publisher. It costs the person nothing and shares nothing about them.

Add it to your assistant

It needs Node.js 20 or later. In any client that runs MCP servers over stdio, add a server that runs npx -y constile-mcp. For example, in a client's mcpServers settings:

{
  "mcpServers": {
    "constile": { "command": "npx", "args": ["-y", "constile-mcp"] }
  }
}

In Claude Code:

claude mcp add constile -- npx -y constile-mcp

Related MCP server: KitchenSink4Web

Tools

Tool

What it does

read_article

Fetches a page. When the page carries a Constile ad, it follows the person's saved choice, and returns the page with the sponsored message to show.

report_sponsored_message

Tells the publisher the message is in the answer (prepared) or that the person has seen it (delivered).

set_constile_preference

Saves the person's choice: accept, ask, or decline. Call it only when the person says so.

get_constile_preference

Returns the saved choice. Until one is saved, it's ask.

Settings

Variable

What it sets

Default

CONSTILE_PREFS

Where the person's choice is saved

~/.config/constile/preferences.json

CONSTILE_UA

The user agent the tool fetches with

ConstileMCP-User/0.1 (+https://constile.app)

The server keeps only that choice, on the person's own machine. It sends nothing about the person or the conversation.

Build from source

The source is at https://github.com/Constile/constile-mcp.

npm install
npm test
npm run build

Support

Write to hello@constile.app. For building your own agent, see constile-agent-sdk, and for the API, https://constile.app/developers.

License

MIT. See LICENSE.

Available Tools

4 tools
get_constile_preferenceShow the person's choice about Constile adsA

Returns the saved choice: accept, ask, or decline.

Inputs: no named parameters.

read_articleRead an articleB

Fetch a web page for the person. When the page carries a Constile ad (free access in exchange for showing the person one labeled sponsored message), this tool handles it according to the person's saved choice.

Inputs: url (required), shown_token, accept_sponsored.

report_sponsored_messageReport a sponsored messageA

Tell the publisher where a sponsored message from read_article stands. Use stage "prepared" when it's in the answer you're about to send, and "delivered" only after the person has seen it.

Inputs: stage (required), token (required).

set_constile_preferenceSave the person's choice about Constile adsA

Save how the person wants Constile ads handled from now on. Call only when the person has said so explicitly.

Inputs: policy (required).

Tool Schema Changelog

Recent tool additions, removals, and schema changes observed during successful MCP inspections.

Loading tool schema changelog…

    TDQS

    A3.9/5.0

    Scored across 4 tools

    Disambiguation5/5

    Each tool targets a distinct action: fetching a page (read_article), reading the saved preference (get_constile_preference), writing it (set_constile_preference), and reporting sponsored-message lifecycle state (report_sponsored_message). The get/set pair is differentiated by verb, and the reporting tool's staged semantics are spelled out. No two tools appear interchangeable.

    Naming Consistency5/5

    All four names follow a clean snake_case verb_noun pattern: read_article, set_constile_preference, get_constile_preference, report_sponsored_message. The get/set pair is symmetric, making the convention easy to predict.

    Tool Count5/5

    Four tools is well-scoped for a narrow ad-preference and page-fetch domain, with no redundant or filler tools. Each tool maps to a necessary step in the workflow.

    Completeness4/5

    The surface covers the full loop: fetch content, read/write the ad preference, and report sponsored-message status through prepared and delivered stages. Minor gap: no tool to inspect the current status of an in-flight sponsored message or to list past reports, so state can only be pushed, not queried.

    Maintenance

    ActivityMaintained
    ResponsivenessOutdated data

    Related MCP Connectors

    Related MCP Servers

    • F
      license
      Not graded
      quality
      D
      maintenance
      Enables AI assistants to fetch and analyze web content from URLs through MCP protocol. Supports batch processing, content extraction, summarization, and metadata extraction with intelligent filtering of ads and navigation elements.
      -
    • A
      license
      A
      quality
      B
      maintenance
      Enables LLM agents to read and navigate web pages efficiently with token budgets, extract structured data, and optionally control a browser with explicit user consent, remaining read-only by default.
      12
      18 PyPI
      AGPL 3.0
    • A
      license
      A
      quality
      B
      maintenance
      Enables AI assistants to fetch public web pages as readable text or HTML, with caching, live refresh, and parallel job handling.
      3
      21 npm
      MIT
    • A
      license
      Not graded
      quality
      B
      maintenance
      Enables AI agents to read web pages as clean markdown or JSON, crawl sites, search the web with results already read, monitor pages for changes, and run multi-step browser tasks under configurable limits.
      MIT