Skip to content
04Free course · Lesson 4 of 12 · 5 min

What is MCP, and how do agents use tools?

MCP, the Model Context Protocol, is an open standard for plugging tools into any agent: one server, every agent that speaks MCP.

Roman Urdu: MCP ek open standard ha jis se koi bhi tool har agent mein lag jata ha. Ek server banao, har MCP agent use kr sakta ha.

Tools, not just text

On its own a model can only write text. Tools let it act: search the web, query a database, open a ticket. MCP is the plug: an MCP server lists its tools with a name, a description and the inputs it takes, and the agent (the client) calls them when it needs to.

Local and remote servers

  • Local servers run on your computer as a small program the agent starts.
  • Remote servers live at a URL. Public tools can work without an account; private ones sign in, usually with OAuth.

Most agents (Claude Code, Codex, Cursor, Gemini CLI, OpenCode) and chat apps like Claude.ai and ChatGPT can connect to MCP servers.

Be careful what you connect

A tool can do whatever its server allows. Connect servers you trust, give them the least access they need, and never put a raw API key where the agent can read it (lesson 6).

Try it

Connect the LogicPacks remote MCP server to Claude Code. Its public tools (search_packs, get_pack, convert_repo) need no account:

$ claude mcp add --transport http logicpacks https://mcp.logicpacks.io/mcp

Then ask: "Use the logicpacks tools to look up the repo Tech-Realm/pack-protocol as a pack." In Claude.ai or ChatGPT, add the same URL under Settings > Connectors.

More: Pack Mode over MCP