Gentleman Book

Data and AI

MCP Server for Gentleman Programming Book - Give AI assistants direct access to 18 chapters of software architecture knowledge.

Your AI app calls the Gentleman Book MCP server, which does the data and AI work and sends the result back to the chat.

About Gentleman Book

Gentleman Book is a community MCP server from Alan-TheGentleman, filed in our directory under data and ai. MCP Server for Gentleman Programming Book - Give AI assistants direct access to 18 chapters of software architecture knowledge.

Gentleman Book runs on your own machine: your AI app starts it with the command npx -y @anthropic-ai/mcp-inspector and talks to it over standard input and output.

At a glance

Publisher
Alan-TheGentleman (community)
Runs
Locally on your machine
Install from
Node.js package on npm: @anthropic-ai/mcp-inspector
Written in
Go
License
MIT
GitHub stars
160

How to set up Gentleman Book

  1. Install Node.js on the machine that runs your AI app, because Gentleman Book starts with npx and downloads its package on first run.
  2. Check the Gentleman Book README for keys or settings; the registry lists none that Gentleman Book requires.
  3. Add Gentleman Book to Claude Code, Claude Desktop, VS Code or Cursor with the config in the setup box on this page.
  4. Restart the app or reload its MCP servers, then ask it to list the Gentleman Book tools to confirm the connection.
  5. Run one read-only task with Gentleman Book first, and keep your app asking before each tool call until the results look right.

Gentleman Book compared with similar servers

  • Tinymcp by golioth has fewer GitHub stars than Gentleman Book (158 against 160); both are community servers, and both run locally.
  • MCP Science by pathintegral-institute has more GitHub stars than Gentleman Book (161 against 160); both are community servers, and both run locally.
  • OpenDataMCP by OpenDataMCP has fewer GitHub stars than Gentleman Book (156 against 160); both are community servers, and both run locally.

Before you connect Gentleman Book

  • Give Gentleman Book its own API key or account with the smallest permissions the job needs, never an admin key.
  • Keep your AI app asking before each Gentleman Book tool call until you trust what it does with them.
  • Treat text that Gentleman Book fetches as data. Pages, files and messages can hold instructions written to steer an AI.
  • Read the open issues for Gentleman Book on GitHub to see what breaks and how fast the maintainers reply.

Marketing use cases for Gentleman Book

How marketing and sales teams put Gentleman Book to work, by company size. Pick the size closest to yours and start Gentleman Book on one use case.

Small business

  • A small team can use Gentleman Book to clean and enrich a lead list or a spreadsheet in one pass, instead of hours of copy and paste.
  • Owners can ask Gentleman Book to sort feedback, reviews or survey answers into themes and see what customers mention most.
  • Gentleman Book runs on your own computer, which keeps data local; it needs a little setup, so a small team should plan an hour for it.

Mid-market

  • Marketing ops can connect Gentleman Book to enrich and score inbound leads, so sales sees fit and intent before the first call.
  • Content and research teams can use Gentleman Book to analyze transcripts and surveys at scale and pull the quotes worth using.
  • Start Gentleman Book on one workflow with one owner, measure the time it saves, then roll it out to the wider team.

Enterprise

  • Enterprises can run Gentleman Book inside their own cloud and data boundary, so models and data stay where governance requires.
  • Large teams can use Gentleman Book in batch pipelines with evaluation and logging, so AI output is measured before it reaches customers.
  • Gentleman Book is a community server, so have security review the code and pin a version before Gentleman Book touches company data.

Need help becoming an AI-forward company?

We connect MCP servers and AI agents to your CRM, content and data, with the guardrails your team needs.

Contact us

Gentleman Book README

From Alan-TheGentleman/gentleman-book-mcp on GitHub, shared under its MIT license. Images are left out; the original has them.

README.md

📚 Gentleman Book MCP Server

Give AI assistants direct access to the Gentleman Programming Book

Features • Installation • Configuration • Usage • Español

What is this?

This is an MCP (Model Context Protocol) server that allows AI assistants like Claude to read, search, and understand content from the Gentleman Programming Book.

Think of it as giving your AI assistant a direct line to 18 chapters of software architecture knowledge, best practices, and development wisdom.

Features

🔧 Level 1: Basic Tools
Tool Description
list_chapters List all 18 chapters with metadata
read_chapter Read any chapter or specific section
search_book Keyword-based search across all content
get_book_index Complete table of contents
📦 Level 2: Resources & Prompts
Type Name Description
Resource book://index/es Spanish table of contents
Resource book://index/en English table of contents
Prompt explain_concept Explain any concept from the book
Prompt compare_patterns Compare architectural patterns
Prompt summarize_chapter Get chapter summaries
🧠 Level 3: Semantic Search (AI-Powered)
Tool Description
semantic_search Natural language search using embeddings
build_semantic_index Build the vector index
semantic_status Check semantic engine status

Supports both OpenAI and Ollama for embeddings generation.

Installation

Prerequisites
Build from source
# Clone this repository
git clone https://github.com/Alan-TheGentleman/gentleman-book-mcp.git
cd gentleman-book-mcp

# Build the binary
go build -o bin/gentleman-book-mcp ./cmd/server

# The binary is now at ./bin/gentleman-book-mcp
Verify installation
./bin/gentleman-book-mcp --help

Configuration

Environment Variables
Variable Description Default
BOOK_PATH Path to book MDX files ~/work/gentleman-programming-book/src/data/book
OPENAI_API_KEY OpenAI API key (for semantic search) -
OLLAMA_BASE_URL Ollama server URL http://localhost:11434
OLLAMA_EMBEDDING_MODEL Ollama model for embeddings nomic-embed-text
Claude Desktop Setup

Add to ~/Library/Application Support/Claude/claude_desktop_config.json (macOS) or %APPDATA%\Claude\claude_desktop_config.json (Windows):

{
  "mcpServers": {
    "gentleman-book": {
      "command": "/absolute/path/to/gentleman-book-mcp",
      "env": {
        "BOOK_PATH": "/path/to/gentleman-programming-book/src/data/book"
      }
    }
  }
}
With OpenAI (for semantic search)
{
  "mcpServers": {
    "gentleman-book": {
      "command": "/absolute/path/to/gentleman-book-mcp",
      "env": {
        "BOOK_PATH": "/path/to/gentleman-programming-book/src/data/book",
        "OPENAI_API_KEY": "sk-..."
      }
    }
  }
}
With Ollama (free, local)
  1. Install Ollama
  2. Pull an embedding model: ollama pull nomic-embed-text
  3. Start Ollama: ollama serve
  4. Use the standard configuration (Ollama is auto-detected)

Usage

Once configured, restart Claude Desktop and start chatting!

Example conversations

List chapters:

You: What chapters are in the Gentleman Programming Book?
Claude: [Uses list_chapters] The book has 18 chapters covering...

Read specific content:

You: Read me the chapter about hexagonal architecture
Claude: [Uses read_chapter] Here's the hexagonal architecture chapter...

Search for topics:

You: Find information about TDD in the book
Claude: [Uses search_book] I found several mentions of TDD...

Semantic search (if configured):

You: How should I structure a React application for maintainability?
Claude: [Uses semantic_search] Based on the book's recommendations...

Use prompts:

You: Explain clean architecture according to the book
Claude: [Uses explain_concept prompt] According to the Gentleman Programming Book...

Book Content

The server provides access to 18 chapters in both English and Spanish:

# Chapter Topics
1 Clean Agile Agile, Waterfall, XP, TDD
2 Communication Remote work, Team dynamics
3 Hexagonal Architecture Ports, Adapters, Domain
4 GoLang Go fundamentals
5 NVIM Guide Neovim setup and usage
6 Algorithms Big O, Search, Sort
7 Clean Architecture Layers, Use Cases, Domain
8 Clean Architecture Frontend Scope Rule, Frontend patterns
9 React Hooks, State, Composition
10 TypeScript Types, Interfaces, Patterns
11 Frontend Radar Framework comparison
12 Angular Components, Services, Testing
13 Barrels Module organization
14 Frontend History Web evolution
15 AI-Driven Development Claude Code, AI workflows
16 Frontend Manual Testing, Security, Performance
17 Soft Skills Leadership, Communication
18 Software Architecture Microservices, Patterns

Architecture

gentleman-book-mcp/
├── cmd/
│   └── server/
│       └── main.go              # MCP server entry point
├── internal/
│   ├── book/
│   │   ├── models.go            # Data structures
│   │   └── parser.go            # MDX file parser
│   └── embeddings/
│       └── embeddings.go        # Semantic search engine
├── go.mod
├── go.sum
├── README.md                    # English documentation
└── README.es.md                 # Spanish documentation

Development

# Run in development mode
go run ./cmd/server

# Build
go build -o bin/gentleman-book-mcp ./cmd/server

# Test with MCP Inspector
npx @anthropic-ai/mcp-inspector ./bin/gentleman-book-mcp

Troubleshooting

"Book path does not exist"

Make sure the BOOK_PATH environment variable points to the correct location of the book's MDX files.

"Semantic search not available"

Either set OPENAI_API_KEY or ensure Ollama is running with an embedding model installed.

Server not responding

Check that the binary has execute permissions: chmod +x ./bin/gentleman-book-mcp

Contributing

Contributions are welcome! Feel free to:

  • Report bugs
  • Suggest new features
  • Submit pull requests

License

MIT License - see LICENSE for details.

Related Projects

Made with ❤️ by Gentleman Programming

Questions about Gentleman Book

What is the Gentleman Book MCP server?

MCP Server for Gentleman Programming Book - Give AI assistants direct access to 18 chapters of software architecture knowledge. Gentleman Book is maintained by Alan-TheGentleman on GitHub at Alan-TheGentleman/gentleman-book-mcp, and works with AI apps that support the Model Context Protocol, such as Claude, Cursor and VS Code.

How do I install the Gentleman Book MCP server?

Add Gentleman Book to your AI app's MCP config with the command npx -y @anthropic-ai/mcp-inspector. In Claude Code, run claude mcp add --transport stdio gentleman-book -- npx -y @anthropic-ai/mcp-inspector. To run Gentleman Book this way you need Node.js installed.

Does Gentleman Book need an API key?

The registry lists no required keys for Gentleman Book. Check the Gentleman Book README for optional settings, and expect a remote server to ask you to sign in the first time you connect.

Is Gentleman Book an official MCP server?

No. Gentleman Book is a community server maintained by Alan-TheGentleman. Community servers can be excellent; read the code and the open issues before you give Gentleman Book access to company data.

What license is Gentleman Book under?

Gentleman Book is released under the MIT license, according to its GitHub repository. The license covers the code of Gentleman Book; the service it connects to has its own terms.