Home / Companies / WorkOS / Blog / Post Details
Content Deep Dive

Best practices for MCP secrets management

Blog post from WorkOS

Post Details
Company
Date Published
Author
Zack Proser
Word Count
897
Company Posts That Month
25
Language
English
Hacker News Points
-
Post removed?
No
Summary

The Model Context Protocol (MCP) is a new protocol that allows large-language models to hit live APIs, query fresh data, and trigger CI/CD pipelines. This shift changes the game by introducing risk, as every outbound call from an MCP server carries credentials such as API keys, database passwords, OAuth tokens, and more. If these secrets leak, the blast radius extends far beyond the LLM demo. To secure MCP servers, it's essential to treat every secret like a live grenade, handle them sparingly, store them safely, and rotate them often. Key best practices include eliminating hard-coding of secrets, preferring dynamic, short-lived credentials, applying least privilege with Role-Based Access Control (RBAC), enforcing end-to-end encryption, rotating and revoking automatically, and logging, alerting, and repeating. By implementing these strategies, developers can preserve user trust, keep auditors happy, and sleep better knowing their LLM won't accidentally leak sensitive data.

Trends Found in this Post
Trend Post Mentions Total Month Mentions Posts Companies MoM
Secrets Management 30 1,622 159 73 +32%
MCP 19 3,411 206 87 +91%
LLM 6 4,226 639 179 -13%
Kubernetes 1 2,271 264 89 +53%
Serverless 1 1,599 300 96 +114%
Use This Data

Use this post, company, and trend context to find content marketing opportunities, perform competitive analysis, or address product feature gaps via the Plushcap MCP server or the Plushcap API.