Hasab MCP
MCP server for Hasab AI — translation, summarization, transcription, text-to-speech, and chat. Calls api.hasab.ai with your API key.
Requirements
- Python 3.11+
- A Hasab API key (
HASAB_KEY_…from the portal)
Install (local dev)
git clone git@github.com:Yosinan/hasab-mcp.git
cd hasab-mcp
python -m venv .venv
source .venv/bin/activate
pip install -e ".[dev]"
cp .env.example .env # set HASAB_API_KEY
Cursor
Add to ~/.cursor/mcp.json (or project .cursor/mcp.json):
{
"mcpServers": {
"hasab": {
"command": "python",
"args": ["-m", "hasab_mcp"],
"cwd": "/absolute/path/to/hasab-mcp",
"env": {
"HASAB_API_KEY": "HASAB_KEY_…"
}
}
}
}
After publish to PyPI:
{
"mcpServers": {
"hasab": {
"command": "uvx",
"args": ["hasab-mcp"],
"env": {
"HASAB_API_KEY": "HASAB_KEY_…"
}
}
}
}
Restart Cursor. You should see six tools: hasab_translate, hasab_summarize, hasab_transcribe, hasab_tts, hasab_list_tts_speakers, hasab_chat.
Claude Desktop
Edit claude_desktop_config.json (macOS: ~/Library/Application Support/Claude/claude_desktop_config.json) with the same mcpServers block as above.
Tools (v1)
| Tool | Hasab API |
|---|---|
hasab_translate |
POST /api/translate |
hasab_summarize |
POST /api/summarize |
hasab_transcribe |
POST /api/upload-audio |
hasab_tts |
POST /api/tts/synthesize |
hasab_list_tts_speakers |
GET /api/tts/speakers |
hasab_chat |
POST /api/chat |
Translation codes include amh, eng, orm, tig (and aliases en, am, ti, Oromo, Tigrigna).
Environment
| Variable | Required | Default |
|---|---|---|
HASAB_API_KEY |
Yes | — |
HASAB_API_BASE_URL |
No | https://api.hasab.ai |
HASAB_MCP_AUDIO_DIR |
No | {temp}/hasab-mcp/audio |
HASAB_MCP_TIMEOUT |
No | 120 |
HASAB_MCP_LOG_LEVEL |
No | INFO |
Optional HTTP health app
uvicorn app.main:app --reload --port 8080
curl localhost:8080/health
Used for ops and future hosted MCP (ChatGPT connectors). The IDE integration uses stdio only.
Test
pytest
License
MIT
Metadata
Release files for hasab-mcp 0.1.0
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | |
|---|---|---|---|
| hasab_mcp-0.1.0.tar.gz | 8.4 kB | Details |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Reset |
|---|---|---|---|---|
| hasab_mcp-0.1.0-py3-none-any.whl | Python 3 | none | any | Details |
Total release size: 16.6 kB
Release files / hasab_mcp-0.1.0.tar.gz
| Download URL | hasab_mcp-0.1.0.tar.gz |
|---|---|
| Size | 8.4 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
1187d12633409373a207fcb331b16ddef274709a93d899dd76b58abe008cffaa
|
|
BLAKE2b-256 checksum How to use checksums |
8fbb79fd30e1cce81d778fe78179b1961e402b204007210dbbb9b48833dd1f4f
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/7.0.0 CPython/3.13.13
|
Release files / hasab_mcp-0.1.0-py3-none-any.whl
| Download URL | hasab_mcp-0.1.0-py3-none-any.whl |
|---|---|
| Size | 8.2 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
af4edcb29ed2d0f3bb6a2f649175066e73c3018aa6ccdf0b782fe7df8e271b66
|
|
BLAKE2b-256 checksum How to use checksums |
7ed8c3b4b4ff40f3f42f1530bbc1c7ac57928a9424f93d2e0652494ea0c4f773
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/7.0.0 CPython/3.13.13
|