MCP API Tool Demo

MCP API Tool Demo

Demo MCP server that exposes order and customer data as read-only tools for AI assistants, simulating a business API or internal data source.

Category
Visit Server

README

MCP API Tool Demo

Small demo showing how to expose an existing business API or internal data source as MCP tools.

This is intentionally simple and safe:

  • no real customer data
  • no external credentials
  • local JSON data only
  • two read-only tools

Use Case

A client has order/customer data in an API, spreadsheet, or internal system, and wants an AI assistant to answer questions or call simple tools against that data.

This demo simulates that setup with local JSON files.

Tools

  • get_order(order_id)
    Return order status, customer name, total and last update.

  • customer_summary(customer_id)
    Return a compact summary of a customer and recent order ids.

Run

python -m venv .venv
source .venv/bin/activate
pip install -e .
python server.py

Test

pip install -e ".[dev]"
pytest -q

Expected result:

4 passed

Quick Demo Without An MCP Client

python examples/run_demo.py

This prints sample outputs for:

  • a known order
  • a missing order
  • a customer summary

Example Questions A Client Could Ask

  • What is the status of order ord_5002?
  • Show me a short summary for customer cust_1002.
  • Which recent orders need review?

Notes For Real Client Work

For a real project, the JSON adapter would be replaced with:

  • a REST API client
  • a database query layer
  • a Google Sheet / Airtable connector
  • a private internal service

The MCP tool surface should stay small at first: one or two tools, clear input schema, read-only by default, and a short runbook for setup.

See SECURITY_NOTES.md for the security assumptions used in this demo.

Recommended Servers

playwright-mcp

playwright-mcp

A Model Context Protocol server that enables LLMs to interact with web pages through structured accessibility snapshots without requiring vision models or screenshots.

Official
Featured
TypeScript
Magic Component Platform (MCP)

Magic Component Platform (MCP)

An AI-powered tool that generates modern UI components from natural language descriptions, integrating with popular IDEs to streamline UI development workflow.

Official
Featured
Local
TypeScript
Audiense Insights MCP Server

Audiense Insights MCP Server

Enables interaction with Audiense Insights accounts via the Model Context Protocol, facilitating the extraction and analysis of marketing insights and audience data including demographics, behavior, and influencer engagement.

Official
Featured
Local
TypeScript
VeyraX MCP

VeyraX MCP

Single MCP tool to connect all your favorite tools: Gmail, Calendar and 40 more.

Official
Featured
Local
graphlit-mcp-server

graphlit-mcp-server

The Model Context Protocol (MCP) Server enables integration between MCP clients and the Graphlit service. Ingest anything from Slack to Gmail to podcast feeds, in addition to web crawling, into a Graphlit project - and then retrieve relevant contents from the MCP client.

Official
Featured
TypeScript
Kagi MCP Server

Kagi MCP Server

An MCP server that integrates Kagi search capabilities with Claude AI, enabling Claude to perform real-time web searches when answering questions that require up-to-date information.

Official
Featured
Python
E2B

E2B

Using MCP to run code via e2b.

Official
Featured
Neon Database

Neon Database

MCP server for interacting with Neon Management API and databases

Official
Featured
Exa Search

Exa Search

A Model Context Protocol (MCP) server lets AI assistants like Claude use the Exa AI Search API for web searches. This setup allows AI models to get real-time web information in a safe and controlled way.

Official
Featured
Qdrant Server

Qdrant Server

This repository is an example of how to create a MCP server for Qdrant, a vector search engine.

Official
Featured