drio
Open app

Headless Agents MCP Server

Source

MCP-ts server for calling agents served on Headless Agents

Catalog onlyCatalog onlySTDIO

Overview

Headless Agents MCP Server is a Model Context Protocol (MCP) server designed for integrating Headless Agents with the Claude Desktop application, allowing users to call Headless Agents API directly.

To use the server, clone the repository, install the necessary dependencies, configure your environment with your Headless Agents API key, and start the server. Once set up, you can call agents directly from Claude Desktop.

  • Seamless integration with Claude Desktop - Support for conversation continuity via conversation IDs - Comprehensive error handling and logging - Environment-based configuration
  1. Integrating AI agents into desktop applications for enhanced user interaction.
  2. Facilitating continuous conversations with agents through conversation IDs.
  3. Enabling developers to build applications that leverage Headless Agents API.

Add to your AI client

Use these steps to connect Headless Agents MCP Server in Cursor, Claude, VS Code, and other MCP-compatible apps. The same JSON appears in the Use with menu above for one-click copy.

Cursor

Add this to your .cursor/mcp.json file in your project root, then restart Cursor.

.cursor/mcp.json

{
  "mcpServers": {
    "headless-agents-mcp-ts-headless-agents": {
      "command": "npx",
      "args": [
        "-y",
        "@modelcontextprotocol/server-headless-agents-mcp-ts-headless-agents"
      ]
    }
  }
}

Claude Desktop

Add this server entry to the mcpServers object in your Claude Desktop config, then restart the app.

~/Library/Application Support/Claude/claude_desktop_config.json (macOS) or %APPDATA%\Claude\claude_desktop_config.json (Windows)

{
  "mcpServers": {
    "headless-agents-mcp-ts-headless-agents": {
      "command": "npx",
      "args": [
        "-y",
        "@modelcontextprotocol/server-headless-agents-mcp-ts-headless-agents"
      ]
    }
  }
}

Claude Code

Add this to your project's .mcp.json file. Claude Code will detect it automatically.

.mcp.json (project root)

{
  "mcpServers": {
    "headless-agents-mcp-ts-headless-agents": {
      "command": "npx",
      "args": [
        "-y",
        "@modelcontextprotocol/server-headless-agents-mcp-ts-headless-agents"
      ]
    }
  }
}

VS Code (Copilot)

Add this to your .vscode/mcp.json file. Requires the GitHub Copilot extension with MCP support enabled.

.vscode/mcp.json

{
  "servers": {
    "headless-agents-mcp-ts-headless-agents": {
      "type": "stdio",
      "command": "npx",
      "args": [
        "-y",
        "@modelcontextprotocol/server-headless-agents-mcp-ts-headless-agents"
      ]
    }
  }
}

Windsurf

Add this to your Windsurf MCP config file, then restart Windsurf.

~/.codeium/windsurf/mcp_config.json

{
  "mcpServers": {
    "headless-agents-mcp-ts-headless-agents": {
      "command": "npx",
      "args": [
        "-y",
        "@modelcontextprotocol/server-headless-agents-mcp-ts-headless-agents"
      ]
    }
  }
}

Cline

Open Cline settings, navigate to MCP Servers, and add this server configuration.

Cline MCP Settings (via UI)

{
  "mcpServers": {
    "headless-agents-mcp-ts-headless-agents": {
      "command": "npx",
      "args": [
        "-y",
        "@modelcontextprotocol/server-headless-agents-mcp-ts-headless-agents"
      ]
    }
  }
}

FAQ

What are the prerequisites for using the server?

You need Node.js (v16 or higher), a Headless Agents API key, and the Claude Desktop application.

How do I handle errors when using the server?

The server includes built-in error handling for various issues like API authentication errors and network failures.

Can I use this server for multiple agents?

Yes! You can call different agents by specifying their agent IDs in your requests.7:["$","div",null,{"className":"container mx-auto flex flex-col gap-4","children":["$L26","$L27",["$","$L28",null,{"currentProject":{"id":1629,"uuid":"a6f257de-a7d3-407c-bb20-a3dcadb8698a","name":"headless-agents-mcp-ts","title":"Headless Agents MCP Server","description":"MCP-ts server for calling agents served on Headless Agents","avatar_url":"https://avatars.githubusercontent.com/u/197095086?v=4","created_at":"2025-02-23T09:54:26.956Z","updated_at":"2025-03-05T04:20:42.125Z","status":"created","author_name":"Headless-Agents","author_avatar_url":"https://avatars.githubusercontent.com/u/197095086?v=4","tags":"mcp-server,headless-agents,api-integration","category":"developer-tools","is_featured":false,"sort":1,"url":"https://github.com/Headless-Agents/headless-agents-mcp-ts","target":"_self","content":"$29","summary":"$2a","img_url":null,"type":null,"metadata":"{\"star\":\"1\",\"license\":\"MIT license\",\"language\":\"TypeScript\",\"is_official\":false,\"latest_commit_time\":\"2025-02-22 13:25:18\"}","user_uuid":null,"tools":null,"sse_url":null,"sse_provider":null,"sse_params":null,"is_official":false,"server_command":null,"server_params":null,"server_config":null,"allow_call":false,"is_innovation":false,"is_dxt":false,"dxt_manifest":null,"dxt_file_url":null,"is_audit":false},"randomProjects":[],"currentServerKey":"$undefined"}]]}]