geekskai Logogeekskai
ToolsBlogPricing
Sign in
Sign in
ToolsBlogSign in
Sunday, May 25, 2025|2.465Mins Read

AI MCP for Beginners: Hosts, Clients, Servers, and a First Test

Authors
  • avatar
    Name
    Geeks Kai
    Twitter
    @KaiGeeks
Discuss on Twitter • View on GitHub

Tags

AI-MCP

Previous Article

Exploring the World of AI Multi-Agent Control Platforms

Next Article

The Power of an SEO Link Builder: Why Backlinks Still Matter in 2025
← Back to the blog
geekskai Logo
geekskai

Public tools for developers and creators, plus optional Geekskai Audio Toolkit plans. Built with care.

Popular Tools

SoundCloud DownloaderSoundCloud to MP3SoundCloud to WAVSoundCloud PlaylistSoundCloud Artwork
View All Tools

Resources

BlogAbout MePricingTagsProjectsPrivacy PolicyTerms of ServiceRefund Policy

Connect With Us

mailMail
githubGitHub
twitterTwitter
linkedinLinkedin
© 2026 geekskai • All rights reserved
AI MCP for Beginners

MCP means Model Context Protocol. It gives an AI application a standard way to discover and use external capabilities. It is not a model download, a database requirement, or a guarantee that generated answers are correct.

The three participants

The official architecture overview distinguishes these roles:

ParticipantResponsibilityExample
HostCoordinates the AI application and its connectionsAn editor with an AI assistant
ClientMaintains a connection to one serverThe host's connection to a documentation server
ServerExposes tools, resources, or promptsA program offering a document lookup function

The model is used by the host. It does not replace the MCP client, and the server does not have to host model weights.

Tools, resources, and prompts

A tool performs an operation, a resource supplies readable context, and a prompt provides a reusable interaction template. Start with one capability whose result you can verify independently, such as adding two integers. That separates a protocol problem from a model's choice of arguments.

A successful tool call proves that the connection and that operation worked. It does not establish that every answer from the host is accurate.

Choose the right SDK version

Use the official Python SDK, distributed as the mcp package. Its 2.x documentation requires Python 3.11 or later. Older 1.x tutorials use different imports, so check the installed version before copying examples.

The next tutorial uses this dependency range:

python -m pip install "mcp[cli]>=2,<3"
python -m pip show mcp

For an existing 1.x project, follow the official migration guide rather than changing imports selectively. The package named ai-mcp and a generic HTTP request are not substitutes for the SDK and protocol handshake used in that tutorial.

Run a first end-to-end check

Continue with building an MCP server and checking its tool result. It provides complete server and client files, an expected result, and an invalid-input check. No model account or API key is needed for that deterministic example.

Once the test works, connect the server to a host that supports the chosen transport. Review what capabilities the host exposes and which operations require approval before attaching real documents or external services.

Common setup mistakes

  • Import failure: compare your installed SDK major version with the example's version.
  • Server appears idle: a stdio server waits for a client; it is not a web page.
  • Corrupted stdio messages: send diagnostic logs to stderr instead of printing into the protocol stream.
  • Tool returns an error: inspect the error result before using its output.
  • Correct tool output, incorrect answer: investigate the host's model interaction separately from the server connection.

For the next capability, keep the same small test loop: define an input, state the expected output, call it through a client, and inspect both success and failure results.