Skip to main content

Chans MCP

Copy the configuration for your app below. Replace YOUR_CHANS_API_KEY with a key from Chans Developer settings → API keys.

Use npx with Node.js 22+, or uvx with uv and Python 3.12+. No global package installation is needed. Keep your API key private.

Claude Desktop and Cursor

  • Claude Desktop: open Settings → Developer → Edit Config.
  • Cursor: open ~/.cursor/mcp.json for your personal configuration.

Paste one of these configurations, save, and restart the app. If mcpServers already exists, add only the chans entry inside it.

With npx

{
  "mcpServers": {
    "chans": {
      "command": "npx",
      "args": ["-y", "@ai-chans/mcp"],
      "env": {
        "CHANS_API_KEY": "YOUR_CHANS_API_KEY"
      }
    }
  }
}

With uvx

{
  "mcpServers": {
    "chans": {
      "command": "uvx",
      "args": ["chans-mcp"],
      "env": {
        "CHANS_API_KEY": "YOUR_CHANS_API_KEY"
      }
    }
  }
}

Setup references: Claude Desktop and Cursor.

Claude Code

Run one command in your terminal:

npx:

claude mcp add --scope user --env CHANS_API_KEY=YOUR_CHANS_API_KEY --transport stdio chans -- npx -y @ai-chans/mcp

uvx:

claude mcp add --scope user --env CHANS_API_KEY=YOUR_CHANS_API_KEY --transport stdio chans -- uvx chans-mcp

Run claude mcp list to check the connection. Inside Claude Code, use /mcp to inspect the server. Claude Code setup reference.

VS Code

Open the Command Palette and run MCP: Open User Configuration. Paste this configuration, save, then use MCP: List Servers to start chans.

{
  "servers": {
    "chans": {
      "type": "stdio",
      "command": "npx",
      "args": ["-y", "@ai-chans/mcp"],
      "env": {
        "CHANS_API_KEY": "YOUR_CHANS_API_KEY"
      }
    }
  }
}

For uvx, change "command" to "uvx" and "args" to ["chans-mcp"]. VS Code uses servers instead of mcpServers. VS Code configuration reference.

Custom headers and dev

With npx or uvx (stdio)

Use --header "Name: value" for each header. With 0.1.4+, this configuration needs no environment variables:

{
  "mcpServers": {
    "chans-dev": {
      "command": "npx",
      "args": [
        "-y", "@ai-chans/mcp",
        "--url", "https://dev-api.chans.ai/mcp/",
        "--header", "Authorization: Bearer YOUR_DEV_CHANS_API_KEY",
        "--header", "CF-Access-Client-Id: YOUR_CF_CLIENT_ID",
        "--header", "CF-Access-Client-Secret: YOUR_CF_CLIENT_SECRET",
        "--header", "X-Custom-Header: YOUR_VALUE"
      ]
    }
  }
}

For uvx, use "command": "uvx" and replace the first two arguments with "chans-mcp". The same flags work with doctor. --url overrides CHANS_MCP_URL; it defaults to production when neither is set.

A stdio client does not forward a top-level headers field to its child process. Use the arguments above. CHANS_API_KEY remains supported instead of an explicit Authorization header; do not configure both. The Cloudflare environment variables from 0.1.3 remain supported for existing configurations.

Headers are checked for valid HTTP names and printable ASCII values. Control characters (including CR/LF), duplicate names ignoring case, and HTTP/MCP transport header overrides are rejected. The limit is 64 headers and 16 KiB in total. Credentials are not printed or forwarded across origins. Header values are not HTML-escaped or otherwise rewritten; validation protects HTTP framing.

With an HTTP client

Clients that support remote HTTP servers and custom headers, such as Cursor, can connect directly using a headers object:

{
  "mcpServers": {
    "chans-dev": {
      "url": "https://dev-api.chans.ai/mcp/",
      "headers": {
        "Authorization": "Bearer YOUR_DEV_CHANS_API_KEY",
        "CF-Access-Client-Id": "YOUR_CF_CLIENT_ID",
        "CF-Access-Client-Secret": "YOUR_CF_CLIENT_SECRET",
        "X-Custom-Header": "YOUR_VALUE"
      }
    }
  }
}

This direct connection uses the client's header handling. The wrapper's validation applies to its stdio launcher only. Your Cloudflare Access policy must allow the service token. Cloudflare service-token setup.

Other MCP clients

Choose stdio as the transport and enter:

Field npx uvx
Command npx uvx
Arguments -y, @ai-chans/mcp chans-mcp
Environment CHANS_API_KEY=YOUR_CHANS_API_KEY CHANS_API_KEY=YOUR_CHANS_API_KEY

On Windows, use npx.cmd if your app cannot launch npx. If a command cannot be found, use its full executable path. Chans connects to https://api.chans.ai/mcp/; your API key's scopes determine which tools are available.

Development · Releases

Metadata

Release files for chans-mcp 0.1.4

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

Source distribution (sdist)

Source distribution for chans-mcp 0.1.4
File Size Uploaded Provenance Actions
chans_mcp-0.1.4.tar.gz 52.3 kB With provenance Details for chans_mcp-0.1.4.tar.gz

Built distribution (wheel)

Table of built distributions (wheels) for chans-mcp 0.1.4
File Interpreter ABI Platform Actions
chans_mcp-0.1.4-py3-none-any.whl Python 3 none any Details for chans_mcp-0.1.4-py3-none-any.whl

Total release size: 63.3 kB

Release files / chans_mcp-0.1.4.tar.gz

Download URL chans_mcp-0.1.4.tar.gz
Size 52.3 kB
Tags Source
SHA-256 checksum
How to use checksums
231b312329d0e13860996cfda572184c39ed28ef78a999b3b252b60f3dedbb4f
BLAKE2b-256 checksum
How to use checksums
377abe18492a57fa673a33672fb776330c7ec7854d90810ee078f2e1888aa0b6
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via twine/7.0.0 CPython/3.13.16

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.

PyPI Publish Attestation

PyPI verified that this artifact, at this checksum, originated from the publisher listed below.

Signed by GitHub Actions, verified by PyPI on Nov 10, 2026.

Transparency log

Release files / chans_mcp-0.1.4-py3-none-any.whl

Download URL chans_mcp-0.1.4-py3-none-any.whl
Size 11.0 kB
Tags Python 3
SHA-256 checksum
How to use checksums
dfe42e130b4cb5e518dd407f66ed5232b0a0144a8cdbd763e7e2edd00c5a73e3
BLAKE2b-256 checksum
How to use checksums
ba06faa3b6a926d56dc30a2d39856c56f4b37c5cfa13057cc575ff89bd173809
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via twine/7.0.0 CPython/3.13.16

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.

PyPI Publish Attestation

PyPI verified that this artifact, at this checksum, originated from the publisher listed below.

Signed by GitHub Actions, verified by PyPI on Nov 10, 2026.

Transparency log

Security for chans-mcp 0.1.4

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.

Full provenance

Both files in this release have been uploaded with provenance metadata.

Select from 2 files

Attestation for chans_mcp-0.1.4.tar.gz

PyPI Publish Attestation

PyPI verified that this artifact, at this checksum, originated from the publisher listed below.

Signed by GitHub Actions, verified by PyPI on Nov 10, 2026.

Transparency log

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.

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