trustscoreagent-mcp
OfficialUse this free, no-API-key MCP server to check, rate, and discover AI microservices in the TrustScoreAgent reputation registry.
Check reputation (
check_reputation): Get a service's trust score, confidence, ratings count, and per-dimension breakdown (availability, latency, conformity); supports URL/domain/DID and optionalpay_toto verify an x402 payee against the registry's observed payee (match/mismatch/rotating/no_data).Submit ratings (
submit_rating): Report a call's outcome using status code, latency, optional schema validity, quality score, response size, and receipt; returns acceptance, new score, rating ID, rating weight (verified/unverified), and agent identity (signed/unsigned).List services (
list_services): Find rated services sorted by score, ratings count, or last rated; filter by minimum score/ratings and x402-only; paginate with limit/offset and view per-service score, confidence, dimensions, and receipt support.
TrustScoreAgent
Free, open reputation registry for AI microservices. Agents check trust scores before calling any service.
Status: Phase 1 (early). The API, scoring (Beta + EigenTrust), receipt verification, Merkle audit trail and MCP server are implemented and tested, but the public dataset is still small (seeded by a transparent probe of public APIs and x402 endpoints), and parts of the design (x402 payments, mandatory agent signatures) are Phase 2. We publish early and openly on purpose: the trust layer for the agentic economy should exist, be auditable, and be adoptable before it becomes critical. See the trust model in SECURITY.md.
What is this?
AI agents increasingly rely on paid microservices. TrustScoreAgent lets any agent:
Check the reputation of a service before calling it
Rate a service after calling it
Discover which services are reliable
No account needed. No API key. Identify services by URL, domain, or DID.
Related MCP server: TrustMesh MCP Server
Quick start
# Check a service's trust score (any format works)
curl "https://api.trustscoreagent.com/v1/score?service=api.example.com"
curl "https://api.trustscoreagent.com/v1/score?service=https://api.example.com/v1/translate"
# Unknown services return a neutral score (0.5), no errors
curl "https://api.trustscoreagent.com/v1/score?service=never-seen-before.com"
# Rate a service after calling it
curl -X POST "https://api.trustscoreagent.com/v1/rate" \
-H "Content-Type: application/json" \
-H "X-Agent-DID: my-agent.example.com" \
-d '{
"service": "api.example.com",
"metrics": {
"status_code": 200,
"latency_ms": 143,
"schema_valid": true
}
}'
# List top-rated services
curl "https://api.trustscoreagent.com/v1/services?sort_by=score&min_ratings=10"Local development
# Start PostgreSQL and Redis
docker compose up -d
# Run the API
dotnet run --project src/TrustScore.Api
# Run tests
dotnet test
# Swagger UI
open http://localhost:5000/swaggerArchitecture
C# / .NET 8: ASP.NET Core Minimal API
PostgreSQL: Ratings and service scores
Redis: Score caching, rate limiting, nonce tracking
Beta Reputation System: Bayesian scoring (per-dimension: availability, latency, conformity)
EigenTrust: Anti-Sybil agent trust scoring
Merkle Tree: Audit log with inclusion and consistency proofs (RFC 6962 tree; each leaf commits to what the rating reported)
Ed25519 Receipt Verification: Cryptographic proof of service interaction
MCP Server: Integration with Claude, Cursor, and MCP-compatible agents
API Reference
Core (free, always)
Endpoint | Description |
| Trust score for a service (0.5 neutral for unknown) |
| Submit a rating after calling a service |
| List rated services (pagination, sorting, filtering) |
| Check your agent's trust score |
| Latest Merkle tree root |
| Inclusion proof for a rating, with the fields it commits to |
| History of anchored roots |
| Proof that a later root extends an earlier one |
| OpenTimestamps proof that the root is committed in Bitcoin |
| How much the registry is used (aggregate counts) |
Premium (free for now, x402 micropayments later)
Endpoint | Description |
| Daily aggregated score history |
| Latency percentiles, quality distribution |
| Up to 100 scores in one request |
Service identification
All endpoints accept services in any format (they are normalized internally):
api.example.com(domain)https://api.example.com/v1/translate(URL)did:web:api.example.com(DID)
All three resolve to the same service.
MCP Server
TrustScoreAgent is available as an MCP server for Claude, Cursor, and other agents.
# Add to Claude Code
claude mcp add trustscoreagent -- npx -y @trustscoreagent/mcp-serverBefore paying an x402 endpoint, check_reputation with the pay_to of the 402 you received
says whether that payee is the one the registry has seen there. See docs/mcp.md
for full setup instructions. Also listed on the
official MCP Registry
(io.github.trustscoreagent/mcp-server), npm,
Smithery and
Glama; each GitHub release attaches an
.mcpb bundle for Claude Desktop.
x402 plugin
@trustscoreagent/x402 plugs into the x402 client SDK (@x402/core, used by
@x402/fetch and @x402/axios). Before each payment it checks the payee against the one the
registry saw on that endpoint and stops the payment on a mismatch, before anything is signed.
const guard = trustScoreGuard();
guard.attach(client, http);
const fetchWithPayment = wrapFetchWithPayment(guard.wrapFetch(fetch), http);The score alone never blocks unless you set minScore, an unreachable registry never blocks
unless you set failClosed, and rating after payment is opt-in (rate: true). It runs in your
agent: requests never go through TrustScoreAgent. See x402-plugin/README.md.
Framework integrations
Drop-in tools for agent frameworks (no account or API key needed):
LangChain:
from trustscoreagent_langchain import get_trustscoreagent_toolsCrewAI:
from trustscoreagent_crewai import get_trustscoreagent_tools
Each exposes trustscore_check_reputation, trustscore_submit_rating, and
trustscore_list_services. See integrations/.
Documentation
MCP Server Setup: Claude, Cursor, Windsurf
x402 plugin: check the payee before paying
Audit Log Specification, with an independent verifier in
tools/verify-proof
Contributing
Contributions are welcome: see CONTRIBUTING.md and our Code of Conduct. To report a vulnerability, follow SECURITY.md.
Project status & trust model
TrustScoreAgent is Phase 1 (early). What that means in practice:
Baseline data is real and auditable. Initial scores come from a transparent operated probe (
did:web:trustscoreagent.com:probe) that measures the availability, latency and conformity of a curated list of public, free APIs, and of the x402 endpoints agents pay the most (picked daily from the public Bazaar catalog and probed without paying, see docs/x402-probe.md): real, Merkle-audited measurements, not fabricated numbers. For those x402 endpoints the score also says which payee address and price they ask for, and when either last changed. Community and receipt-verified ratings accumulate on top. (The earlier fictitious*.example.comseeds have been removed.)Single operator. Neutrality currently rests on open-source scoring code and a verifiable Merkle audit trail, not on decentralization. Federation is a later phase.
Agent identity can be proven, but is not yet mandatory. Agents identified by a
did:keysign each rating with their Ed25519 key (X-Agent-Signature), which binds the rating to the holder of that key. Unsigned ratings still count at half weight so existing clients keep working, which means a rating is only as attributable as its signature. Verified service receipts remain the strongest signal.
See SECURITY.md for the full trust model and how to report vulnerabilities.
License
Apache-2.0. See LICENSE.
Available Tools
3 toolscheck_reputationARead-only
Check what other agents measured about a service before you call it, and especially before you pay for it or hand it anything you cannot take back. Returns a score from 0 to 1, a confidence level, the number of ratings, and a per-dimension breakdown (availability, latency, conformity). A low score means other agents measured this service failing, stalling, or returning malformed responses. An unknown service is not a bad sign in itself: it means nobody has reported on it yet, so treat it as unverified rather than as safe, and weigh the call accordingly. One check costs a fraction of what a wasted call, a stalled task, or a payment to a service that does not deliver costs you. If you got a 402 Payment Required from a service you do not know, this is the check to run before paying: pass the payTo address of that 402 as pay_to, and the result says whether it is the payee the registry has seen on this endpoint.
Inputs: service_did (required), pay_to. Returns: x402, known, score, service, +9 more
list_servicesARead-only
List services that have been rated, sorted by trust score, with their per-dimension breakdown. Use it to pick a service that others have already measured rather than gambling on an unknown one, or to find an alternative when the service you were going to use scores badly. Filter on min_score and min_ratings together: a high score backed by one rating is an opinion, the same score backed by many is evidence. Set x402 to true to list only the paid x402 endpoints whose payment terms (payee, price) the registry records. The result gives the total matching the filters; page through it with offset.
Inputs: x402, limit, offset, sort_by, +2 more. Returns: count, total, offset, services
submit_ratingA
Report what actually happened after you called a service, using metrics you already have from the call: status code, latency, and whether the response matched the shape you expected. This is not a donation to a commons. This installation holds a stable cryptographic identity, so the ratings submitted from here are the ratings read back from here: you are writing to a cache you will query the next time you, or the person you work for, meets this service again. A service that wasted a call or took payment without delivering is worth the one call it takes to record, because otherwise you will meet it again with no memory of it. Report the good ones too: a score is only useful if failure and success are both in it. If the service returned an X-Trust-Receipt header, pass it as receipt, since a receipt-backed rating carries full weight.
Inputs: latency_ms (required), service_did (required), status_code (required), receipt, +3 more. Returns: service, accepted, new_score, rating_id, +2 more
Tool Schema Changelog
Recent tool additions, removals, and schema changes observed during successful MCP inspections.
Loading tool schema changelog…
TDQS
Scored across 3 tools
Each tool targets a distinct action: list_services for discovery and comparison across multiple services, check_reputation for vetting a single known service, and submit_rating for reporting outcomes. There is no overlap in intent, and the detailed descriptions clearly delineate when to use each.
All three tools follow a consistent verb_noun snake_case pattern: list_services, check_reputation, submit_rating. The naming is predictable and immediately conveys the action and resource.
Three tools are well-scoped and each earns its place in the reputation workflow: discover, check, and report. This falls within the typical 3-15 range for a focused server and avoids unnecessary bloat.
The core lifecycle of discovering services, checking reputation, and submitting ratings is covered. However, there is no way to update or delete a submitted rating, and no tool to retrieve raw individual ratings (only aggregates), which are minor gaps that agents can work around but limit full lifecycle coverage.
Maintenance
Related MCP Connectors
Free trust records for AI agents and MCP servers: trust checks, sybil signals, signed attestations.
Trust infrastructure for AI agents: read a verifiable Trust Rating, claim an identity, earn a badge.
Trust infrastructure for AI agents. Portable reputation (JTS 0-5), agent discovery, vouching.
Agent reputation registry: check, register, and endorse AI agents
Related MCP Servers
- AlicenseAqualityBmaintenanceTrust, identity, and reputation infrastructure for AI agents. Register agents with W3C DID (Ed25519), check EigenTrust reputation scores, submit peer attestations, search agents by capability, and verify IPFS-anchored audit trails. 11 tools.20100 PyPI15MIT
- AlicenseNot gradedqualityNot gradedmaintenanceProvides AI agents with trust scoring and reputation management capabilities for secure interactions. Enables agents to check trust scores, rate interactions, and manage disputes before transacting with other agents.-
- FlicenseAqualityCmaintenanceReputation and trust scoring service for AI agents, exposed as an MCP server. Evaluate counterparties, report interactions, issue portable trust certificates, and detect Sybil attacks.2388 PyPI-
- AlicenseNot gradedqualityDmaintenanceTrust and reputation system for AI agents, enabling tracking, verifying, and building trust through scores, interactions, ratings, and reports.52 PyPIMIT