ChatGPT Book Connector
БесплатноНе проверенEnables ChatGPT to search for books via Algolia or mock data, returning rich book details.
Описание
Enables ChatGPT to search for books via Algolia or mock data, returning rich book details.
README
A clean and simple monorepo containing a TypeScript Model Context Protocol (MCP) server and a local React testing UI.
This connector exposes a search_product tool that allows ChatGPT to search for books. ChatGPT connects to the server using Server-Sent Events (SSE) via the /mcp endpoint. When a search runs, the backend queries Algolia (or uses high-quality local mock data as a fallback), returning rich details for books (image, name, edition, author, purchase/details link, and format options). The React UI allows developers to preview how the book cards and grids will render inside ChatGPT, inspect raw JSON tool outputs, and test search functionality.
Folder Structure
chatgpt-book-mcp/
├── package.json # Root monorepo configuration (npm workspaces)
├── README.md # This documentation file
├── mcp-server/ # Express-based SSE MCP Backend (TypeScript)
│ ├── package.json
│ ├── tsconfig.json
│ ├── src/
│ │ ├── index.ts # SSE server & API gateway
│ │ ├── algolia.ts # Algolia Integration & mock search fallback
│ │ └── types.ts # Shareable book interfaces
│ └── scripts/
│ └── test-tool.ts # CLI tool for testing the search tool
└── react-ui/ # React Front-end Dashboard (TypeScript/Vite)
├── package.json
├── tsconfig.json
├── vite.config.ts
├── index.html
└── src/
├── main.tsx
├── App.tsx # Interactive developer sandbox dashboard
├── index.css # Sleek modern styling (Vanilla CSS)
├── components/ # Beautiful responsive React widgets
│ ├── SearchBar.tsx
│ ├── ProductCard.tsx
│ ├── ProductGrid.tsx
│ └── RawJsonView.tsx
└── services/
└── mcpClient.ts # Client helper to fetch search results
Quick Start
1. Prerequisites
Ensure you have Node.js (v18 or higher) and npm installed.
2. Install Dependencies
Run the following command in the root of the monorepo:
npm install
3. Set Up Environment Variables
Inside the mcp-server directory, create a .env file (you can copy .env.example as a template):
cp mcp-server/.env.example mcp-server/.env
By default, if no credentials are provided in .env, the server will gracefully fallback to returning high-fidelity Mock Book Data so that you can run and test everything out-of-the-box. To connect your live books database, configure the Algolia credentials:
PORT=3000
ALGOLIA_APP_ID=your_algolia_app_id
ALGOLIA_API_KEY=your_algolia_search_only_api_key
ALGOLIA_INDEX_NAME=your_book_index_name
4. Run Development Servers
Start both the Backend SSE Server (port 3000) and Frontend React Testbed (port 5173) concurrently:
npm run dev
Testing the Setup
Method 1: Local React Sandbox Dashboard (Recommended)
Open your browser and navigate to:
http://localhost:5173
- Use the sleek search bar to query books like "Harry Potter", "Clean Code", "JavaScript", or "Design".
- Toggle the JSON Inspect panel to view the exact structure sent back by the backend tool.
- Interact with the responsive Book Grid and view the custom Book Cards with cover art, author names, editions, available formats (e.g. Hardcover, Paperback, E-book), and product links.
Method 2: Command Line Tester (MCP CLI Tool)
You can directly run a query against the MCP server tool from the command line:
npm run test-tool -- "Clean Code"
This runs mcp-server/scripts/test-tool.ts using tsx, sending the query to the tool handler and outputting the formatted JSON-RPC result in your terminal.
Integrating with ChatGPT
To register this connector as a custom application in ChatGPT:
- Deploy the
mcp-serverto a publicly accessible HTTPS endpoint (or use a local tunnel likengrokorlocaltunnelduring development:ngrok http 3000). - In ChatGPT, go to Explore GPTs -> Create a GPT -> Configure -> Actions -> Add Action (or the corresponding Custom MCP Settings).
- Provide the SSE endpoint URL. ChatGPT will initiate connection to:
https://<your-deployed-domain>/mcp - Once connected, ChatGPT can invoke the
search_producttool automatically when users ask questions like "Find books about Javascript" or "Show me editions of Harry Potter". - The JSON-RPC response returned by the server will then be formatted by ChatGPT. You can styling-guide ChatGPT using standard system instructions to list details or output the widget values.
Установка ChatGPT Book Connector
У этого сервера нет опубликованного пакета — он собирается из исходников. Открой репозиторий и следуй инструкции в README.
▸ github.com/sahilpate7/chatGPT-mcp-appFAQ
ChatGPT Book Connector MCP бесплатный?
Да, ChatGPT Book Connector MCP бесплатный — установка в пару кликов через Unyly без оплаты.
Нужен ли API-ключ для ChatGPT Book Connector?
Нет, ChatGPT Book Connector работает без API-ключей и переменных окружения.
ChatGPT Book Connector — hosted или self-hosted?
Доступен hosted-вариант: Unyly запускает сервер в облаке, локальная установка не обязательна.
Как установить ChatGPT Book Connector в Claude Desktop, Claude Code или Cursor?
Открой ChatGPT Book Connector на unyly.org, выбери вкладку своего клиента (Claude Desktop, Claude Code, Cursor) и нажми Install — конфиг сгенерируется автоматически, без правки JSON.
Похожие MCP
GitHub
PRs, issues, code search, CI status
автор: GitHubFilesystem
Secure file operations with configurable access controls.
Memory
Knowledge graph-based persistent memory system.
Template MCP Server
A CLI tool to create a new Model Context Protocol server project with TypeScript support, dual transport options, and an extensible structure
автор: mcpdotdirectCompare ChatGPT Book Connector with
Не уверен что выбрать?
Найди свой стек за 60 секунд
Автор?
Embed-бейдж для README
Похожее
Все в категории development
