Koha MCP Server
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., "@Koha MCP Serversearch for 'The Great Gatsby' by title"
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.
Koha MCP Server
An MCP server for searching the GBS Flexon Library catalog (Koha) and checking book availability.
Setup
Clone and install:
git clone https://github.com/wrecks1997/koha-mcp-server.git
cd koha-mcp-server
npm install
npm run buildCopy
.env.exampleto.envand fill in credentials:
cp .env.example .envAdd to Claude Code settings (
~/.claude/settings.json):
{
"mcpServers": {
"koha-library": {
"command": "node",
"args": ["/path/to/koha-mcp-server/dist/index.js"],
"env": {
"KOHA_BASE_URL": "https://staff.gbsc.bywatersolutions.com",
"KOHA_USERNAME": "your-username",
"KOHA_PASSWORD": "your-password"
}
}
}
}Related MCP server: NLB Singapore Library MCP Server
Tools
search_books
Search the catalog by title, author, ISBN, subject, or keyword.
Parameter | Type | Required | Default | Description |
query | string | yes | — | Search term |
search_type | enum | no | keyword | title, author, isbn, subject, keyword |
limit | number | no | 10 | Max results (1-50) |
check_availability
Check item-level availability for a book.
Parameter | Type | Required | Description |
biblio_id | number | yes | Biblio ID from search results |
Development
npm run dev # Run with tsx (hot reload)
npm test # Run tests
npm run build # Compile TypeScriptAvailable Tools
2 toolscheck_availabilityARead-only
Check the availability of a specific book by its biblio_id. Returns item-level details including call number, location, and whether each copy is available or checked out.
| Name | Required | Description | Default |
|---|---|---|---|
| biblio_id | Yes | The biblio_id from search_books results |
TDQS
Does the description disclose side effects, auth requirements, rate limits, or destructive behavior?
Annotations already declare readOnlyHint=true, and the description adds useful context beyond that: it returns item-level details including call number, location, and the circulation status of each copy. It does not contradict the annotations and provides a clear picture of what the read operation yields.
Agents need to know what a tool does to the world before calling it. Descriptions should go beyond structured annotations to explain consequences.
Is the description appropriately sized, front-loaded, and free of redundancy?
The description is a single, dense sentence that front-loads the purpose and immediately provides the key return summary. Every word earns its place, with no redundant or filler content.
Shorter descriptions cost fewer tokens and are easier for agents to parse. Every sentence should earn its place.
Given the tool's complexity, does the description cover enough for an agent to succeed on first attempt?
For a simple one-parameter read-only tool, the description adequately covers purpose and return content (item-level call number, location, availability/checkout status). Although there is no output schema and error behavior is not mentioned, the description provides enough for an agent to invoke the tool correctly in typical use.
Complex tools with many parameters or behaviors need more documentation. Simple tools need less. This dimension scales expectations accordingly.
Does the description clarify parameter syntax, constraints, interactions, or defaults beyond what the schema provides?
Schema description coverage is 100% for the single parameter, and the schema already explains that biblio_id comes from search_books results. The tool description only restates 'specific book' and adds no extra parameter semantics, so the schema carries the burden.
Input schemas describe structure but not intent. Descriptions should explain non-obvious parameter relationships and valid value ranges.
Does the description clearly state what the tool does and how it differs from similar tools?
The description uses a specific verb ('check') and resource ('a specific book by its biblio_id'), clearly stating the tool's scope. It also lists the return details (call number, location, availability), which distinguishes it from the sibling search_books that finds books rather than checking availability.
Agents choose between tools based on descriptions. A clear purpose with a specific verb and resource helps agents select the right tool.
Does the description explain when to use this tool, when not to, or what alternatives exist?
The description implies usage after obtaining a biblio_id from search_books, especially through the parameter description ('The biblio_id from search_books results'). However, it does not explicitly state when to use this tool versus search_books or mention alternative/exclusion scenarios, so it stops short of a 5.
Agents often have multiple tools that could apply. Explicit usage guidance like "use X instead of Y when Z" prevents misuse.
search_booksARead-only
Search the GBS library catalog by title, author, ISBN, subject, or keyword. Returns matching books with biblio_id for use with check_availability.
| Name | Required | Description | Default |
|---|---|---|---|
| limit | No | Maximum number of results to return | |
| query | Yes | Search term (title, author, ISBN, subject, or keyword) | |
| search_type | No | Type of search to perform | keyword |
TDQS
Does the description disclose side effects, auth requirements, rate limits, or destructive behavior?
With readOnlyHint annotation already signaling a safe read operation, the description adds value by disclosing that the tool returns matching books with biblio_id, which is not in the schema. It also connects to check_availability, though it doesn't mention rate limits or error behavior; for a simple read-only search, this is adequate.
Agents need to know what a tool does to the world before calling it. Descriptions should go beyond structured annotations to explain consequences.
Is the description appropriately sized, front-loaded, and free of redundancy?
The description is a single, well-structured sentence that front-loads the main action, then explains the output and downstream usage. It contains no superfluous words and is well-organized.
Shorter descriptions cost fewer tokens and are easier for agents to parse. Every sentence should earn its place.
Given the tool's complexity, does the description cover enough for an agent to succeed on first attempt?
For a read-only search tool with three parameters and a sibling, the description covers the essential purpose, output (biblio_id), and relationship to check_availability. It does not specify defaults for limit or search_type, but those are fully documented in the schema, so no critical information is missing.
Complex tools with many parameters or behaviors need more documentation. Simple tools need less. This dimension scales expectations accordingly.
Does the description clarify parameter syntax, constraints, interactions, or defaults beyond what the schema provides?
All three parameters (query, limit, search_type) have complete schema descriptions, so the high-coverage baseline applies. The description restates the search types but adds no supplementary syntax, examples, or parameter-specific behavior beyond the schema.
Input schemas describe structure but not intent. Descriptions should explain non-obvious parameter relationships and valid value ranges.
Does the description clearly state what the tool does and how it differs from similar tools?
The description uses a specific verb 'Search' targeting the GBS library catalog, enumerates search dimensions (title, author, ISBN, subject, or keyword), and explains the output (biblio_id) for use with check_availability. This clearly distinguishes its role from the sibling tool.
Agents choose between tools based on descriptions. A clear purpose with a specific verb and resource helps agents select the right tool.
Does the description explain when to use this tool, when not to, or what alternatives exist?
The description implies a clear workflow by stating 'for use with check_availability', indicating that this tool is a precursor for availability checks. It lacks explicit when-not-to-use instructions but provides enough contextual guidance for an agent to understand when this tool is appropriate.
Agents often have multiple tools that could apply. Explicit usage guidance like "use X instead of Y when Z" prevents misuse.
Tool Schema Changelog
Recent tool additions, removals, and schema changes observed during successful MCP inspections. Dates show when Glama detected each change.
2 tool updates
v1.0.0- First observed
check_availability - First observed
search_books
TDQS
The two tools have completely distinct purposes: search_books retrieves bibliographic records, while check_availability checks item status. There is no overlap, making tool selection unambiguous.
Both tool names follow the same verb_noun snake_case pattern: search_books and check_availability. The naming is consistent and intuitively indicates each tool's action and target.
With only 2 tools, the set feels thin but is appropriate for a narrowly scoped discovery and availability-checking service. It is not excessive, but the small number limits the server's overall utility.
The search-then-check-availability workflow is fully covered with no dead ends. A minor gap is the absence of a direct fetch-by-ID tool for full bibliographic details, but the search results likely provide sufficient information for the core use case.
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 Connectors
Search books and authors, fetch editions, browse subjects, and resolve cover images.
Federated search of books and papers, BibTeX/RIS citations, open-access retrieval and reading.
- LeafleOAuthnet.nanosheep
Personalised book recommendations, filtered to what's on your public library's shelf right now.
Academic literature search, retrieval, and private library management on top of OpenAlex.
Related MCP Servers
- FlicenseAqualityDmaintenanceEnables searching the Wake County Public Library catalog and all NC Cardinal libraries, returning book details including title, author, format, availability status, and direct catalog links.1-
- AlicenseNot gradedqualityDmaintenanceEnables searching the National Library Board Singapore catalogue by title, author, ISBN, or subject, and checking real-time availability of books across library branches.Apache 2.0
- AlicenseBqualityDmaintenanceEnables AI clients to search Aspen Discovery library catalogs and check real-time book availability by keyword, author, or ISBN. This server allows users to verify local library inventory and filter book recommendations accordingly.214MIT
- AlicenseNot gradedqualityCmaintenanceEnables searching and retrieving Project Gutenberg books by title, author, topic, and popularity, along with book details and download statistics through the Gutendex API.4MIT
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/wrecks1997/koha-mcp-server'
If you have feedback or need assistance with the MCP directory API, please join our Discord server