<!-- mobian-agent-page publisher="dailydev" canonical="https://daily.dev/posts/extending-agentforce-with-external-mcp-tools-via-mulesoft-l2004dr3y" -->

---
title: Extending Agentforce with External MCP Tools via MuleSoft
description: A step-by-step guide to extending Salesforce Agentforce agents with external tools using the Model Context Protocol (MCP) hosted on MuleSoft CloudHub. The...
canonical: https://daily.dev/posts/extending-agentforce-with-external-mcp-tools-via-mulesoft-l2004dr3y
twitter:card: summary_large_image
twitter:site: @dailydotdev
og:type: website
og:site_name: daily.dev
og:title: Extending Agentforce with External MCP Tools via MuleSoft | daily.dev
og:description: A step-by-step guide to extending Salesforce Agentforce agents with external tools using the Model Context Protocol (MCP) hosted on MuleSoft CloudHub. The...
og:url: https://daily.dev/posts/extending-agentforce-with-external-mcp-tools-via-mulesoft-l2004dr3y
og:image: https://api.daily.dev/og/posts/l2004Dr3Y.png
og:image:alt: Extending Agentforce with External MCP Tools via MuleSoft
og:image:width: 1200
og:image:height: 630
og:locale: en
---

> ## Documentation Index
> Fetch the complete documentation index at: https://daily.dev/llms.txt
> Use this file to discover all available pages before exploring further.

# Extending Agentforce with External MCP Tools via MuleSoft

**[Salesforce Developers Blog](https://daily.dev/sources/salesforcedevs)** · 7 min read · 1 upvotes · 0 comments

## Summary

A step-by-step guide to extending Salesforce Agentforce agents with external tools using the Model Context Protocol (MCP) hosted on MuleSoft CloudHub. The tutorial covers building a timezone MCP server in MuleSoft using DataWeave 2.0, securing it with OAuth 2.0 via Anypoint Connected Apps, deploying it to CloudHub, registering it in Salesforce's API Catalog, and wiring it into an Agentforce agent via Agent Studio. The MCP approach eliminates custom Apex callouts by using JSON-RPC over HTTP with automatic token management, tool discovery, and error handling handled by the Salesforce platform.

## Full article

daily.dev links to this article rather than hosting it. Read it at the original source: <https://developer.salesforce.com/blogs/2026/08/extending-agentforce-with-external-mcp-tools-via-mulesoft>

## Questions this post answers

### How do I connect an external MCP server to a Salesforce Agentforce agent without writing Apex code?

Deploy an OAuth 2.0 secured MCP server on MuleSoft CloudHub, then register it in Salesforce under Setup > API Catalog > MCP Server using Import External MCP Server. Salesforce automatically calls the identity provider for a token, negotiates the protocol via initialize, and discovers tools via tools/list, creating GenAiFunction records that can be added to an agent's allowlist and used in Agent Script.

_Explore MCP integration patterns on daily.dev before wiring your next Agentforce tool._

### What MCP protocol methods does a Salesforce-compatible MCP server need to implement?

A Salesforce-compatible MCP server needs three core JSON-RPC methods: initialize for the handshake and protocol version negotiation (e.g. 2024-11-05), tools/list to advertise the tool catalog, and tools/call to execute a specific tool. Requests use bearer token authentication, and errors return JSON-RPC code -32000 for unauthorized access.

_Developers building MCP servers can track protocol details like this on daily.dev._

## Similar posts on daily.dev

- [The MCP Server for Marketing Cloud Engagement is Now GA](https://daily.dev/posts/the-mcp-server-for-marketing-cloud-engagement-is-now-ga-jcnsjc4lp) · Salesforce Developers Blog · 1 upvotes · 0 comments
- [Building agents that reach production systems with MCP](https://daily.dev/posts/building-agents-that-reach-production-systems-with-mcp-zz2sr0sr5) · Claude · 3 upvotes · 0 comments
- [Beyond CRM: Engineering an Enterprise Agent Platform for Any Workload](https://daily.dev/posts/beyond-crm-engineering-an-enterprise-agent-platform-for-any-workload-ht0obtvxm) · Salesforce Engineering · 1 upvotes · 0 comments

---

Tags: [#mcp](https://daily.dev/tags/mcp), [#salesforce](https://daily.dev/tags/salesforce), [#oauth](https://daily.dev/tags/oauth), [#mulesoft](https://daily.dev/tags/mulesoft)

[View this post on daily.dev](https://daily.dev/posts/extending-agentforce-with-external-mcp-tools-via-mulesoft-l2004dr3y)

```json
{"@context":"https://schema.org","@graph":[{"@type":"Organization","@id":"https://daily.dev/#organization","name":"daily.dev","url":"https://daily.dev","logo":{"@type":"ImageObject","url":"https://daily.dev/apple-touch-icon.png","width":180,"height":180},"sameAs":["https://twitter.com/dailydotdev","https://github.com/dailydotdev","https://www.linkedin.com/company/daily-dev-ltd"]},{"@type":"WebSite","@id":"https://daily.dev/#website","url":"https://daily.dev","name":"daily.dev","publisher":{"@id":"https://daily.dev/#organization"},"potentialAction":{"@type":"SearchAction","target":{"@type":"EntryPoint","urlTemplate":"https://daily.dev/search?q={search_term_string}"},"query-input":"required name=search_term_string"}}]}
{"@context":"https://schema.org","@type":"TechArticle","headline":"Extending Agentforce with External MCP Tools via MuleSoft","url":"https://daily.dev/posts/extending-agentforce-with-external-mcp-tools-via-mulesoft-l2004dr3y","mainEntityOfPage":{"@type":"WebPage","@id":"https://daily.dev/posts/extending-agentforce-with-external-mcp-tools-via-mulesoft-l2004dr3y"},"datePublished":"2026-08-11T15:02:07.133Z","dateModified":"2026-10-15T02:22:33.968Z","description":"A step-by-step guide to extending Salesforce Agentforce agents with external tools using the Model Context Protocol (MCP) hosted on MuleSoft CloudHub. The...","image":"https://media.daily.dev/image/upload/f_auto,q_auto/v1/posts/342ae5bf8ad90c8529fe6abd5b6d4246?_a=AQAEuop","thumbnailUrl":"https://media.daily.dev/image/upload/f_auto,q_auto/v1/posts/342ae5bf8ad90c8529fe6abd5b6d4246?_a=AQAEuop","isAccessibleForFree":true,"articleSection":"Salesforce Developers Blog","inLanguage":"en","publisher":{"@type":"Organization","name":"daily.dev","url":"https://daily.dev","logo":{"@type":"ImageObject","url":"https://daily.dev/apple-touch-icon.png","width":180,"height":180}},"author":{"@type":"Organization","name":"Salesforce Developers Blog","logo":"https://media.daily.dev/image/upload/t_logo,f_auto/v1/logos/662fb7dc7cd14ee59747ed58d75cf7c3","url":"https://daily.dev/sources/salesforcedevs"},"commentCount":0,"discussionUrl":"https://daily.dev/posts/extending-agentforce-with-external-mcp-tools-via-mulesoft-l2004dr3y","interactionStatistic":[{"@type":"InteractionCounter","interactionType":{"@type":"LikeAction"},"userInteractionCount":1},{"@type":"InteractionCounter","interactionType":{"@type":"CommentAction"},"userInteractionCount":0}],"keywords":"mcp,salesforce,oauth,mulesoft","timeRequired":"PT7M"}
{"@context":"https://schema.org","@type":"BreadcrumbList","itemListElement":[{"@type":"ListItem","position":1,"name":"Home","item":"https://daily.dev"},{"@type":"ListItem","position":2,"name":"Salesforce Developers Blog","item":"https://daily.dev/sources/salesforcedevs"},{"@type":"ListItem","position":3,"name":"Extending Agentforce with External MCP Tools via MuleSoft"}]}
{"@context":"https://schema.org","@type":"FAQPage","@id":"https://daily.dev/posts/extending-agentforce-with-external-mcp-tools-via-mulesoft-l2004dr3y#faq","mainEntity":[{"@type":"Question","name":"How do I connect an external MCP server to a Salesforce Agentforce agent without writing Apex code?","acceptedAnswer":{"@type":"Answer","text":"Deploy an OAuth 2.0 secured MCP server on MuleSoft CloudHub, then register it in Salesforce under Setup > API Catalog > MCP Server using Import External MCP Server. Salesforce automatically calls the identity provider for a token, negotiates the protocol via initialize, and discovers tools via tools/list, creating GenAiFunction records that can be added to an agent's allowlist and used in Agent Script. Explore MCP integration patterns on daily.dev before wiring your next Agentforce tool."}},{"@type":"Question","name":"What MCP protocol methods does a Salesforce-compatible MCP server need to implement?","acceptedAnswer":{"@type":"Answer","text":"A Salesforce-compatible MCP server needs three core JSON-RPC methods: initialize for the handshake and protocol version negotiation (e.g. 2024-11-05), tools/list to advertise the tool catalog, and tools/call to execute a specific tool. Requests use bearer token authentication, and errors return JSON-RPC code -32000 for unauthorized access. Developers building MCP servers can track protocol details like this on daily.dev."}}]}
```

