Back to Resources

MCP Server Examples: Real-World Use Cases Across Industries

Concrete MCP server examples for e-commerce, developer tools, finance, internal operations, healthcare, and IoT — with code patterns and architecture guidance.

The Model Context Protocol is moving fast from "interesting spec" to production infrastructure. Thousands of MCP servers already exist on GitHub, and companies across industries are building tools that let AI assistants interact with their products and data.

If you're exploring what to build — or looking for patterns to follow — this guide walks through concrete MCP server examples across e-commerce, developer tools, finance, internal operations, and more.

What an MCP Server Looks Like

Before diving into examples, here's the basic structure. An MCP server exposes tools (functions the AI can call), resources (data the AI can read), and prompts (reusable templates). A minimal server in TypeScript looks like this:

import { McpServer } from "@modelcontextprotocol/sdk/server/mcp.js";
import { z } from "zod";

const server = new McpServer({ name: "example", version: "1.0.0" });

server.tool(
  "search_products",
  { query: z.string(), category: z.string().optional() },
  async ({ query, category }) => {
    const results = await productApi.search(query, category);
    return { content: [{ type: "text", text: JSON.stringify(results) }] };
  }
);

Every example below follows this pattern: define a tool with a name, typed inputs, and a handler that calls your business logic. The AI handles the rest — deciding when to call the tool and how to present the results.

E-Commerce: Product Search and Checkout

An e-commerce MCP server turns any AI assistant into a shopping interface. Instead of browsing a website, users describe what they want in natural language and the AI handles the search, comparison, and purchase.

A typical e-commerce server exposes tools like search_products (full-text search with filters for price, category, size, color), get_product_details (returns specs, availability, reviews, and images for a specific item), add_to_cart and remove_from_cart (manages the shopping session), apply_coupon (validates and applies discount codes), and checkout (processes the order with a saved payment method).

The conversation might go: "Find me running shoes under $120 in size 11" → AI calls search_products → "The blue ones look good, add them to my cart" → AI calls add_to_cart → "I have a code SAVE20" → AI calls apply_coupon → "Check out" → AI calls checkout.

The entire funnel — discovery through purchase — happens inside one conversation. For businesses, the interesting question is where users drop off in this flow, which is exactly what analytics tools like Yavio capture.

Developer Tools: Database and Deployment

Some of the most popular MCP servers are developer tools. Code editors like Cursor, Windsurf, and Cline use MCP to connect to databases, CI/CD pipelines, and cloud infrastructure.

A database MCP server might expose query_database (run read-only SQL against production or staging), describe_table (return schema, column types, indexes, and row counts), list_tables (show all tables in a schema), and explain_query (return the execution plan for a SQL query).

A CI/CD server might expose get_deploy_status (check the current state of a deployment), list_recent_builds (show the last N builds with pass/fail status), trigger_deploy (kick off a deployment to a specific environment), and get_build_logs (retrieve logs for a specific build).

A developer says "check if the staging deploy for PR 247 succeeded" and the AI calls get_deploy_status, parses the result, and responds with the status, duration, and any errors — without the developer leaving their editor.

Financial Services: Portfolio and Market Data

Financial MCP servers connect AI assistants to portfolio management systems, market data feeds, and compliance tools.

Example tools include get_portfolio_summary (returns holdings, allocation percentages, and total value), get_transaction_history (queries transactions with date range and type filters), get_market_data (retrieves current or historical price data for a ticker), run_compliance_check (validates a proposed trade against regulatory rules), and calculate_risk_metrics (returns VaR, Sharpe ratio, and drawdown for a portfolio).

The compliance check is a strong use case: an advisor asks "can I buy 500 shares of ACME for client 12345?" and the AI calls run_compliance_check, which validates against concentration limits, restricted lists, and suitability rules — returning a clear pass/fail with reasoning.

Internal Operations: CRM and HR

Many companies build MCP servers for internal use — connecting AI assistants to the systems their teams already use every day.

A CRM server might expose search_contacts (find contacts by name, company, or deal stage), get_deal_details (return pipeline stage, value, close date, and activity history), log_activity (record a call, email, or meeting against a contact), and update_deal_stage (move a deal to the next pipeline stage).

An HR server might expose check_pto_balance (return remaining vacation and sick days for an employee), submit_time_off (create a PTO request), get_org_chart (return reporting structure for a department), and lookup_policy (search the employee handbook for a specific topic).

An account manager asks Claude "what's the renewal date for Acme Corp and when was our last touchpoint?" The AI calls get_deal_details, finds the renewal date and last logged activity, and summarizes both in a natural response.

Content and Media: CMS Integration

Content management MCP servers let AI assistants interact with publishing platforms — creating, editing, and managing content.

Tools might include list_articles (return recent posts with status, author, and publish date), get_article_content (retrieve the full text of a specific article), create_draft (create a new article draft with title, body, and metadata), update_article (edit an existing article's content or metadata), and get_analytics (return pageviews, time on page, and engagement for an article).

A content team lead asks "show me our top 5 posts from last month by traffic, and create a draft roundup post summarizing them." The AI calls get_analytics to identify top posts, get_article_content to read each one, and create_draft to generate the roundup.

Healthcare and Life Sciences: Data Retrieval

Healthcare MCP servers focus on read-only data retrieval — surfacing clinical data, research, and patient information without modifying records.

Examples include search_clinical_trials (query trial registries by condition, phase, or location), get_drug_interactions (check interactions between a list of medications), lookup_icd_code (search diagnosis codes by description), and get_patient_summary (retrieve a clinical summary for an authorized patient ID).

These tools are particularly sensitive to reliability. A tool that returns incorrect drug interaction data or fails silently is dangerous. Production MCP servers in healthcare need robust error handling, input validation, and monitoring to ensure every tool call returns accurate results — or clearly reports that it couldn't.

IoT and Smart Infrastructure: Device Management

MCP servers can bridge AI assistants and physical infrastructure — sensors, devices, and control systems.

Tools might include get_sensor_readings (return current and historical readings from a specific sensor), list_active_alerts (show all triggered alerts across a facility), control_device (send a command to a device — turn on, turn off, adjust setting), and get_energy_usage (return power consumption data for a time range).

A facilities manager asks "are there any temperature alerts in Building C?" The AI calls list_active_alerts, filters for temperature alerts in the specified building, and reports back with the sensor locations and current readings.

Patterns That Work Well

Across all these examples, the MCP servers that work best share a few traits.

Clear tool boundaries. Each tool does one thing. search_products searches. get_product_details retrieves details. Avoid "god tools" that try to handle multiple operations through complex parameter combinations.

Rich descriptions. The AI uses your tool descriptions to decide when to call them. A description like "Search products by keyword with optional filters for category, price range, and availability" performs much better than "Search products."

Structured outputs. Return JSON that the AI can parse and present. Avoid returning raw HTML, giant text blobs, or deeply nested objects that are hard for the model to summarize.

Graceful errors. Return clear error messages when something fails. "Product not found with ID xyz-123" is actionable. A 500 error with a stack trace is not.

Measuring What Users Actually Do

Once your MCP server is live, the most important question isn't "does it work?" — it's "how are people using it?"

Which tools get called most? Which ones are ignored? Where do multi-step workflows break down? Are errors piling up for specific tools or user segments? Do users come back after their first session?

These aren't questions you can answer from server logs. You need product analytics built for the MCP interaction model.

Yavio is an open-source analytics platform designed for exactly this. Wrap your MCP server with withYavio() and every tool call, resource read, and error is captured automatically. The dashboard gives you per-tool breakdowns, funnels, retention curves, and error analysis — the data you need to decide what to build, fix, or deprecate next.


Yavio is open source (MIT). Try Yavio Cloud free or self-host with Docker.