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 🙏

© 2025 – Pkg Stats / Ryan Hefner

@rockship/cosmoagents-mcp

v1.0.14

Published

A powerful Model Context Protocol (MCP) server implementation for seamless Cosmoagents API integration, enabling AI assistants to interact with Cosmoagents data

Downloads

22

Readme

Cosmoagents MCP Server

A powerful Model Context Protocol (MCP) server implementation for seamless Cosmoagents API integration, enabling AI assistants to create and manage email campaigns.

Overview

This MCP server provides a comprehensive set of tools for interacting with the Cosmoagents API, allowing AI assistants to:

  • Create and manage email campaigns directly from your AI assistant interface

Why Use This MCP Server?

  • Seamless AI Integration: Connect your AI assistants directly to Cosmoagents data
  • Simplified API Operations: Perform common Cosmoagents tasks through natural language commands
  • Real-time Data Access: Get up-to-date information from Cosmoagents
  • Secure Authentication: Uses Cosmoagents's secure API token authentication
  • Extensible Design: Easily add more Cosmoagents API capabilities as needed

Installation

# Clone the repository
git clone https://gitlab.rockitflow.com/rockship/mcp-servers/cosmoagents-mcp.git
cd cosmoagents-mcp

# Install dependencies
npm install

# Build the project
npm run build

Configuration

The server requires an Cosmoagents API access token. You can obtain one by:

  1. Going to your Cosmoagents Account
  2. Generating an API key

You can provide the token in two ways:

  1. As an environment variable:

    COSMOAGENTS_API_KEY=your-api-key
  2. As a command-line argument:

    npm start -- --api-key=your-api-key

For development, create a .env file in the project root to store your environment variables:

COSMOAGENTS_API_KEY=your-api-key

Usage

Starting the Server

# Start the server
npm start

# Or with a specific API key
npm start -- --api-key=your-api-key

Integrating with AI Assistants

This MCP server is designed to work with AI assistants that support the Model Context Protocol. Once running, the server exposes a set of tools that can be used by compatible AI assistants to interact with Cosmoagents data.

Available Tools

The server exposes the following powerful Cosmoagents integration tools:

  1. create_campaign
    • Use the create_campaign tool to create a new email campaign for a contact list
    • Parameters:
      • contacts (array of objects, required): Array of contacts to include in the campaign. Each contact object should have first_name (string), last_name (string), email (string, required), and job_title (string).
      • playbook (enum, optional): Campaign playbook type. Defaults to revive_dormant_leads. Possible values: revive_dormant_leads, upsell_to_existing_customers, event_invite, content_offering, webinar_follow_up, click_start_from_scratch.
      • name (string, optional): Optional custom name for the campaign.
    • Example:
      {
        "contacts": [
          {
            "first_name": "John",
            "last_name": "Doe",
            "email": "[email protected]",
            "job_title": "Software Engineer"
          }
        ],
        "playbook": "event_invite",
        "name": "My Event Campaign"
      }

Extending the Server

The server is designed to be easily extensible. To add new Cosmoagents API capabilities:

  1. Add new methods to CosmoagentsClient: If you want to add a new Cosmoagents API capability, you will add a new method to the CosmoagentsClient class in src/common/network/cosmoagents-client.ts.
  2. Create a new tool file: Create a new TypeScript file in src/common/tools/ (e.g., new-tool.tool.ts) to define your new tool. This file will implement the ToolDefinition interface and utilize the CosmoagentsClient method you added.
  3. Register the tool in ToolFactory: Add your new tool to the registerAllTools method in src/common/factories/tool.factory.ts.
  4. Rebuild the project: Run npm run build to compile your changes.

License

This project is licensed under the MIT License - see the LICENSE file for details.

Keywords

Cosmoagents mcp, Model Context Protocol, MCP, Campaign, AI Tools