Skip to main content
DigiTransact AI Learning Centre

Module 1 of 4

What MCP is

The protocol, the problem it solves, and the three roles inside a connection.

Lesson 1

A protocol, not a product

MCP is an open protocol for connecting an AI client to outside tools and data. It defines messages, capabilities and lifecycles so a client does not need a custom integration per system.

Think of it as a common socket: the model host speaks one protocol, and servers expose tools, resources and prompts through it.

  • The client starts the connection, not the server.
  • Capabilities are negotiated at start-up.
  • Either side can expose features; the client decides what to use.

Check yourself. Name the three roles in an MCP connection.

Lesson 2

Hosts, clients and servers

The host is the application a person uses: a desktop assistant, an editor or an agent platform. Inside it, a client manages one connection to one server.

The server wraps a capability: files, a database, an API, a calendar. A host can run several clients at once.

  • One client per connection.
  • Servers should do one thing well.
  • A host may connect to local and remote servers together.

Check yourself. Why does a host run several clients rather than one?

Lesson 3

Local and remote servers

Local servers run on the same machine and are usually started by the client over standard input and output. Remote servers run elsewhere and are reached over the network.

Local is simpler to secure and easier to audit. Remote needs authentication, transport security and rate limits.

  • stdio for local processes.
  • Streamable HTTP for remote services.
  • Older HTTP plus server-sent events deployments still exist.

Check yourself. Which transport suits a server on the same laptop?

Lesson 4

What a good integration looks like

A good server exposes a small, well described set of tools with narrow permissions. It fails loudly, logs without secrets and refuses ambiguous requests.

A bad server exposes a database connection with broad rights and lets the model choose the SQL.

  • Narrow tools beat one generic tool.
  • Every tool needs a clear description.
  • Least privilege applies to servers too.

Check yourself. Why is a single run-any-SQL tool a poor design?