<!-- mobian-agent-page publisher="dailydev" canonical="https://daily.dev/posts/salesforce-hosted-mcp-server--pr7s7wzn0" -->

---
title: Salesforce Hosted MCP Serverをセキュアにする方法 | daily.dev
description: A guide to securing Salesforce Hosted MCP Servers covers a three-layer security model: authentication (verifying identity via OAuth 2.0 authorization code flow...
canonical: https://daily.dev/posts/salesforce-hosted-mcp-server--pr7s7wzn0
twitter:card: summary_large_image
twitter:site: @dailydotdev
og:type: website
og:site_name: daily.dev
og:title: Salesforce Hosted MCP Serverをセキュアにする方法 | daily.dev
og:description: A guide to securing Salesforce Hosted MCP Servers covers a three-layer security model: authentication (verifying identity via OAuth 2.0 authorization code flow...
og:url: https://daily.dev/posts/salesforce-hosted-mcp-server--pr7s7wzn0
og:image: https://api.daily.dev/og/posts/Pr7s7WZn0.png
og:image:alt: Salesforce Hosted MCP Serverをセキュアにする方法
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.

# Salesforce Hosted MCP Serverをセキュアにする方法

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

## Summary

A guide to securing Salesforce Hosted MCP Servers covers a three-layer security model: authentication (verifying identity via OAuth 2.0 authorization code flow through dedicated External Client Apps per MCP client), authorization (controlling access via OAuth scopes like the new mcp_api scope, pre-approved user policies, IP restrictions, refresh token lifetime, and revocation), and permission control (enforcing Salesforce's core CRUD, field-level security, and sharing rules on MCP tools). It also covers activating only needed MCP servers, annotating tools for AI agent guidance, and using event monitoring logs (filtered by SALESFORCE_HOSTED_MCP) for audit trails and anomaly detection.

## Full article

daily.dev links to this article rather than hosting it. Read it at the original source: <https://developer.salesforce.com/blogs/2026/09/how-to-secure-salesforce-hosted-mcp-servers-jp>

## Questions this post answers

### What OAuth scope should I use to limit AI agent access to Salesforce Hosted MCP Server instead of full API access?

Use the mcp_api scope, labeled 'access Salesforce hosted MCP Server,' rather than the broader api scope which grants full access to Platform APIs like REST, Tooling, and Metadata. The mcp_api scope was introduced specifically so AI agents get only limited, safe MCP operations instead of unrestricted API access, following the principle of least privilege.

_Anyone scoping AI agent permissions on Salesforce can track OAuth and MCP security guidance on daily.dev._

### Does Salesforce Hosted MCP Server support machine-to-machine authentication flows?

No, Salesforce Hosted MCP Server only supports the authorization code flow through External Client Apps, which requires a human user to authenticate with Salesforce and links each session to that individual's user account. There are currently no plans to support machine-to-machine flows, so a shared service account acting as a common principal across all sessions is explicitly discouraged as an anti-pattern.

_Developers designing agent-to-org connections can follow MCP authentication updates on daily.dev._

### How can I audit which users are calling Salesforce MCP tools and what data they accessed?

Every MCP tool action is tied to the authenticated External Client App user in the audit trail, recorded automatically through Salesforce event monitoring. Access the Event Log File Browser in Setup, filter by API Total Usage events, then filter the CSV by API_CLIENT_CATEGORY equal to SALESFORCE_HOSTED_MCP to isolate MCP traffic and review STATUS_CODE, USER_NAME, and CLIENT_IP for anomalies.

_Teams monitoring AI agent activity in Salesforce can keep up with MCP logging practices via daily.dev._

## Similar posts on daily.dev

- [How to Secure Salesforce Hosted MCP Servers](https://daily.dev/posts/how-to-secure-salesforce-hosted-mcp-servers-cdwejquwe) · Salesforce Developers Blog · 1 upvotes · 0 comments
- [Salesforce Hosted MCP Servers Are Now Generally Available](https://daily.dev/posts/salesforce-hosted-mcp-servers-are-now-generally-available-unsidydmx) · Salesforce Developers Blog · 1 upvotes · 0 comments
- [Securing MCP: How to Build Trustworthy Agent Integrations](https://daily.dev/posts/securing-mcp-how-to-build-trustworthy-agent-integrations-em5hvqqit) · Security Boulevard · 0 upvotes · 0 comments
- [MCP Servers: Your Next User Is An AI Agent](https://daily.dev/posts/mcp-servers-your-next-user-is-an-ai-agent-apyzw7sof) · marmelab · 2 upvotes · 0 comments
- [Connect Claude with Salesforce Hosted MCP Servers](https://daily.dev/posts/connect-claude-with-salesforce-hosted-mcp-servers-xwmuz9ra4) · Salesforce Developers Blog · 2 upvotes · 1 comments

---

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

[View this post on daily.dev](https://daily.dev/posts/salesforce-hosted-mcp-server--pr7s7wzn0)

```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":"Salesforce Hosted MCP Serverをセキュアにする方法","url":"https://daily.dev/posts/salesforce-hosted-mcp-server--pr7s7wzn0","mainEntityOfPage":{"@type":"WebPage","@id":"https://daily.dev/posts/salesforce-hosted-mcp-server--pr7s7wzn0"},"datePublished":"2026-09-16T08:59:55.086Z","dateModified":"2026-09-18T05:46:22.276Z","description":"A guide to securing Salesforce Hosted MCP Servers covers a three-layer security model: authentication (verifying identity via OAuth 2.0 authorization code flow...","image":"https://media.daily.dev/image/upload/f_auto,q_auto/v1/posts/714be3da271369e48d26ecae98d64100?_a=AQAEuop","thumbnailUrl":"https://media.daily.dev/image/upload/f_auto,q_auto/v1/posts/714be3da271369e48d26ecae98d64100?_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/salesforce-hosted-mcp-server--pr7s7wzn0","interactionStatistic":[{"@type":"InteractionCounter","interactionType":{"@type":"LikeAction"},"userInteractionCount":0},{"@type":"InteractionCounter","interactionType":{"@type":"CommentAction"},"userInteractionCount":0}],"keywords":"security,mcp,salesforce,authorization,oauth","timeRequired":"PT2M"}
{"@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":"Salesforce Hosted MCP Serverをセキュアにする方法"}]}
{"@context":"https://schema.org","@type":"FAQPage","@id":"https://daily.dev/posts/salesforce-hosted-mcp-server--pr7s7wzn0#faq","mainEntity":[{"@type":"Question","name":"What OAuth scope should I use to limit AI agent access to Salesforce Hosted MCP Server instead of full API access?","acceptedAnswer":{"@type":"Answer","text":"Use the mcp_api scope, labeled 'access Salesforce hosted MCP Server,' rather than the broader api scope which grants full access to Platform APIs like REST, Tooling, and Metadata. The mcp_api scope was introduced specifically so AI agents get only limited, safe MCP operations instead of unrestricted API access, following the principle of least privilege. Anyone scoping AI agent permissions on Salesforce can track OAuth and MCP security guidance on daily.dev."}},{"@type":"Question","name":"Does Salesforce Hosted MCP Server support machine-to-machine authentication flows?","acceptedAnswer":{"@type":"Answer","text":"No, Salesforce Hosted MCP Server only supports the authorization code flow through External Client Apps, which requires a human user to authenticate with Salesforce and links each session to that individual's user account. There are currently no plans to support machine-to-machine flows, so a shared service account acting as a common principal across all sessions is explicitly discouraged as an anti-pattern. Developers designing agent-to-org connections can follow MCP authentication updates on daily.dev."}},{"@type":"Question","name":"How can I audit which users are calling Salesforce MCP tools and what data they accessed?","acceptedAnswer":{"@type":"Answer","text":"Every MCP tool action is tied to the authenticated External Client App user in the audit trail, recorded automatically through Salesforce event monitoring. Access the Event Log File Browser in Setup, filter by API Total Usage events, then filter the CSV by API_CLIENT_CATEGORY equal to SALESFORCE_HOSTED_MCP to isolate MCP traffic and review STATUS_CODE, USER_NAME, and CLIENT_IP for anomalies. Teams monitoring AI agent activity in Salesforce can keep up with MCP logging practices via daily.dev."}}]}
```

