ClaudeCodeMod

All shelves / MCP servers

Official Ampersand AI SDKs

amp-labs/ai · 12 stars · TypeScript · MIT

MCP server Official AI SDK by Ampersand

Install

The repo has no one-line install. Follow its README.

Open the repo

Files

README.md

Ampersand logo

Discord Documentation PRs welcome License

Official Ampersand AI SDKs

This repo contains the official Ampersand AI SDK and the offical MCP server for Ampersand.

  • AI SDK - Official Ampersand AI SDK that exposes tools for your AI agents to manage and interact with integrations with your customer's SaaS tools.
  • MCP server - Official Ampersand MCP server that exposes the tools from the Ampersand AI SDK.

The examples directory contains examples of how to use the AI SDK with popular agent frameworks.

Ampersand is a platform for AI builders to add B2B SaaS integrations to their agentic apps. To learn more, visit our website.

Ampersand AI SDK

Installation

npm install @amp-labs/ai
# or
yarn add @amp-labs/ai
# or
pnpm add @amp-labs/ai

Usage

The SDK provides several modules that can be used depending on your framework preference:

Using with Vercel AI SDK

import { createRecord, updateRecord } from "@amp-labs/ai/aisdk";

// Use in your AI agent configuration
const tools = [createRecord, updateRecord];

Using with Mastra

import { createRecord, updateRecord } from "@amp-labs/ai/mastra";

// Use in your Mastra workflow
const tools = [createRecord, updateRecord];

Testing

The test directory contains end-to-end tests for the AI SDK.

Running the Simple Test

Prerequisites:

  • OpenAI API key (required for AI model)
  • Ampersand API credentials
  1. Configure environment variables in test/.env:

    OPENAI_API_KEY=your_openai_api_key_here
    AMPERSAND_API_KEY=your_ampersand_api_key_here
    AMPERSAND_PROJECT_ID=your_project_id_here
    AMPERSAND_GROUP_REF=your_group_ref_here
  2. Run the test:

    # From the root directory
    pnpm --filter ai-e2e-test test:simple
    
    # Or from the test directory
    cd test
    pnpm test:simple

The simple test demonstrates how to use the checkConnection tool with the Vercel AI SDK to verify Salesforce connections.

Testing Local Changes

The test uses your local SDK build via pnpm workspace linking. To test modifications to the SDK:

  1. Make changes to SDK source files in sdk/lib/

  2. Rebuild the SDK:

    pnpm --filter @amp-labs/ai build
  3. Re-run the test to verify your changes:

    pnpm --filter ai-e2e-test test:simple

The test will use the freshly built SDK from sdk/dist/, allowing you to iterate quickly on SDK changes.

Ampersand MCP Server

Connect your agents to the 150+ connectors we offer at Ampersand via this multi-tenant MCP server. We expose the primitives we offer on the Ampersand platform as native tools here.

Connect to the remote MCP server

Add the following in your mcp.json in Cursor IDE or claude_desktop_config.json when using Claude desktop.

When running the server in SSE mode

If your MCP client supports headers:

{
  "mcpServers": {
    "@amp-labs/mcp-server": {
      "url": "https://mcp.withampersand.com/v1/sse?project=<AMPERSAND_PROJECT_ID>&integrationName=<AMPERSAND_INTEGRATION_NAME>&groupRef=<AMPERSAND_GROUP_REF>",
      "headers": {
        "x-api-key": "<AMPERSAND_API_KEY>"
      }
    }
  }
}

If your MCP client does not support headers, you can pass the API key in the query param:

{
  "mcpServers": {
    "@amp-labs/mcp-server": {
      "url": "https://mcp.withampersand.com/v1/sse?apiKey=<AMPERSAND_API_KEY>&project=<AMPERSAND_PROJECT_ID>&integrationName=<AMPERSAND_INTEGRATION_NAME>&groupRef=<AMPERSAND_GROUP_REF>"
    }
  }
}

When running the server in stdio mode

{
  "mcpServers": {
    "@amp-labs/mcp-server": {
      "command": "npx",
      "args": [
        "-y",
        "@amp-labs/mcp-server@latest",
        "--transport",
        "stdio",
        "--project",
        "<AMPERSAND_PROJECT_ID>",
        "--integrationName",
        "<AMPERSAND_INTEGRATION_NAME>",
        "--groupRef",
        "<AMPERSAND_GROUP_REF>"
      ],
      "env": {
        "AMPERSAND_API_KEY": "<AMPERSAND_API_KEY>"
      }
    }
  }
}

Connect to the local MCP server

Please refer to the mcp-server README for more information.

License

This project is licensed under the MIT license.

See LICENSE for more information.

Contributing

We welcome contributions! Please refer to the CONTRIBUTING.md file for more information.

Facts

Kind
MCP server
Repo
amp-labs/ai
Group
Uncategorized
Stars
12
License
MIT
Language
TypeScript
Last push
2026-05-30
Forks
3
Topics
agent, agentic-ai, ai, aisdk, mastra, mastra-ai, mcp, mcp-server, tool-calling

More on this shelf

  1. 1REAio.github.morluto/reaReverse engineer anything from your terminal or agent with one CLI and MCP server.125.3k
  2. 2com.browser-use/browser-usecom.browser-use/browser-useControl a real Chrome browser to complete any task: fill forms, extract data, book flights.117.7k
  3. 3World Monitorapp.worldmonitor/mcpLive markets, conflicts, country risk, chokepoints, energy, and China decision signals. 93 tools.88.3k
  4. 4Scrapling MCP Serverd4vinci/scrapling🕷️ An adaptive Web Scraping framework that handles everything from a single request to a full-scale crawl! Don't be shy, join here: https://discord.gg/EMgGbDceNQ and follow here for daily tips and tricks: https://x.com/Scraplingdev86.9k
  5. 5Everythingmodelcontextprotocol/serversThis MCP server attempts to exercise all the features of the MCP protocol. It is not intended to be a useful server, but rather a test server for builders of MCP clients. It implements prompts, tools, resources, sampling, and more to showcase MCP capabilities.85.8k
  6. 6Fetchmodelcontextprotocol/serversA Model Context Protocol server that provides web content fetching capabilities. This server enables LLMs to retrieve and process content from web pages, converting HTML to markdown for easier consumption.85.8k