@countersig/mcp
v1.0.2
Published
MCP server that gives AI agents a verified cryptographic identity via the Countersig NHI platform
Downloads
432
Maintainers
Readme
@countersig/mcp
MCP server that gives AI agents a verified cryptographic identity via the Countersig Non-Human Identity (NHI) platform.
Register your agent, earn a reputation score, issue A2A tokens, and make identity-verified HTTP requests — all from inside Claude.
Install
Claude Code
# Install globally
npm install -g @countersig/mcp
# Add to Claude
claude mcp add countersig -- countersig-mcpClaude Desktop
Add to your config (Settings > Developer > Edit Config):
{
"mcpServers": {
"countersig": {
"command": "countersig-mcp",
"env": {
"COUNTERSIG_API_KEY": "cs_your_key_here"
}
}
}
}Get your API key at countersig.com/settings/api-keys.
Quick Start
Once installed, prompt your agent:
> Configure Countersig with my API key: cs_...
> Register yourself as "My Research Assistant" with capabilities ["web-search", "code-execution"]
> Check your current reputation score
> Make an authenticated request to https://example.com/api/dataAvailable Tools
| Tool | Description |
|------|-------------|
| configure | Set your API key and agent ID |
| register_agent | Register with auto-generated Ed25519 keypair |
| verify_agent | Complete cryptographic identity verification |
| get_agent | Get agent status and reputation |
| get_reputation | Get full reputation breakdown for any agent |
| issue_a2a_token | Issue a 60-second A2A JWT |
| verify_a2a_token | Verify an A2A token from another agent |
| authenticated_fetch | HTTP requests with A2A token attached |
| get_trust_badge | Get trust badge (JSON or SVG) |
| attest_action | Record action outcome to build reputation |
| get_verifiable_credential | Get W3C Verifiable Credential |
Environment Variables
| Variable | Description |
|----------|-------------|
| COUNTERSIG_API_KEY | Your Countersig API key (overrides config file) |
| COUNTERSIG_AGENT_ID | Existing agent ID (overrides config file) |
| COUNTERSIG_API_URL | API base URL override (default: https://api.countersig.com) |
| COUNTERSIG_MCP_FETCH_URL_ALLOWLIST | Comma-separated hostname allowlist for authenticated_fetch (required) |
Security
- API keys stored in
~/.countersig/config.jsonwith restricted file permissions - Private keys never leave the local process
authenticated_fetchenforces SSRF validation and hostname allowlist controls- A2A tokens expire in 60 seconds and are never cached
License
MIT
