Skip to main content
Glama

Koha MCP Server

An MCP server for searching the GBS Flexon Library catalog (Koha) and checking book availability.

Setup

  1. Clone and install:

git clone https://github.com/wrecks1997/koha-mcp-server.git
cd koha-mcp-server
npm install
npm run build
  1. Copy .env.example to .env and fill in credentials:

cp .env.example .env
  1. Add 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 TypeScript

Available Tools

2 tools
check_availabilityA
Read-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.

ParametersJSON Schema
NameRequiredDescriptionDefault
biblio_idYesThe biblio_id from search_books results

TDQS

A4.2/5.0
Behavior4/5

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.

Conciseness5/5

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.

Completeness4/5

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.

Parameters3/5

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.

Purpose5/5

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.

Usage Guidelines4/5

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_booksA
Read-only

Search the GBS library catalog by title, author, ISBN, subject, or keyword. Returns matching books with biblio_id for use with check_availability.

ParametersJSON Schema
NameRequiredDescriptionDefault
limitNoMaximum number of results to return
queryYesSearch term (title, author, ISBN, subject, or keyword)
search_typeNoType of search to performkeyword

TDQS

A4.2/5.0
Behavior4/5

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.

Conciseness5/5

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.

Completeness4/5

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.

Parameters3/5

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.

Purpose5/5

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.

Usage Guidelines4/5

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.

  1. 2 tool updatesv1.0.0
    • First observedcheck_availability
    • First observedsearch_books

TDQS

A4.2/5.0
Disambiguation5/5

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.

Naming Consistency5/5

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.

Tool Count3/5

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.

Completeness4/5

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

ActivityInactive
ResponsivenessNo issues

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

Related MCP Servers

  • F
    license
    A
    quality
    D
    maintenance
    Enables 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
    -
  • A
    license
    B
    quality
    D
    maintenance
    Enables 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.
    2
    14
    MIT

Latest Blog Posts

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