Nerq Trust API — Preflight trust checks for AI agents and MCP servers
Project description
nerq
Python SDK for the Nerq Trust API — preflight trust checks for AI agents and MCP servers.
Nerq indexes 204K+ AI agents from GitHub, npm, PyPI, HuggingFace, and MCP registries with Trust Scores (0-100) based on code quality, community adoption, compliance, operational health, and security (CVE data).
Install
pip install nerq
Quick Start
from nerq import NerqClient
client = NerqClient()
# Preflight trust check
result = client.preflight("langchain-ai/langchain")
print(result.trust_score) # 82.4
print(result.trust_grade) # B+
print(result.recommendation) # PROCEED
print(result.cve_count) # 0
Preflight Check
Verify an agent's trustworthiness before using it:
r = client.preflight("some-unknown-agent")
if r.is_safe():
# Trust score >= 60, no critical CVEs
use_agent()
elif r.should_deny():
# Trust score < 30 or critical issues
print(f"Denied: {r.trust_grade}")
print(f"Try instead: {r.alternatives}")
else:
# CAUTION — review before proceeding
print(f"Score: {r.trust_score}, CVEs: {r.cve_count}")
Batch Preflight
Check up to 50 agents in one request:
batch = client.preflight_batch(["langchain", "crewai", "autogen", "phidata"])
for name, r in batch.items():
print(f"{name}: {r.trust_grade} ({r.recommendation})")
# Filter results
safe = batch.safe_agents() # ["langchain", "crewai"]
denied = batch.denied_agents() # []
print(f"Not found: {batch.not_found}")
Search Agents
agents = client.search("code review tools", limit=10)
for a in agents:
print(f"{a.name} — {a.trust_score} ({a.source})")
Commerce Trust Gate
Verify trust before agent-to-agent transactions:
verdict = client.commerce_verify(
agent_id="my-payment-agent",
counterparty_id="seller-agent",
transaction_type="payment",
amount_range="high",
)
if verdict.is_approved():
proceed_with_transaction()
elif verdict.needs_review():
flag_for_human_review()
API Key (Optional)
Free tier: 100 requests/hour, no key required.
# For higher rate limits
client = NerqClient(api_key="your_api_key")
Get an API key at nerq.ai/start.
Trust Score Components
| Dimension | Weight | Description |
|---|---|---|
| Code Quality | 25% | Description, capabilities, naming |
| Community | 25% | Stars, downloads, forks |
| Compliance | 20% | License, EU AI Act risk class |
| Operational Health | 15% | Update recency, activity |
| Security | 15% | CVE count, severity |
Links
- Nerq — Search 204K+ AI agents
- API Docs — Full API documentation
- Trust Protocol — How trust scores work
Project details
Release history Release notifications | RSS feed
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 nerq-1.0.0.tar.gz.
File metadata
- Download URL: nerq-1.0.0.tar.gz
- Upload date:
- Size: 7.0 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.2.0 CPython/3.14.3
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
37626b8ef724ddd82bdc6e8ac7212e21bb44272aa829d42d18f8b3634d19c7b3
|
|
| MD5 |
ba13f1f08cbdd097a2c6680ec6b687c6
|
|
| BLAKE2b-256 |
ff0e2d83af94a2d206b4163322ea225e3dac7a3bc43b91c0afd7461017196fbc
|
File details
Details for the file nerq-1.0.0-py3-none-any.whl.
File metadata
- Download URL: nerq-1.0.0-py3-none-any.whl
- Upload date:
- Size: 7.3 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.2.0 CPython/3.14.3
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
991d08900d104dbd26df81479749ea1ba183118fb27c14243cf6384f68177129
|
|
| MD5 |
5a445a880dc1dc1b4f26fd549d4437ad
|
|
| BLAKE2b-256 |
ee4776daf39f45604acfdc802c108bb22cc6ebe75cd3173ce2753db597304d80
|