MCP Server
In MCP (Model Context Protocol), the MCP server is a core concept.
What Is an MCP Server?
An MCP server provides a standardized interface that connects an AI model so it can access external resources such as tools, data, and APIs.
Simply put, it is a server that provides a collection of tools AI can use.
Structure
MCP is broadly divided into clients and servers:
- MCP client
- An application attached to an LLM environment, such as an IDE, chat UI, or notebook
- Receives the user’s prompt, runs the model, and sends requests to the MCP server when needed
- MCP server
- Manages and provides multiple resources/tools/functions
- Communicates with clients through a standardized protocol based on JSON-RPC
- Examples: DB query server, file system server, API call server

What the Server Provides
An MCP server mainly provides four functions:
- Resources
- Databases, files, documents, API responses, and more
- Examples:
resource://db/customers,resource://filesystem/project/README.md
- Tools
- Callable functions or actions
- Examples:
searchCustomer(name),sendEmail(to, subject, body)
- Prompts
- Provides predefined templates
- Example: “Prompt for generating SQL queries”
- Events
- Delivers notifications or change events from the server in real time
Example Flow
- A user enters in an IDE: “Search for customer ‘Hong Gil-dong’ in the DB”
- The LLM decides it should call the “searchCustomer” tool through the MCP client
- MCP client -> MCP server sends the request
- The MCP server performs the actual DB lookup and returns the result
- The LLM summarizes the result in user-friendly language and displays it
MCP Server Example
For example, a file system MCP server might provide:
- Resource: Files in a project folder, such as
/src/main.ktand/README.md - Tools: File reading, writing, and search functions such as
readFileandwriteFile - Prompts: Templates such as “Refactor this code”
When a server configured this way is connected, AI can directly explore and modify project files.
Analogy
- MCP server = “hotel concierge”
- When a guest (LLM) asks, “Recommend tourist attractions,” the concierge handles multiple APIs and databases behind the scenes and provides organized information
- MCP client = “hotel front desk”
- Talks directly with the guest, receives requests, and forwards them to the concierge
Summary
An MCP server acts as a backend that provides a standardized interface so an LLM can use external tools and data safely and consistently.