---
title: "Cloudflare Agents SDK + Apideck MCP"
description: "The Cloudflare Agents SDK lets you build stateful, long-running AI agents on Cloudflare Workers with built-in MCP server support. Connect to the Apideck MCP Server and give your edge-deployed agents access to accounting, HRIS, and file storage data across 200+ SaaS apps."
url: "https://www.apideck.com/mcp-server/cloudflare-agents-sdk"
section: "MCP server"
tags: ["MCP", "Cloudflare Agents SDK"]
---

# Cloudflare Agents SDK + Apideck MCP

The Cloudflare Agents SDK lets you build stateful, long-running AI agents on Cloudflare Workers with built-in MCP server support. Connect to the Apideck MCP Server and give your edge-deployed agents access to accounting, HRIS, and file storage data across 200+ SaaS apps.

- MCP endpoint: https://mcp.apideck.dev/mcp
- Framework docs: https://developers.cloudflare.com/agents/model-context-protocol/client/
- Languages: TypeScript
- HTML page: https://www.apideck.com/mcp-server/cloudflare-agents-sdk

## Get started with Cloudflare Agents SDK

Connect Cloudflare Agents SDK to the Apideck MCP Server with a few lines of code.

```typescript
import { MCPClientManager } from "agents/mcp/client";

const mcpManager = new MCPClientManager("my-agent", "1.0.0");

await mcpManager.connect(
  "apideck",
  {
    url: "https://mcp.apideck.dev/mcp",
    headers: {
      "x-apideck-api-key": "YOUR_API_KEY",
      "x-apideck-app-id": "YOUR_APP_ID",
      "x-apideck-consumer-id": "YOUR_CONSUMER_ID",
    },
  }
);

const tools = mcpManager.listTools();
```

## Available tools by API

Every resource below is accessible as a set of MCP tools (list, get, create, update, delete) through Cloudflare Agents SDK.

### Accounting API

- Tools: https://www.apideck.com/mcp-server/accounting-api
- Resources (43): Aged Creditors, Aged Debtors, Attachments, BalanceSheet, Bank Accounts, Bank Feed Accounts, Bank Feed Statements, Bill Credit Notes, Bill Payments, Bills, Categories, Companies, Company Info, Credit Notes, Customers, Departments, Employees, Expense Categories, Expense Reports, Expenses, Fiscal Periods, General Ledger Transactions, Goods Receipts, Invoice Items, Invoices, Journal Entries, Journals, Ledger Accounts, Locations, Payment Methods, Payments, ProfitAndLoss, Projects, Purchase Orders, Quotes, Refunds, Sales Orders, Sales Receipts, Subsidiaries, Suppliers, Tax Rates, Tracking Categories, Trial Balance

### CRM API

- Tools: https://www.apideck.com/mcp-server/crm-api
- Resources (11): Activities, Companies, Contacts, Custom Object Schemas, Custom Objects, Leads, Lists, Notes, Opportunities, Pipelines, Users

### File Storage API

- Tools: https://www.apideck.com/mcp-server/file-storage-api
- Resources (6): DriveGroups, Drives, Files, Folders, Shared Links, Upload Sessions

### HRIS API

- Tools: https://www.apideck.com/mcp-server/hris-api
- Resources (5): Companies, Departments, Employees, Payrolls, Time Off Requests

### Issue Tracking API

- Tools: https://www.apideck.com/mcp-server/issue-tracking-api
- Resources (5): Collections, Comments, Tags, Tickets, Users

### Ecommerce API

- Tools: https://www.apideck.com/mcp-server/ecommerce-api
- Resources (4): Customers, Orders, Products, Stores

### ATS API

- Tools: https://www.apideck.com/mcp-server/ats-api
- Resources (3): Applicants, Applications, Jobs

## Also works with

- [OpenAI Agents SDK](https://www.apideck.com/mcp-server/openai-agents-sdk)
- [LangChain](https://www.apideck.com/mcp-server/langchain)
- [Google ADK](https://www.apideck.com/mcp-server/google-adk)
- [Vercel AI SDK](https://www.apideck.com/mcp-server/vercel-ai-sdk)
- [Claude Desktop](https://www.apideck.com/mcp-server/claude-desktop)
- [Cursor](https://www.apideck.com/mcp-server/cursor)
- [CrewAI](https://www.apideck.com/mcp-server/crewai)
- [OpenClaw](https://www.apideck.com/mcp-server/openclaw)
- [Hermes](https://www.apideck.com/mcp-server/hermes)
- [Windsurf](https://www.apideck.com/mcp-server/windsurf)
- [Cline](https://www.apideck.com/mcp-server/cline)
- [Roo Code](https://www.apideck.com/mcp-server/roo-code)
- [GitHub Copilot](https://www.apideck.com/mcp-server/github-copilot)
- [Gemini CLI](https://www.apideck.com/mcp-server/gemini-cli)
