get_citeas_data
Retrieve BibTeX-formatted citations for resources like DOIs, URLs, or keywords directly from CiteAs. Simplify your research workflow by automating citation retrieval.
Instructions
Retrieve BibTeX-formatted citation for the specified resource (e.g., DOI, URL, keyword) from the CiteAs
Input Schema
TableJSON Schema
| Name | Required | Description | Default |
|---|---|---|---|
| resource | Yes |
Implementation Reference
- src/reference_mcp/server.py:10-16 (handler)The handler function for the 'get_citeas_data' tool. It is decorated with @mcp.tool() which registers it with the MCP server. Fetches BibTeX citation data from the CiteAs API for a given resource (e.g., DOI). Includes inline schema via type hints and docstring.@mcp.tool() def get_citeas_data(resource: str) -> str: """Retrieve BibTeX-formatted citation for the specified `resource` (e.g., DOI, URL, keyword) from the CiteAs""" response = httpx.get(f"https://api.citeas.org/product/{resource}?email=default@example.com") response.raise_for_status() data = response.json() return next((export["export"] for export in data["exports"] if export["export_name"] == "bibtex"), None)