home / mcp / agentset mcp server

Agentset MCP Server

Agentset MCP Server - Build RAG with Agentic superpowers

Installation
Add the following to your MCP client configuration file.

Configuration

View docs
{
  "mcpServers": {
    "agentset-ai-mcp-server": {
      "command": "npx",
      "args": [
        "-y",
        "@agentset/mcp@latest"
      ],
      "env": {
        "AGENTSET_API_KEY": "YOUR_API_KEY_PLACEHOLDER",
        "AGENTSET_NAMESPACE_ID": "YOUR_NAMESPACE_ID_PLACEHOLDER"
      }
    }
  }
}

Agentset MCP lets you run a local MCP server for Agentset to power Retrieval-Augmented Generation (RAG) workflows. It provides a simple way to connect your applications to Agentset’s MCP features from your development environment using a lightweight local runtime.

How to use

You use the Agentset MCP by running it locally in your development environment. This MCP is designed to be started with a command that invokes a package runner (npx) to load the Agentset MCP package. Once running, you can point your MCP-enabled client at the same namespace you specify during startup. The client can then request tool-like capabilities, pass documents, and receive results that combine Agentset’s knowledge with your data.

How to install

Prerequisites you need before starting: Node.js installed on your machine and a working npm/yarn/pnpm setup. You also need an API key from Agentset to access the MCP features.

# Install and run Agentset MCP using npm
AGENTSET_API_KEY=your-api-key npx @agentset/mcp --ns your-namespace-id

# Alternative using yarn
AGENTSET_API_KEY=your-api-key yarn dlx @agentset/mcp --ns your-namespace-id

# Alternative using pnpm
AGENTSET_API_KEY=your-api-key pnpm dlx @agentset/mcp --ns your-namespace-id

Additional notes

If you want to integrate with Claude or other clients, you can provide a MCP server configuration that runs the same Agentset MCP package via npx, with appropriate environment variables.

Configuration and example MCP config

{
  "mcpServers": {
    "agentset": {
      "command": "npx",
      "args": ["-y", "@agentset/mcp@latest"],
      "env": {
        "AGENTSET_API_KEY": "agentset_xxx",
        "AGENTSET_NAMESPACE_ID": "ns_xxx"
      }
    }
  }
}

Security and environment variables

Protect your API key and namespace identifier. Do not commit keys to source control. Use a secure environment or secret management mechanism in your development and CI environments.