# TrustScoreAgent MCP server

> Lets an AI client check the reputation of microservices and public APIs using an open trust registry.

- Repository: https://github.com/trustscoreagent/trustscoreagent
- Page: https://hostedmcp.org/servers/trustscoreagent/trustscoreagent
- Transport: stdio
- Stars: 0
- License: Apache-2.0
- Latest version: 0.2.7

## Install

### Claude Code

```sh
claude mcp add trustscoreagent -- npx -y @trustscoreagent/mcp-server
```

### Cursor (`~/.cursor/mcp.json`)

```json
{
  "mcpServers": {
    "trustscoreagent": {
      "command": "npx",
      "args": [
        "-y",
        "@trustscoreagent/mcp-server"
      ]
    }
  }
}
```

### VS Code (`.vscode/mcp.json`)

```json
{
  "servers": {
    "trustscoreagent": {
      "type": "stdio",
      "command": "npx",
      "args": [
        "-y",
        "@trustscoreagent/mcp-server"
      ]
    }
  }
}
```

### VS Code CLI

```sh
code --add-mcp '{"name":"trustscoreagent","type":"stdio","command":"npx","args":["-y","@trustscoreagent/mcp-server"]}'
```

### Claude Desktop (`claude_desktop_config.json`)

```json
{
  "mcpServers": {
    "trustscoreagent": {
      "command": "npx",
      "args": [
        "-y",
        "@trustscoreagent/mcp-server"
      ]
    }
  }
}
```

### Codex

```sh
codex mcp add trustscoreagent -- npx -y @trustscoreagent/mcp-server
```

### Codex config.toml (`~/.codex/config.toml`)

```toml
[mcp_servers.trustscoreagent]
command = "npx"
args = ["-y", "@trustscoreagent/mcp-server"]
```

### Gemini CLI

```sh
gemini mcp add -s user trustscoreagent npx -- -y @trustscoreagent/mcp-server
```

### Gemini settings.json (`~/.gemini/settings.json`)

```json
{
  "mcpServers": {
    "trustscoreagent": {
      "command": "npx",
      "args": [
        "-y",
        "@trustscoreagent/mcp-server"
      ]
    }
  }
}
```

## Environment variables

| Name | Required | Secret | Description |
|---|---|---|---|
| `TRUSTSCORE_AGENT_DID` | no | no | Leave empty (recommended): the server generates an Ed25519 key in ~/.trustscoreagent and signs its ratings with the matching did:key. Setting a DID here overrides that key, so ratings are sent unsigned and count at half weight. |
| `TRUSTSCORE_API_URL` | no | no | Base URL of the TrustScore registry. Defaults to the public production API; override only for a self-hosted or staging instance. |

## FAQ

### Do I need an account or API key to use TrustScoreAgent?

No, you do not need an account or an API key to use the service.

### How can I identify a service in the registry?

You can identify services using a URL, a domain, or a Decentralized Identifier (DID).

### What happens if I check a service that is not in the registry?

Unknown services will return a neutral score of 0.5 without causing errors.
