Skip to main content
Glama
Bookstore MCP Server

Bookstore MCP Server

by TrueLove27

Bookstore MCP Server

Full-stack bookstore API with dual exposure: REST endpoints for web clients and MCP (Model Context Protocol) tools for LLM agents. One service layer powers both.

Highlights

  • REST API for inventory, orders, and members

  • Six MCP tools (search_books, get_book, check_stock, etc.)

  • React admin UI with Tool Explorer to invoke MCP tools over HTTP

  • Shared service/repository layer — no duplicated business logic

Related MCP server: Swagger MCP Adapter

Stack

Layer

Tech

Backend

Node.js, Express, MCP SDK, Zod

Frontend

React, TypeScript, Vite

Data

Local JSON catalog

Getting started

npm run install:all
npm run dev:backend    # http://localhost:8003
npm run dev:frontend   # http://localhost:5176

Docker

docker compose up --build

MCP tools

Tool

Purpose

search_books

Search by title, author, genre

get_book

Book details by ID

check_stock

Availability check

get_order

Order lookup

get_member

Member profile

recommend_books

Genre-based recommendations

Example

curl -X POST http://localhost:8003/api/v1/tools/call \
  -H "Content-Type: application/json" \
  -d '{"tool":"search_books","arguments":{"query":"design"}}'

License

MIT

Tool Schema Changelog

Recent tool additions, removals, and schema changes observed during successful MCP inspections.

Loading tool schema changelog…

    Related MCP Connectors

    Related MCP Servers

    • F
      license
      C
      quality
      D
      maintenance
      Enables users to manage and interact with a bookstore through natural language, supporting book searching, inventory checking, purchasing, and restocking operations. Provides seamless integration with AI assistants for complete bookstore management functionality.
      8
      -
    • A
      license
      Not graded
      quality
      D
      maintenance
      An MCP server that exposes tools for querying a bookstore inventory, allowing AI agents to search and retrieve book information via the Model Context Protocol.
      525 npm
      1
      MIT