Constile logo

Constile

Fetches web pages and manages Constile sponsored messages according to a person's saved preference.

Install Constile

Pick your client, then add it in one click or paste the config.

STDIONode.js
~/Library/Application Support/Claude/claude_desktop_config.json
claude_desktop_config.json
{
  "mcpServers": {
    "constile": {
      "command": "npx",
      "args": [
        "-y",
        "constile-mcp"
      ],
      "env": {
        "CONSTILE_PREFS": "YOUR_VALUE_HERE",
        "CONSTILE_UA": "YOUR_VALUE_HERE"
      }
    }
  }
}

Settings → Developer → Edit Config, merge this into mcpServers, then fully quit and reopen Claude Desktop.

Values are written into the snippet above so you can paste it as is. They never leave your browser.

Claude Code command
claude mcp add --env CONSTILE_PREFS=YOUR_VALUE_HERE --env CONSTILE_UA=YOUR_VALUE_HERE --transport stdio constile -- npx -y constile-mcp

Run in your terminal. Add --scope project to share it with your team through .mcp.json.

Automated check passed— started and listed 4 tools correctly ().

Overview

Constile MCP server lets assistants fetch web pages while handling Constile sponsored messages according to a person's choice. Its MCP tools read articles, store or retrieve an `accept`, `ask`, or `decline` preference, and report when a sponsored message is prepared or delivered. Use it when an agent needs page content and a consistent way to present publisher-sponsored messages. It runs over stdio with Node.js 20 or later.

Use cases

  • Fetch articles for an assistant response
  • Apply a person's sponsored-message preference
  • Ask before showing publisher-sponsored content
  • Report when a sponsored message is prepared or delivered

Key features

  • Web page fetching through `read_article`
  • Accept, ask, or decline preference handling
  • Local preference storage
  • Sponsored-message status reporting
  • Configurable preference path and user agent

Tools4

What Constile lets your agent do. Expand a tool for its parameters.

Verified live~394 tokens of context

Security & health

What it can reach and how reliably it runs — from our own checks, not the maintainer’s claims.

ActiveLast checked

Recent health check succeeded.

What it can do

From the 4 tools this server returned when we ran it.

Makes changes · 1Makes network requests · 1Read-only tools · 3
Network at startup3 connections
Files written at startupNone
Install scriptsNone
npm provenanceNot published
Package age11 days
Maintainers1

Observed 2026-12-02 in an isolated sandbox. A description of reach, not a security audit.

Supply-chain signal

No high-severity advisories surfaced by our automated scan.

Critical 0High 0Medium 0Low 0

Scanned 5d ago via OSV.dev · constile-mcp (npm)

Adoption & maintenance

Factual signals from GitHub, npm, and our automated checks — not a rating.

npm downloads966Package downloads in the last 30 days.
Last commit13d agoMost recent push to the default branch.
Availability100%Our rolling endpoint + install checks that succeeded.
Install checkPassedOur sandbox started it and listed its tools.
Tools exposed4Callable tools this server registers over MCP.

How Constile works

What Constile does

Constile connects an AI assistant to web pages and the Constile publisher advertising flow. Its main operation, read_article, fetches a page and checks whether it carries a Constile ad. If one is present, the tool applies the person's saved preference and returns the page content with the sponsored message that should appear in the assistant's answer.

The system is designed to replace page advertising with one labeled sponsored message shown in the assistant response. The publisher can receive payment from the advertiser, while the person's preference remains on their own machine.

How it works

A preference can be one of three values:

  • accept: allow the sponsored message flow.
  • ask: require the assistant to ask the person.
  • decline: decline the sponsored message.

Before a preference is saved, get_constile_preference returns ask. The assistant should call set_constile_preference only after the person explicitly chooses an option. Once a sponsored message is included in an answer, report_sponsored_message can tell the publisher whether the message is prepared or delivered.

The server stores the preference locally. It keeps the person's choice on their machine and sends nothing about the person or the conversation.

Setup and configuration

Constile requires Node.js 20 or later. For an MCP client that launches servers over stdio, add a server entry using npx:

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

Claude Code can register it with:

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

Two environment variables control local behavior. CONSTILE_PREFS changes the preference file location; the default is ~/.config/constile/preferences.json. CONSTILE_UA sets the user agent used for page requests, defaulting to ConstileMCP-User/0.1 (+https://constile.app).

To build from source, install dependencies, run the test suite, and create the build with npm install, npm test, and npm run build.

Tools and capabilities

  • read_article fetches a page and applies the saved Constile preference when a Constile ad is present.
  • get_constile_preference returns the stored preference, or ask before one has been saved.
  • set_constile_preference records accept, ask, or decline after the person chooses.
  • report_sponsored_message reports whether a sponsored message is prepared for the answer or has been delivered to the person.

Limitations and notes

The server is intended for clients that can run MCP servers over stdio. Preference state is local to the machine running the server and is stored as a single choice in a JSON file. Sponsored-message handling applies when the fetched page carries a Constile ad; ordinary page fetching remains the responsibility of read_article.

The project is licensed under MIT. Support is available at hello@constile.app, while agent builders can use the related constile-agent-sdk and Constile developer API resources.

Written by AllMCPs with AI assistance from the project’s README and listing data. How we build listings

Reviews

No reviews yet — be the first to share how it worked for you.

Frequently Asked Questions about Constile

Constile is an MCP server that connects AI assistants to web pages and the Constile publisher advertising flow. Its tools fetch articles, retrieve and save accept/ask/decline preferences, and report whether a sponsored message is prepared or delivered. It runs over stdio and requires Node.js 20 or later.

Install it by adding `npx -y constile-mcp` as an MCP server using stdio. In Claude Code, run `claude mcp add constile -- npx -y constile-mcp`. Node.js 20 or later is required.

Constile stores the person's preference locally in `~/.config/constile/preferences.json` by default. Set `CONSTILE_PREFS` to use another path. The server keeps only that choice on the person's machine.

The preference is `ask` until the person selects an option. Use `get_constile_preference` to read that state, and call `set_constile_preference` only after the person chooses `accept`, `ask`, or `decline`.

Yes. Constile can run in Cursor when configured as a standard stdio MCP server. Add an entry that launches `npx -y constile-mcp`; Node.js 20 or later is required.

Related MCP servers

Add a badge to your READMEShow it’s listed — live SVG, Markdown or HTML.

AllMCPs Directory Badge

Full Badge Customizer

Showcase your server listing on GitHub or your project documentation. Embed this dynamic SVG badge to highlight official listing status and live engagement.

Badge Style:
Live Dynamic SVG PreviewConstile AllMCPs Directory Badge
Markdown (GitHub README)
[![AllMCPs](https://allmcps.com/api/badge/constile?style=directory)](https://allmcps.com/mcp/constile)
HTML Embed
<a href="https://allmcps.com/mcp/constile"><img src="https://allmcps.com/api/badge/constile?style=directory" alt="Constile on AllMCPs" /></a>