A simple MCP server in TypeScript that gives AI tools access to order data
A small MCP server in TypeScript from my MCP Crash Course. It lets an AI tool like Claude Code, Codex or OpenCode look up orders for a store.
The orders live in src/orders.json, which stands in for a real database. The AI can't see that data on its own. The server gives it two tools to get at it:
- get-order-status looks up one order by its ID, such as ORD-1042. - get-all-orders lists every order.
The server runs on your machine and talks to the AI tool over standard input and output (stdio).
Run this from the folder you want to use the server in. Replace the path with the full path to where you cloned this repo.
--scope local makes the server available only in that folder. Use --scope user to use it in every project.
--silent keeps npm from printing its own output, so the AI tool only gets the server's messages.
Restart your AI tool after adding the server, then ask it:
- "Give me all of my orders" - "What's the status of order ORD-1042?"
- src/index.ts creates the server and registers the two tools. - src/orders.ts has the functions that read and format orders. - src/orders.json is the sample order data.
Run npm run typecheck to check the TypeScript.
From the project README.
Add the radar badge to your README — it shows your project was picked up by MCP Radar and links to this page:
[](https://mcp.liqiwa.com/s/bradtraversy--simple-mcp-server-example.html)
ChatGPT thinks. Codex works. Use ChatGPT as the planning brain while keeping the Codex harness.
qybaihe/bla🛡️ BLA (Blind LLM Agents) — Adversarial defense shield that protects binaries, Electron apps, JS bundles, Python, and WebAssembly against AI reverse-engineering agents like REA. Poison -> Exhaust -> H
INK-Q/agy-fastNon-invasive MCP accelerator plugin for Google Antigravity (CLI/Desktop/IDE): cuts LLM turns (-34%), token quota (-31%), and upload traffic (-40%) without affecting native UI or diffs.
shinthink/blitzstrike⚡ Blitz Strike — a universal MCP penetration-testing toolbelt. Structured methodology: reconnaissance & attack-surface mapping, source-to-sink analysis, and live validation. 57 escalation chains, 130-
0xwilliamortiz/openclaude-improvedruns anywhere. uses anything
halofyai/halofyHalofy is the open access and governance layer for AI agents across your organization. Identity, policy, provenance, audit, and signed erasure.
The top new MCP servers of the week, every Monday. No spam, unsubscribe anytime.