Tldr

MCP is an open protocol that standardizes how your LLM applications connect to and work with tools and data sources (like how REST APIs standardize how web applications interact with backend systems)

Some definitions

MCP is based on a client-server architecture. Hosts are LLM applications that want to access data through MCP (i.e. Claude Desktop or IDEs). MCP servers are lightweight programs that each expose specific capabilities through MCP. MCP clients maintain 1:1 connections with servers, inside the host application.

Tools: functions and tools that can be invoked by the client (retrieve/search/update DB records)

Defining a tool:

Allowing access to a resource:

@mcp.resource(
	"docs://documents", 
	mime_type = "application/json"
)

Adding prompts:

@mcp.prompt(
	name = 'format'
	description = " "
)