MCP connector for The Source. Self-contained REST client for api.thesrc.ai.
Project description
thesrc-mcp (source-mcp)
MCP connector for The Source. Thin wrapper over source-sdk.
Install
pip install thesrc-mcp # PyPI distribution name
# or: uvx thesrc-mcp # run without installing
Console scripts source-mcp and thesrc-mcp are equivalent (same entrypoint).
Two tools:
source_search— find an entity (Drug or Gene) by partial namesource_ask— ask a structured question, get a full answer with authority chain
Configuration
Reads from environment:
| Var | Default | Notes |
|---|---|---|
SOURCE_API_URL |
https://api.thesrc.ai |
Override to http://localhost:8000 for local dev |
SOURCE_API_TOKEN |
— | API key (src_live_...) sent as X-API-Key, or JWT sent as Bearer |
SOURCE_TIMEOUT |
30 |
Per-request timeout, seconds |
Run
source-mcp
The Claude Code / Claude Desktop config block:
{
"source-mcp": {
"command": "source-mcp",
"env": {
"SOURCE_API_URL": "https://api.thesrc.ai",
"SOURCE_API_TOKEN": "src_live_..."
}
}
}
Claude Code install
See INSTALL_CLAUDE_CODE.md and the source plugin under plugins/source/.
Project details
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file thesrc_mcp-0.6.0.tar.gz.
File metadata
- Download URL: thesrc_mcp-0.6.0.tar.gz
- Upload date:
- Size: 43.6 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.2.0 CPython/3.12.12
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
bcb9307409bec6e1d1d28cb47890d967875d23a5e029a05313019c9fe8782ede
|
|
| MD5 |
65b21e86c1df6781f3a97f46e612a04a
|
|
| BLAKE2b-256 |
f10261d7e512f862b52767dd92540c002fa3eca12c452633d2c732d7be3177f0
|
File details
Details for the file thesrc_mcp-0.6.0-py3-none-any.whl.
File metadata
- Download URL: thesrc_mcp-0.6.0-py3-none-any.whl
- Upload date:
- Size: 52.5 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.2.0 CPython/3.12.12
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
e69d942ed56a9063ca3209e75e5792d8c32de83ccc043c7a6a73a43ca50a34c7
|
|
| MD5 |
821a6ad0e1e52d5f68507fdc025320c1
|
|
| BLAKE2b-256 |
75826eea7dfbb5c41ad997381b9c0664b5ce3fef8534488ee8f8cbc79f7adcdc
|