Developer Documentation
Use Litra.ai's public API and MCP server to search academic papers from your AI agents and applications.
Quick Start
1. Create an Account
Sign up for Litra.ai and subscribe to a paid plan (Mini or higher).
2. Generate an API Key
Go to the API Key Management section on your account page to generate an API key.
3. Call the API
Use your API key to search papers via the REST API or MCP server.
API Reference
Base URL
https://litra-ai.com/api/v1Authentication
Include your API key as a Bearer token in all requests.
Authorization: Bearer YOUR_API_KEY/api/v1/searchPaper Search
Search papers by keywords or phrases. AI understands the meaning of your query and returns relevant papers.
/api/v1/author/searchAuthor Search
Search papers by author name.
/api/v1/creditsCheck Credit Balance
Check your current credit balance.
curl -X POST https://litra-ai.com/api/v1/search \
-H "Authorization: Bearer YOUR_API_KEY" \
-H "Content-Type: application/json" \
-d '{
"query": "sleep deprivation memory consolidation",
"max_results": 10
}'Error Codes
| Code | Description |
|---|---|
401 | Authentication error: API key is invalid or missing |
402 | Insufficient credits: Your balance is too low |
429 | Rate limit exceeded: Too many requests |
500 | Server error: Please try again later |
MCP Server
With MCP (Model Context Protocol), you can search papers from Litra.ai directly from your AI agent. The following clients are supported.
claude mcp add litra \
-- npx -y @anthropic-ai/mcp-remote \
https://litra-ai.com/api/v1/mcp \
--header "Authorization: Bearer YOUR_API_KEY"Pricing & Rate Limits
API and MCP usage consumes the same credits as the web app. Rate limits per plan are as follows.
| Plan | Credits/mo | Rate Limit |
|---|---|---|
| Mini | 30 | 10 req/min |
| Standard | 100 | 30 req/min |
| Pro | 400 | 60 req/min |
| Max | 1200 | 120 req/min |
Frequently Asked Questions
How many API keys can I create?
You can create up to 5 API keys per account.
Does API usage consume credits?
Yes. Searches via the API consume the same credits as web app searches.
What happens if I exceed the rate limit?
A 429 error will be returned. Please wait a moment before retrying.
The MCP server configuration is not working.
Please verify that your API key is correctly configured. If the issue persists, contact us.