
Fantasy Library MCP
by loickaczmarek
A tutorial MCP server connecting to a local Postgres database for fantasy library management.
What it does
This server acts as a bridge between an AI assistant and a local PostgreSQL database containing a fantasy library. It serves as a reference implementation and tutorial for building MCP servers using TypeScript.
Tools
get-book-description: Retrieves the detailed description of a specific book from the fantasy library database by its name.
Installation
To run this server, you need Node.js and Docker. First, start the database:
docker-compose up -d
Then, add the following to your claude_desktop_config.json:
{
"mcpServers": {
"fantasy-library": {
"command": "npm",
"args": ["run", "dev", "--", "postgresql://admin:password@localhost:5432/bibliotheque"]
}
}
}
Supported hosts
- claude
Quick install
npm run dev -- postgresql://admin:password@localhost:5432/bibliothequeInformation
- Pricing
- free
- Published
- 5/5/2026
- stars





