Content
# Shamela MCP Server for Antigravity
MCP Server connects Antigravity to a locally installed **Shamela Library 4**.
## Tool List
| Tool | Description |
|--------|-------|
| `shamela_search_books` | Search for book names (8500+) |
| `shamela_search_authors` | Search for authors (3100+) |
| `shamela_list_categories` | Display all categories with book counts |
| `shamela_get_book` | Get book data by ID |
| `shamela_get_author` | Get author data and book list |
| `shamela_list_downloaded` | List of actually downloaded books |
| `shamela_get_page` | Read a page from a downloaded book |
| `shamela_get_toc` | Table of contents for a book |
| `shamela_search_pages` | Search for text in downloaded books |
## Configuring Antigravity
Add this line to the MCP settings in Antigravity:
```json
{
"mcpServers": {
"shamela": {
"command": "node",
"args": ["D:/06. Antigravity/shamela-mcp/src/index.js"],
"env": {
"SHAMELA_ROOT": "D:\\shamela4"
}
}
}
}
```
## Usage Examples
- "Search Shamela for books by Ibn Taymiyyah"
- "Give me a list of downloaded books in the Creed section"
- "Search for the term 'Istisna' in jurisprudence books"
- "Read page 5 of book number 1000 for me"