npm package discovery and stats viewer.

Discover Tips

  • General search

    [free text search, go nuts!]

  • Package details

    pkg:[package-name]

  • User packages

    @[username]

Sponsor

Optimize Toolset

I’ve always been into building performant and accessible sites, but lately I’ve been taking it extremely seriously. So much so that I’ve been building a tool to help me optimize and monitor the sites that I build to make sure that I’m making an attempt to offer the best experience to those who visit them. If you’re into performant, accessible and SEO friendly sites, you might like it too! You can check it out at Optimize Toolset.

About

Hi, 👋, I’m Ryan Hefner  and I built this site for me, and you! The goal of this site was to provide an easy way for me to check the stats on my npm packages, both for prioritizing issues and updates, and to give me a little kick in the pants to keep up on stuff.

As I was building it, I realized that I was actually using the tool to build the tool, and figured I might as well put this out there and hopefully others will find it to be a fast and useful way to search and browse npm packages as I have.

If you’re interested in other things I’m working on, follow me on Twitter or check out the open source projects I’ve been publishing on GitHub.

I am also working on a Twitter bot for this site to tweet the most popular, newest, random packages from npm. Please follow that account now and it will start sending out packages soon–ish.

Open Software & Tools

This site wouldn’t be possible without the immense generosity and tireless efforts from the people who make contributions to the world and share their work via open source initiatives. Thank you 🙏

© 2026 – Pkg Stats / Ryan Hefner

@atray/mcp

v1.1.0

Published

MCP server for ATRAY API - manage campaigns, posts and brand profile via AI

Readme

ATRAY MCP

npm version

MCP (Model Context Protocol) server for the ATRAY API. Lets an AI assistant (Claude, Claude Code, Cursor, and any other MCP client) manage your ATRAY campaigns, posts, and brand profile in natural language.

ATRAY is a SaaS that creates Instagram content with AI: you describe your brand, the AI generates posts (image, caption, hashtags), and ATRAY schedules and publishes them for you.

Requirements

  • Node.js >= 18
  • An ATRAY account and an API key. Generate one in the Studio under Settings → API keys (https://studio.atray.app). The key (atray_...) is shown only once on creation, so store it safely.

Quick start

Claude Code (CLI), one command

claude mcp add atray -e ATRAY_API_KEY=atray_your_key -- npx -y @atray/mcp

Manual config (Claude Desktop, Cursor, and others)

Add this to your client's MCP config (in Claude Desktop, claude_desktop_config.json):

{
  "mcpServers": {
    "atray": {
      "command": "npx",
      "args": ["-y", "@atray/mcp"],
      "env": { "ATRAY_API_KEY": "atray_your_key" }
    }
  }
}

Restart the client and the ATRAY tools become available.

Environment variables

| Variable | Required | Default | Description | |---|---|---|---| | ATRAY_API_KEY | yes | - | Your ATRAY API key (atray_...). | | ATRAY_API_URL | no | https://api.atray.app | Override the API base URL (for self-hosted / staging). |

Tools

| Tool | What it does | |---|---| | getBrandProfile / updateBrandProfile | View and update the brand profile. | | listCampaigns / createCampaign / getCampaign / updateCampaign | Manage campaigns. createCampaign generates posts with AI (1 content credit per post). | | listCampaignPosts | List posts of a campaign. | | listPosts / createPost / getPost / updatePost | Manage posts (text and carousel). | | regeneratePostText / regeneratePostImage | Regenerate caption or image with AI. | | uploadPostVideo | Upload a video (mp4/mov/webm, up to 120 MB) as the post media; published to Instagram as a Reel. | | listSocialConnections | List your connected social accounts (read-only) to pick a publish target. | | schedulePost | Schedule/publish a post (omit scheduled_at to publish as soon as possible). | | listCrmContacts / createCrmContact / getCrmContact / updateCrmContact / importCrmContacts | Manage CRM contacts (import from CSV, tags, custom fields). | | listCrmLists | List contact lists (segments). | | listCrmPipelines / getCrmPipelineBoard | View sales pipelines and their kanban board. | | listCrmDeals / createCrmDeal / getCrmDeal / updateCrmDeal / moveCrmDealStage | Manage deals and move them across pipeline stages. | | listCrmConversations / getCrmConversationMessages | Read the WhatsApp inbox (conversations and message history). | | sendCrmMessage | Send a WhatsApp message as a human attendant (pauses the AI agent on that conversation - human takeover). | | listCrmAgents / updateCrmAgent | View and configure the AI agents that answer WhatsApp conversations. | | listCrmAutomations / createCrmAutomation / updateCrmAutomation | Manage CRM automations (birthday, inactivity, follow-up, keyword and deal-stage triggers). | | listCrmSequences / enrollContactInSequence | Manage follow-up sequences and enroll contacts. | | getCrmDashboardOverview | CRM KPIs: contacts, conversations, deal funnel, AI agent replies/escalations. | | getBillingUsage | Current-month usage and quota per module: posts, publicacoes and atendimentos (CRM AI conversations). |

Each AI-generated post consumes 1 content credit from your plan. Creating a campaign requires a completed brand profile. sendCrmMessage is the only tool that reaches a real customer directly - review the text before calling it, since it is not reversible.

API keys are created and managed in the Studio (Settings → API keys), not through the API/MCP.

API reference

Full interactive REST reference (Swagger): https://api.atray.app/docs/

Local development

git clone https://github.com/atray-app/mcp.git
cd mcp
npm install
ATRAY_API_KEY=atray_your_key npm start

The server speaks MCP over stdio.

Links

License

MIT