Zero Labs
Industry News / AI

MCP Prompts in Claude Code: A Simple Guide for Developers

Source · Towards AI By Sudha Subramaniam

From the publisher’s feed, collected in the ZeroLabs newsroom.

Learn how Claude Code MCP prompts work, how MCP servers expose slash commands, and how prompts, tools, resources, and CLAUDE.md fit together.MCP (Model Context Protocol) has made it much easier to connect Claude Code with the tools and systems developers already use.A development team can connect Claude Code to GitHub, Jira, databases, monitoring platforms, CI/CD systems, or internal DevOps services through an MCP server. But MCP is not limited to tools that do something. An MCP server can also provide prompts — reusable workflows that developers can invoke when they need them.What Are MCP Prompts?An MCP server can expose reusable prompt templates. For example, imagine your company has a DevOps MCP serverHow Do MCP Prompts Become Available in Claude Code So, How Does Claude Code Discover MCP Prompts?This is the interesting part. MCP prompts exposed by connected MCP servers automatically become available as commands in Claude Code. They are dynamically discovered from connected servers.Once an MCP server is connected to Claude Code, its prompts are dynamically discovered.You can type / in Claude Code and see the available commands. MCP prompts appear using a naming pattern like/mcp__servername__promptnameFor example, a DevOps server named devops with an incident_response prompt would appear as/mcp__devops__incident_responseA deployment checklist could be/mcp__devops__deploy_checklistThis is built into the MCP integration in Claude Code — you don’t have to manually recreate every MCP prompt as a local command.MCP Prompts in a DevOps WorkflowImagine your team has an internal DevOps MCP server.It exposes tools such asdeploy_applicationcheck_pipelineget_deployment_statusfetch_logsIt also exposes promptsdeploy_checklistincident_responserelease_reviewThe tools give Claude the ability to interact with systems.The prompts provide a predefined workflow or set of instructions for a particular task.For example, incident_response could contain a workflow like1. Identify the affected application2. Check recent deployments3. Review application logs4. Check service health and metrics5. Identify possible root cause6. Recommend remediation7. Prepare an incident summaryInstead of typing that workflow every time, the team can expose it through the MCP server.What Happens When You Run an MCP Prompt?There is a simple flow happening behind the scenesAt the protocol level, MCP clients can discover prompts with prompts/list and request a selected prompt with prompts/get. The resulting messages are then added to the conversation.This is why an MCP prompt feels more like a reusable workflow than a normal API call.MCP Prompt vs MCP ToolThis is probably the most important distinction to remember.MCP Tool = ActionA tool represents something Claude can execute through the connected system.For exampleget_deployment_status() or fetch_logs()These provide an actual capability to interact with an external systemMCP Prompt = WorkflowA prompt gives Claude a predefined way of approaching a task.For exampleincident_responsemight sayInvestigate the production incident by reviewing the deployment, logs, metrics, and recent changes before recommending remediationClaude can then use the available tools to perform that investigation.MCP treats prompts as user-controlled, while tools are designed to be invoked by the model when appropriate.What About CLAUDE.md?Another common source of confusion is CLAUDE.md.CLAUDE.md is where you keep persistent instructions for your project.For example# Engineering Guidelines- Use Java 21- Follow our REST API conventions- Use JUnit 5- Run unit tests before creating a PR- Never commit secretsThese instructions establish the normal rules Claude should follow while working in the project.An MCP prompt serves a different purpose.Think of it this wayCLAUDE.md — Persistent project instructionsClaude Code Skill — Reusable local workflowMCP PromptReusable — workflow provided by an MCP serverMCP Tool — Execute an action against an external systemMCP Resource — Provide external information/contextClaude Code now uses skills for reusable workflows and custom commands, while MCP handles connections to external services and capabilities.MCP Prompts Can Also Accept ArgumentsMCP prompts aren’t necessarily fixed.A prompt can define arguments that the developer supplies when invoking it.For example/mcp__github__pr_review 456Here 456 could represent the pull request number.A DevOps workflow might look like/mcp__devops__incident_response INC-4521The prompt can use that argument when generating the instructions for Claude. Claude Code supports passing prompt arguments after the MCP command, and MCP defines arguments as part of the prompt metadata.This makes MCP prompts useful for real enterprise workflows rather than just simple static text.A Practical ExampleLet’s say your company has standardized its release process.The DevOps MCP server providesPromptsdeploy_checklistrelease_reviewincident_responseA developer is preparing a deployment.They run/mcp__devops__deploy_checklistClaude receives the team’s standardized deployment workflow.It might then use MCP tools to→ Check CI/CD status→ Review deployment configuration→ Check recent changes→ Check application health→ Validate rollback readinessThe important point is that the prompt defines the process, while the tools provide the capabilities needed to carry it out.Why This Is Useful for Engineering TeamsThis becomes particularly valuable when a team has repeatable processes.Instead of asking every developer to remember the company’s incident-management procedure, deployment checklist, or release-review process, those workflows can be made available through the MCP server.For example/mcp__devops__deploy_checklist/mcp__devops__incident_response/mcp__devops__release_reviewNow everyone starts from the same workflow. That can help teams standardizeDeployment → Incident response → Troubleshooting → Release validation → Security reviewwhile still allowing Claude to use the appropriate tools and data sources.The Simple Mental ModelPrompt → Instructions / workflowResource → Information / contextTool → Action / capabilityAnd within Claude CodeMCP Server ↓MCP Prompt ↓/mcp__server__prompt ↓Claude CodeSo when you connect an MCP server, its prompts don’t sit hidden inside the server. Claude Code discovers them and makes them available as commands that you can explicitly invoke.Final TakeawayMCP prompts are a simple but powerful way to bring standardized workflows into Claude Code.A team can keep its DevOps expertise in reusable prompts such as and expose them through an MCP server.deploy_checklistincident_responserelease_reviewDevelopers then invoke them directly /mcp__devops__incident_response Claude receives the workflow, and MCP tools can provide the actual access to systems needed to complete the task.Prompt tells Claude how to approach the work. Tool gives Claude the ability to perform the work.That distinction is the key to understanding MCP prompts — and it’s also an important concept when working with Claude Code in real-world development environments.MCP Prompts in Claude Code: A Simple Guide for Developers was originally published in Towards AI on Medium, where people are continuing the conversation by highlighting and responding to this story.