The MCP Server Protocol allows you to run a local server that can be used with Claude and other AI assistants to access your data.

Installation

Choose one of the following methods to install and run the MCP server:

Using npm

AGENTSET_API_KEY=your-api-key npx @agentset/mcp --ns your-namespace-id

Using yarn

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

Using pnpm

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

Adding to Claude

To add the MCP server to Claude, include the following configuration in your Claude settings:

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

Tips

Passing namespace id as an environment variable

AGENTSET_API_KEY=your-api-key AGENTSET_NAMESPACE_ID=your-namespace-id npx @agentset/mcp

Passing a custom tool description

AGENTSET_API_KEY=your-api-key npx @agentset/mcp --ns your-namespace-id -d "Your custom tool description"

Passing a tenant id

AGENTSET_API_KEY=your-api-key npx @agentset/mcp --ns your-namespace-id -t your-tenant-id