Day 1: What Is MCP? Why .NET Developers Need It
AI applications become more useful when they can work with the data and capabilities developers already rely on. Learn how the Model Context Protocol (MCP) standardizes that connection—and explore how it is implemented in our AI-Powered Developer Assistant throughout this series.
Learning Roadmap
1. The problem: AI needs access to the systems where work happens
Large language models can explain code, generate ideas and help developers reason through problems. But an AI model does not automatically know what is inside your private project tracker, database, source repository, internal documentation or business application. Those systems contain context that may be essential to answering a question or completing a task.
Imagine asking an AI assistant:
- “Show me the active projects I can access.”
- “Find the unfinished tasks in the Developer Assistant project.”
- “Summarize the latest activity on this project.”
- “Create a task to add refresh-token support.”
To answer accurately, the assistant needs a controlled way to obtain application data and, when permitted, invoke application operations. Without a shared integration approach, developers often build a separate connector for each AI application and each external system. Each connector may have its own conventions for discovering operations, describing inputs, handling results and managing errors.
The problem is not that custom integrations are impossible. They can work well. The challenge is that independently designed integrations can become difficult to reuse, maintain and extend as the number of AI applications and connected systems grows.
2. What is Model Context Protocol (MCP)?
Model Context Protocol (MCP) is an open protocol that standardizes how AI applications connect to external data sources and tools. It defines a common way for an application to discover and interact with capabilities exposed by an MCP server.
A useful analogy is USB-C. USB-C gives devices a standard connector so that compatible peripherals can connect without every device manufacturer inventing a completely different physical connector. MCP applies a similar standardization idea to software integrations: AI applications can communicate with compatible MCP servers through a shared protocol instead of requiring a completely unique integration contract for every pairing.
MCP is not tied to one model vendor, one programming language or one application framework. A team can build an MCP server around its own service, data source or workflow, then connect compatible MCP clients to it.
3. How MCP changes the integration approach
Instead of designing a different integration contract for every AI application, a system can expose an MCP server that implements the protocol. Compatible AI applications can connect through MCP clients and work with the server's supported capabilities.
The server acts as the protocol-facing boundary around selected system capabilities. Internally, it may call application services, query an approved data source or communicate with another API. The MCP client handles protocol communication on behalf of the host application.
This separation is important: MCP standardizes how the AI application communicates with the integration. It does not dictate how your internal business logic, database schema or service layer must be implemented.
4. What can an MCP server provide?
MCP defines three important server-side building blocks that we will study and implement in depth later in this series: Tools, Resources and Prompts.
Tools — perform operations
Tools expose callable operations. Depending on the server and permissions, they can retrieve computed information or perform actions such as creating a task or updating a record.
The host application controls how tool calls are presented, approved and executed; exposing a tool does not mean every request should be automatically trusted.
Resources — provide context
Resources expose data or content that an AI application can retrieve as context, such as project details, documentation or other application information.
Prompts — reusable instructions
Prompts provide reusable templates or guided workflows that help structure interactions for a particular task or domain.
One protocol, distinct roles
These capabilities serve different purposes. They are not interchangeable, and an MCP server may implement the capabilities that make sense for its use case.
For our Developer Assistant, the examples will eventually look like this:
| MCP capability | Developer Assistant example | Purpose |
|---|---|---|
| Tool | create_task |
Perform a permitted task-creation operation. |
| Resource | projects://accessible |
Provide project information the signed-in user is allowed to access. |
| Prompt | task_breakdown |
Guide the assistant to break a development goal into actionable tasks. |
These are illustrative names for the learning project. The actual identifiers and schemas will be confirmed in the relevant implementation articles.
5. What MCP is—and what it is not
| MCP is | MCP is not |
|---|---|
| An open protocol for connecting AI applications with external context and capabilities. | An AI model or a replacement for an LLM. |
| A standardized communication approach between MCP clients and servers. | A replacement for your ASP.NET Core Web API. |
| A way for servers to expose tools, resources and prompts. | A database, message broker or business logic layer. |
| A reusable integration boundary that can connect compatible applications and servers. | An automatic security system that makes every exposed operation safe. |
MCP also does not remove the need to design good APIs, enforce authorization, validate input or protect sensitive information. Those responsibilities remain with the application and its integration components.
REST APIs remain useful for application-to-application communication and frontend integration. MCP provides a standardized protocol for compatible AI applications to discover and use selected capabilities. Both approaches can coexist within the same .NET solution.
6. Why .NET developers should care
.NET developers already build the systems that AI applications need to work with: ASP.NET Core APIs, business services, databases, internal tools and enterprise workflows. MCP provides a standardized protocol boundary through which selected capabilities of those systems can be made available to compatible AI applications.
Reuse existing business logic
An MCP server can call application-layer services instead of duplicating business rules or writing directly to database tables.
Connect different AI applications
A compatible client can interact with an MCP server without requiring a completely new protocol integration for each host.
Expose controlled capabilities
Developers choose which tools, resources and prompts a server exposes and must enforce access rules for them.
Build composable integrations
Separate MCP servers can expose capabilities from different systems, allowing a host application to connect to multiple services.
For a .NET team, this means MCP can complement an existing ASP.NET Core architecture. Your API remains responsible for its application endpoints, while an MCP server can expose a protocol-based interface for compatible AI clients. Both can reuse the same application services and business rules.
7. The project we will explore throughout this series
Our reference project is the AI-Powered Developer Assistant, a complete full-stack application with an Angular interface, ASP.NET Core backend, SQL Server persistence, AI integration, a backend MCP Client and an independently deployable MCP Server. Throughout the series, we will examine how its architecture and implementation bring the concepts together.
The Web API and MCP Server reuse shared Application-layer services. The MCP Server is independently deployable, while the MCP Client runs inside the backend AI host.
The final application will let a developer ask questions about accessible projects, retrieve task and activity context, and request permitted operations using natural language. The AI host will use an MCP client to discover and invoke server capabilities; the MCP server will call application services that enforce the user's permissions.
How to Follow This 20-Days MCP Series
Throughout this series, we will explore one complete, real-world AI-Powered Developer Assistant built with Angular, ASP.NET Core, C# and MCP.
Rather than creating disconnected examples, we will use this application as our reference project. Each article will focus on a specific MCP concept and explain how it fits into the application's architecture, communication flows and implementation.
As you progress through the series, you will:
- Understand the underlying MCP concepts and protocol.
- Explore how MCP Clients and Servers work together.
- Examine practical implementation examples using C# and ASP.NET Core.
- Understand how Tools, Resources and Prompts integrate into a real application.
- Follow the security, AI integration and deployment architecture.
The complete source code will be revealed at the end of the series, on Day 20, along with an end-to-end walkthrough of the application.
8. When should you use MCP?
MCP is useful when you want compatible AI applications to discover and use capabilities from systems through a standardized protocol. It is especially relevant when you expect more than one AI host or want to make an integration reusable beyond a single custom chat interface.
You may not need MCP for every integration. If a conventional backend service or REST API already solves the problem and there is no need for an MCP-compatible AI integration, adding MCP may introduce unnecessary complexity. MCP complements existing technologies; it is not a requirement for every application.
9. Security starts with the application boundary
Exposing a capability to an AI application does not mean granting unrestricted access to the underlying system. A production-minded design should authenticate the caller where required, authorize each operation, validate tool arguments, limit data exposure and treat retrieved content as untrusted input.
- Expose only the capabilities the use case requires.
- Enforce authorization in server-side application logic—not only in AI instructions or UI controls.
- Validate all inputs before performing operations.
- Apply appropriate approval or confirmation controls to sensitive write actions.
- Never expose credentials, secrets or unrestricted database access through prompts or tools.
We will study MCP authentication and authorization on Day 15 and validation, permissions and prompt-injection risks on Day 16.
10. Key takeaways
- MCP stands for Model Context Protocol.
- It is an open protocol that standardizes how AI applications connect to external context and capabilities.
- MCP helps reduce the need for one-off integration contracts between every AI application and every connected system.
- MCP servers can expose Tools, Resources and Prompts.
- MCP complements ASP.NET Core APIs and existing application services; it does not replace them.
- Security, authorization and validation remain essential responsibilities of the application.
- Our 20-day journey will apply these ideas to one AI-Powered Developer Assistant built with .NET technologies.
11. Practical exercise
Before moving to Day 2, think about an application you already work with—perhaps a project tracker, inventory system or internal developer portal.
- Identify two pieces of information an AI assistant might need from that application.
- Identify one operation the assistant might be allowed to perform.
- Decide what data or action should remain restricted to authorized users.
- Consider which capabilities could be exposed through an MCP server without duplicating the application's business rules.
12. Conclusion
AI becomes more useful when it can work with relevant, authorized context and capabilities. Model Context Protocol provides a common way for AI applications to connect to systems that provide that context and functionality. For .NET developers, it offers a way to make existing application capabilities available to compatible AI clients while preserving the value of established APIs, services and business rules.