library_mcp
Click on "Install Server".
Wait a few minutes for the server to deploy. Once ready, it will show a "Started" state.
In the chat, type
@followed by the MCP server name and your instructions, e.g., "@library_mcpCheck availability of 'The Catcher in the Rye'"
That's it! The server will respond to your query, and you can continue using it as needed.
Here is a step-by-step guide with screenshots.
Library MCP
A Model Context Protocol (MCP) server for college library management. This server provides AI-powered tools for managing library operations including book issuance, returns, inventory, and reporting.
Features
Tools
Issue Book: Issue an available copy of a book to a student
Process Return: Return a book and automatically assess late fines if overdue
Add Book: Add new titles to the library catalog with multiple copies
Resources
Book Info: Retrieve full details for any book in the catalog
Book ID Lookup: Resolve partial titles to matching book IDs
Availability: Check available vs total copies of any book
Prompts
Returns Due Today: Generate reminder messages for books due back today
Top Performing Books: Report the most-issued books
Under-Performing Books: Identify underutilized titles for promotion or retirement
Related MCP server: LibraryMCP
Requirements
Python 3.12+
MySQL 8.0+
FastMCP 3.4.7
Installation
Clone the repository:
git clone <repository-url>
cd library_mcpInstall dependencies:
uv syncSet up MySQL database:
mysql -u root -p < data/library_schema.sql
mysql -u root -p < data/library_seed.sqlOr let the application auto-initialize on first run.
Configuration
Set these environment variables in .env:
MYSQL_HOST=localhost
MYSQL_USERNAME=root
MYSQL_PASSWORD=rootpassword
MYSQL_DATABASE=libraryRunning the Server
uv run main.pyThe MCP server will start on http://127.0.0.1:19000/mcp
Database Auto-Initialization
The server automatically initializes the MySQL database on first run:
Creates the
librarydatabase and all tablesPopulates seed data with sample users, books, and transactions
Subsequent runs skip initialization if tables already exist
Project Structure
library_mcp/
├── main.py # MCP server entry point with tools, resources, and prompts
├── db.py # Database connection and initialization utilities
├── operations.py # Business logic for library operations
├── datastore.py # Data access layer
├── test.py # Database connection test
├── pyproject.toml # Project configuration and dependencies
├── README.md # This file
├── .gitignore # Git ignore rules
└── data/
├── library_schema.sql # Database schema (tables and structure)
└── library_seed.sql # Sample data (users, books, transactions)Database Schema
The library system manages:
Users: Librarians and students with authentication
Books: Catalog with metadata (ISBN, title, subject, publisher)
Book Copies: Individual copies with status tracking
Loan Transactions: Issue and return records with dates
Fines: Late fee assessment and payment tracking
Authors & Publishers: Reference data for cataloging
API Usage
Issuing a Book
issue_book(student_id="STU001", book_id=1, date="2026-08-13")Returning a Book
process_return(student_id="STU001", book_id=1, date="2026-08-20", description="")Adding a New Book
add_book(title="New Title", isbn13="978-0-123456-78-9", subject="CS", copies=5)Getting Book Info
GET /resources/book://{book_id}Checking Availability
GET /resources/availability://{book_id}Testing
Run the test script to verify database connectivity:
uv run test.pyLicense
MIT
This server cannot be installed
Maintenance
Resources
Unclaimed servers have limited discoverability.
Looking for Admin?
If you are the server author, to access and configure the admin panel.
Related MCP Servers
- AlicenseBqualityDmaintenanceMCP server that enables searching books by author via Open Library API and searching keywords inside local text files.2213MIT
- Alicense-qualityDmaintenanceA library management MCP server supporting book search, member management, and loan operations through natural language commands.4MIT
- Flicense-qualityBmaintenanceMCP server for student management with CRUD operations, supporting user authentication and student record management.
- FlicenseAqualityCmaintenanceA small MCP server modeling a library with tools to search books, borrow books, and manage members, enabling interaction with a library catalog through natural language.4
Related MCP Connectors
MCP server for URL shortening and management
MCP server for the Inistate platform: module discovery, entry management, and activity submission.
A MCP server built for developers enabling Git based project management with project and personal…
Latest Blog Posts
- Who's Calling? MCP Hosts Are an Identity Blind Spot (And the Spec Knows It)By Om-Shree-0709 on .mcpAgent IdentityOAuth 2.1
- Your AI Chatbot Just Exposed Your CEO's Salary to an InternBy Om-Shree-0709 on .Agent IdentityMCP SecurityOAuth Delegation
- Why MCP Servers Need Execution Sandboxing (And Why Your Current Stack Isn't Enough)By Om-Shree-0709 on .Agentic AiPrompt InjectionWebAssembly
MCP directory API
We provide all the information about MCP servers via our MCP API.
curl -X GET 'https://glama.ai/api/mcp/v1/servers/ajr543/library_mcp'
If you have feedback or need assistance with the MCP directory API, please join our Discord server