mcpField
M
Mcp Google Books

Mcp Google Books

Local
github.com/juanbenitezaGames & Entertainment5Updated 81w ago

About Mcp Google Books

An MCP server that retrieves book information through the Google Books API. MCP clients can search by book title or author and receive bibliographic details and descriptions when available.

Key features

  1. 01Search books by title
  2. 02Search books by author
  3. 03Return titles, authors, and publication dates
  4. 04Include descriptions when available

Use cases

  1. 01Find books by title
  2. 02Find books by author
  3. 03Retrieve book details for a query

MCP support

Exposes book-title and author-search tools to MCP clients, using the Google Books API to return book information.

Configuration

Local server config is the same for every client. Copy it into your client’s MCP config file.

mcp.json · Universal config
{
"mcpServers": {
"google-books": {
"command": "npx",
"args": [
"-y",
"@smithery/cli"
]
}
}
}
Run commandnpx -y @smithery/cli

Local servers need a runtime on your machine (e.g. Node.js 18+). Config file locations differ by client; see your client’s docs.

Packages
npm@smithery/cli

Tools

No tool list yet

Local servers expose tools only once running on your machine, and the maintainer has not provided a tool list.

Details

From the project README

MCP Google Books

smithery badge

🧐 What is This?

This MCP server package exposes functionality for fetching book related information from Google Books API. This implementation is designed to be used in environments that support the MCP protocol, such as Claude.

📦 Usage

Installing via Smithery

To install mcp-google-books for Claude Desktop automatically via Smithery:

npx -y @smithery/cli install @juanbeniteza/mcp-google-books --client claude
Starting Up the Server

To begin using mcp-google-books, connect to your MCP compatible environment (such as Claude) and then run the server.

  1. Start the server by issuing the following command:
    node mcp-google-books.js
    

💡 Example

Below is a detailed example of how to use the mcp-google-books server with an MCP compatible client:

  1. Initialize the Server

    • Start the server.
  2. Client Interactions

    • With a running instance of Claude or another compatible client, the client should automatically connect and discover this server, listing its tools and resources available for use.
    • You can query books by title or author.
  3. Tool Listings

    • Once the server initializes, list available tools. This would include actions that can be invoked by clients.
  4. Calling Tools

    • Clients can now call available tools for getting book information via Google Books API.

🙏 Acknowledgements

Special thanks to Google Books API for providing the required data.

🌍 License

This repository is licensed under the MIT License. See the LICENSE file for more information.

🛠️ Available Tools

This MCP server provides the following tools for interacting with Google Books:

1. Book Search

Search for books by title using the Google Books API.

mcp_Google_Books_book_search(query: str)

Parameters:

  • query: The title of the book to search for

Example:

# Search for a book by title
result = mcp_Google_Books_book_search(query="The Hobbit")
2. Author Search

Search for books by author using the Google Books API.

mcp_Google_Books_author_search(query: str)

Parameters:

  • query: The name of the author to search for

Example:

# Search for books by an author
result = mcp_Google_Books_author_search(query="J.R.R. Tolkien")

📝 Response Format

Both tools return information about books including:

  • Title
  • Author(s)
  • Published Date
  • Description (when available)

The results are returned in a formatted text that can be easily read and processed by MCP clients.

⚠️ Rate Limiting

Please note that these tools use the Google Books API, which has rate limiting. Make sure to handle your requests accordingly to avoid hitting API limits.

Comments

Markdown supported

New to MCP?

From what the protocol is to installing your first server, these answers cover most first questions.

An open protocol that defines how AI applications connect to external tools and data in a uniform way. Clients talk to the model; MCP servers provide tools, resources and prompt templates. They exchange standard messages, so one server can be reused by many clients.