Libib MCP by usefulapi
Read patrons, managers and accounts; create and update patrons in Libib.
我该使用它吗
质量与安全性
基于对工具定义和协议合规性的自动分析。
上下文开销
这是每次将服务器的工具加载到模型上下文窗口时所消耗的大致 token 数。数值越高,可用于其他任务的注意力就越少。
安装
一键安装
将以下内容添加到你的 `claude_desktop_config.json` 文件中:
{
"mcpServers": {
"libib": {
"url": "https://libib.usefulapi.io/mcp"
}
}
}远程端点
https://libib.usefulapi.io/mcpstreamable-http它能做什么
工具清单
工具(7)
🟢libib_list_accounts
Show the Libib account behind this API key: organization name, owner, URL alias and API ID. Pro keys return one account. Libib API: GET /accounts.
输入模式
{
"type": "object",
"properties": {},
"$schema": "https://json-schema.org/draft/2020-12/schema"
}🟢libib_list_managers
List every manager on the Libib account, including the owner, with each manager's role (owner, admin, manager or lender). Libib API: GET /managers.
输入模式
{
"type": "object",
"properties": {},
"$schema": "https://json-schema.org/draft/2020-12/schema"
}🟢libib_get_manager(email)
Show one manager's name, email and role, found by the manager's email address. Libib API: GET /managers/{email}.
输入模式
{
"type": "object",
"properties": {
"email": {
"type": "string",
"minLength": 3,
"maxLength": 320,
"description": "Email address of the manager."
}
},
"required": [
"email"
],
"$schema": "https://json-schema.org/draft/2020-12/schema"
}🟢libib_list_patrons(page)
List one page of patrons (50 per page) with their barcode, name, email, tags, patron ID, address and freeze status. The result gives total and pages; ask for the next page to read more. Libib API: GET /patrons?page=.
输入模式
{
"type": "object",
"properties": {
"page": {
"description": "Page number (50 patrons per page, default 1).",
"type": "integer",
"exclusiveMinimum": 0,
"maximum": 9007199254740991
}
},
"$schema": "https://json-schema.org/draft/2020-12/schema"
}🟢libib_get_patron(id)
Show one patron's full record, found by barcode or email address. Libib API: GET /patrons/{id}.
输入模式
{
"type": "object",
"properties": {
"id": {
"type": "string",
"minLength": 1,
"maxLength": 320,
"description": "The patron's barcode or email address."
}
},
"required": [
"id"
],
"$schema": "https://json-schema.org/draft/2020-12/schema"
}🔴libib_create_patron(first_name, last_name, email, notification_emails, tags, ...)
Create a new patron on the Libib account. first_name and last_name are required. Libib assigns the barcode itself. The patron password is not set here. Libib API: POST /patrons.
输入模式
{
"type": "object",
"properties": {
"first_name": {
"type": "string",
"minLength": 1,
"maxLength": 200,
"description": "Patron's first name (required)."
},
"last_name": {
"type": "string",
"minLength": 1,
"maxLength": 200,
"description": "Patron's last name (required)."
},
"email": {
"description": "Patron's email. Must be unique on the account.",
"type": "string",
"maxLength": 320
},
"notification_emails": {
"description": "Up to 3 comma-separated emails for notifications.",
"type": "string",
"maxLength": 500
},
"tags": {
"description": "Comma-separated patron tags.",
"type": "string",
"maxLength": 500
},
"patron_id": {
"description": "Custom ID (not required to be unique).",
"type": "string",
"maxLength": 200
},
"phone": {
"description": "Contact phone number.",
"type": "string",
"maxLength": 60
},
"address1": {
"description": "Street address line 1.",
"type": "string",
"maxLength": 200
},
"address2": {
"description": "Street address line 2.",
"type": "string",
"maxLength": 200
},
"city": {
"description": "City.",
"type": "string",
"maxLength": 200
},
"state": {
"description": "State (2-character abbreviation for US addresses).",
"type": "string",
"maxLength": 100
},
"country": {
"description": "2-character country code.",
"type": "string",
"minLength": 2,
"maxLength": 2
},
"zip": {
"description": "Postal code.",
"type": "string",
"maxLength": 20
}
},
"required": [
"first_name",
"last_name"
],
"$schema": "https://json-schema.org/draft/2020-12/schema"
}🔴libib_update_patron(id, first_name, last_name, email, notification_emails, ...)
Change fields of one existing patron, found by barcode or email. Omit a field to leave it unchanged. An empty string removes that value from the patron. The patron password and barcode are not changed here. Libib API: PATCH /patrons/{id}.
输入模式
{
"type": "object",
"properties": {
"id": {
"type": "string",
"minLength": 1,
"maxLength": 320,
"description": "The patron's barcode or email address."
},
"first_name": {
"description": "Patron's first name.",
"type": "string",
"maxLength": 200
},
"last_name": {
"description": "Patron's last name.",
"type": "string",
"maxLength": 200
},
"email": {
"description": "Patron's email. Must be unique on the account.",
"type": "string",
"maxLength": 320
},
"notification_emails": {
"description": "Up to 3 comma-separated emails for notifications.",
"type": "string",
"maxLength": 500
},
"tags": {
"description": "Comma-separated patron tags.",
"type": "string",
"maxLength": 500
},
"patron_id": {
"description": "Custom ID (not required to be unique).",
"type": "string",
"maxLength": 200
},
"phone": {
"description": "Contact phone number.",
"type": "string",
"maxLength": 60
},
"address1": {
"description": "Street address line 1.",
"type": "string",
"maxLength": 200
},
"address2": {
"description": "Street address line 2.",
"type": "string",
"maxLength": 200
},
"city": {
"description": "City.",
"type": "string",
"maxLength": 200
},
"state": {
"description": "State (2-character abbreviation for US addresses).",
"type": "string",
"maxLength": 100
},
"country": {
"description": "2-character country code. An empty string clears the country.",
"anyOf": [
{
"type": "string",
"const": ""
},
{
"type": "string",
"minLength": 2,
"maxLength": 2
}
]
},
"zip": {
"description": "Postal code.",
"type": "string",
"maxLength": 20
}
},
"required": [
"id"
],
"$schema": "https://json-schema.org/draft/2020-12/schema"
}社区
证据