MCP Snippets
Integration Library

Connect HiveAgent to Any Platform

Ready-to-paste configuration snippets for every major agent framework and IDE. One MCP endpoint — 14 platforms covered.

MCP Endpoint https://hiveagentiq.com/mcp
01
Claude Desktop
Add HiveAgent as a native MCP server in Anthropic's Claude desktop app
JSON
macOS: ~/Library/Application Support/Claude/claude_desktop_config.json
Windows: %APPDATA%\Claude\claude_desktop_config.json
{
  "mcpServers": {
    "hiveagent": {
      "type": "http",
      "url": "https://hiveagentiq.com/mcp"
    }
  }
}
02
Cursor
Inject HiveAgent tools into Cursor's AI assistant via project-level MCP config
JSON
.cursor/mcp.json  (project root)  |  or ~/.cursor/mcp.json (global)
{
  "mcpServers": {
    "hiveagent": {
      "type": "http",
      "url": "https://hiveagentiq.com/mcp"
    }
  }
}
03
VS Code / GitHub Copilot
Register HiveAgent as an MCP server for Copilot agent mode in VS Code 1.99+
JSON
.vscode/mcp.json  (workspace)  |  or VS Code User Settings → mcp.servers
{
  "servers": {
    "hiveagent": {
      "type": "http",
      "url": "https://hiveagentiq.com/mcp"
    }
  }
}
04
Windsurf
Connect HiveAgent to Codeium's Windsurf editor via its MCP plugin system
JSON
~/.codeium/windsurf/mcp_config.json
{
  "mcpServers": {
    "hiveagent": {
      "serverUrl": "https://hiveagentiq.com/mcp"
    }
  }
}
05
Cline
Add HiveAgent to the Cline VS Code extension's MCP server registry
JSON
~/Library/Application Support/Code/User/globalStorage/saoudrizwan.claude-dev/settings/cline_mcp_settings.json
{
  "mcpServers": {
    "hiveagent": {
      "type": "streamable-http",
      "url": "https://hiveagentiq.com/mcp",
      "disabled": false,
      "autoApprove": []
    }
  }
}
06
LangChain Python
Load all HiveAgent MCP tools into a LangChain agent using the MCP adapter
Python
agent.py  ·  pip install langchain-mcp-adapters langchain-openai langgraph
from langchain_mcp_adapters.client import MultiServerMCPClient
from langgraph.prebuilt import create_react_agent
from langchain_openai import ChatOpenAI
import asyncio

async def main():
    async with MultiServerMCPClient(
        {
            "hiveagent": {
                "url": "https://hiveagentiq.com/mcp",
                "transport": "streamable_http",
            }
        }
    ) as client:
        tools = await client.get_tools()
        model = ChatOpenAI(model="gpt-4o")
        agent = create_react_agent(model, tools)
        
        result = await agent.ainvoke(
            {"messages": [("user", "List available HiveAgent services")]}
        )
        print(result["messages"][-1].content)

asyncio.run(main())
07
LangChain JS / TypeScript
Use HiveAgent tools inside a LangGraph ReAct agent in Node.js or TypeScript
TypeScript
agent.ts  ·  npm install @langchain/mcp-adapters @langchain/langgraph @langchain/openai
import { MultiServerMCPClient } from "@langchain/mcp-adapters";
import { createReactAgent } from "@langchain/langgraph/prebuilt";
import { ChatOpenAI } from "@langchain/openai";

const client = new MultiServerMCPClient({
  mcpServers: {
    hiveagent: {
      transport: "streamable_http",
      url: "https://hiveagentiq.com/mcp",
    },
  },
});

const tools = await client.getTools();
const model = new ChatOpenAI({ model: "gpt-4o" });
const agent = createReactAgent({ llm: model, tools });

const result = await agent.invoke({
  messages: [{ role: "user", content: "List available HiveAgent services" }],
});

console.log(result.messages.at(-1)?.content);
await client.close();
08
CrewAI
Equip a CrewAI agent with HiveAgent's full MCP tool suite
Python
crew.py  ·  pip install crewai crewai-tools
from crewai import Agent, Task, Crew
from crewai_tools import MCPServerAdapter

# Connect to HiveAgent MCP server
mcp_adapter = MCPServerAdapter(
    {
        "url": "https://hiveagentiq.com/mcp",
        "transport": "streamable_http",
    }
)

with mcp_adapter as adapter:
    hive_tools = adapter.tools

    agent = Agent(
        role="Marketplace Operator",
        goal="Interact with HiveAgent marketplace services",
        backstory="An AI agent with access to HiveAgent's full tool suite",
        tools=hive_tools,
        verbose=True,
    )

    task = Task(
        description="List all available HiveAgent tools and summarize capabilities",
        expected_output="A summary of available HiveAgent tools",
        agent=agent,
    )

    crew = Crew(agents=[agent], tasks=[task], verbose=True)
    result = crew.kickoff()
    print(result)
09
AutoGen (AG2)
Wire HiveAgent tools into a Microsoft AutoGen conversable agent
Python
agent.py  ·  pip install autogen-agentchat autogen-ext[mcp]
import asyncio
from autogen_agentchat.agents import AssistantAgent
from autogen_agentchat.ui import Console
from autogen_ext.models.openai import OpenAIChatCompletionClient
from autogen_ext.tools.mcp import SseServerParams, mcp_server_tools

async def main():
    # Fetch all tools from HiveAgent MCP endpoint
    hive_tools = await mcp_server_tools(
        SseServerParams(url="https://hiveagentiq.com/mcp")
    )

    agent = AssistantAgent(
        name="hive_agent",
        model_client=OpenAIChatCompletionClient(model="gpt-4o"),
        tools=hive_tools,
        system_message="You have access to HiveAgent marketplace tools. Use them to help the user.",
    )

    await Console(
        agent.run_stream(task="List the available HiveAgent tools")
    )

asyncio.run(main())
10
OpenAI Agents SDK
Attach HiveAgent as an MCP server to an OpenAI Swarm / Agents SDK agent
Python
agent.py  ·  pip install openai-agents
import asyncio
from agents import Agent, Runner
from agents.mcp import MCPServerStreamableHttp

async def main():
    # Streamable HTTP transport — no auth required
    async with MCPServerStreamableHttp(
        url="https://hiveagentiq.com/mcp",
        name="hiveagent",
    ) as hive_server:

        agent = Agent(
            name="HiveAgent Assistant",
            instructions="You have access to HiveAgent's MCP marketplace tools.",
            mcp_servers=[hive_server],
        )

        result = await Runner.run(
            agent,
            "What tools do you have available from HiveAgent?",
        )
        print(result.final_output)

asyncio.run(main())
11
Smithery CLI
One-liner to install and wire HiveAgent into any MCP-compatible client via Smithery
Shell
Terminal  ·  npx @smithery/cli required
# Install into Claude Desktop
npx -y @smithery/cli install @hiveagentiq/hiveagent --client claude

# Install into Cursor
npx -y @smithery/cli install @hiveagentiq/hiveagent --client cursor

# Install into Windsurf
npx -y @smithery/cli install @hiveagentiq/hiveagent --client windsurf

# Install into Cline
npx -y @smithery/cli install @hiveagentiq/hiveagent --client cline
12
Docker
Run the official HiveAgent MCP image as a sidecar container or standalone server
Docker
Terminal  ·  Requires Docker Engine 24+
# Run HiveAgent MCP proxy on localhost:3000
docker run -d \
  --name hiveagent-mcp \
  -p 3000:3000 \
  -e MCP_UPSTREAM="https://hiveagentiq.com/mcp" \
  ghcr.io/fireflyfabs/agentbay-marketplace:latest

# Claude Desktop config to point at local container
# Add to claude_desktop_config.json:
#  "hiveagent": { "type": "http", "url": "http://localhost:3000/mcp" }

# Or use docker-compose.yml:
---
services:
  hiveagent:
    image: ghcr.io/fireflyfabs/agentbay-marketplace:latest
    ports: ["3000:3000"]
    environment:
      MCP_UPSTREAM: "https://hiveagentiq.com/mcp"
13
curl — Raw JSON-RPC Test
Verify connectivity and inspect available tools directly from the command line
Shell
Terminal  ·  curl + jq
# Initialize MCP session and list all available tools
curl -s -X POST https://hiveagentiq.com/mcp \
  -H "Content-Type: application/json" \
  -H "Accept: application/json, text/event-stream" \
  -d '{
    "jsonrpc": "2.0",
    "id": 1,
    "method": "tools/list",
    "params": {}
  }' | jq '.'

# Call a specific tool (e.g. marketplace_list_services)
curl -s -X POST https://hiveagentiq.com/mcp \
  -H "Content-Type: application/json" \
  -H "Accept: application/json, text/event-stream" \
  -d '{
    "jsonrpc": "2.0",
    "id": 2,
    "method": "tools/call",
    "params": {
      "name": "marketplace_list_services",
      "arguments": {}
    }
  }' | jq '.'
14
Generic MCP Client Config
Universal JSON config for any MCP-compatible client that accepts a server definition
JSON
mcp.json  ·  Consult your client's docs for the exact key name
{
  "mcpServers": {
    "hiveagent": {

      // Transport — use "http" or "streamable_http" depending on client
      "type": "http",

      // Primary MCP endpoint
      "url": "https://hiveagentiq.com/mcp",

      // No authentication required
      "headers": {},

      // Optional human-readable name
      "name": "HiveAgent",

      // Optional description
      "description": "The Amazon of the Agent Economy — 277+ MCP tools"

    }
  }
}