mcpField
M
mcp-shield

mcp-shield

Remote
github.com/cybercraftsolutionsllcSecurity0Updated 31w ago
Repository

About mcp-shield

mcp-shield provides reference implementations for gating agent connections to MCP servers through CraftedTrust checks. Agents can look up trust grades, trigger scans, and search an indexed server registry before deciding whether to connect.

Key features

  1. 01Look up trust scores by URL or npm name
  2. 02Trigger live security scans
  3. 03Search an indexed MCP registry
  4. 04Retrieve ecosystem statistics
  5. 05Initiate and verify certification payments

Use cases

  1. 01Check a server before an agent connects
  2. 02Block connections to D- or F-graded servers
  3. 03Find MCP servers by registry search

MCP support

CraftedTrust exposes six MCP tools for trust checks, security scans, registry search, statistics, and certification payment operations. The repository also includes LangGraph and TypeScript examples that gate server connections using trust grades.

Configuration

Remote servers need no local install. Pick your client, then copy the config or install in one click.

Endpointhttps://mcp.craftedtrust.com/api/v1/mcp
Copy install command
Claude CodeTerminal
Cursor.cursor/mcp.json
VS Code.vscode/mcp.json
Claude Desktopclaude_desktop_config.json
Windsurf~/.codeium/windsurf/mcp_config.json

Run commands in a terminal; paste JSON into the client’s MCP config and restart. Servers that need sign-in will prompt on first connect.

Tools

4
ParameterTypeRequiredDescription
npm_namestringNoThe npm package name to look up
server_urlstringNoThe MCP server URL to look up

Details

From the project README

Trust-Gated Agent Examples

Reference implementations showing how to make AI agents check CraftedTrust before connecting to any MCP server. If a server scores D or F, the agent refuses to connect.

This is the "SSL certificate check for AI agents" pattern.

Quick Start

Add CraftedTrust to your agent's MCP config:

{
  "mcpServers": {
    "craftedtrust": {
      "url": "https://mcp.craftedtrust.com/api/v1/mcp",
      "description": "Check trust scores before connecting to MCP servers"
    }
  }
}

Your agent now has access to 6 tools:

ToolDescription
check_trustLook up trust score by URL or npm name
scan_serverTrigger a live security scan
search_registrySearch 4,200+ indexed MCP servers
get_statsEcosystem statistics
pay_for_certificationInitiate USDC certification payment
verify_paymentVerify on-chain payment

The Pattern

Before your agent connects to any new MCP server:

  1. Call check_trust on CraftedTrust
  2. If grade is D or F, refuse and explain why
  3. If grade is A/B/C, proceed with the connection

Examples

Python (LangGraph)

See python/trust_gated_agent.py for a complete LangGraph agent that gates MCP connections through CraftedTrust.

cd python
pip install -r requirements.txt
python trust_gated_agent.py
TypeScript (MCP Client)

See typescript/trust-gated-client.ts for a TypeScript MCP client that checks trust scores before connecting.

cd typescript
npm install
npx tsx trust-gated-client.ts

How It Works

Agent receives task → needs mcp.example.com
         ↓
Agent calls CraftedTrust check_trust("mcp.example.com")
         ↓
Score: 82/100, Grade: B ← Safe
         ↓
Agent connects to mcp.example.com ✓
Agent receives task → needs sketchy-server.xyz
         ↓
Agent calls CraftedTrust check_trust("sketchy-server.xyz")
         ↓
Score: 15/100, Grade: F ← Dangerous
         ↓
Agent refuses: "Server scored F (15/100). Not connecting." ✗

Trust Score Grades

GradeScoreMeaning
A90-100Excellent security practices
B75-89Good security, minor improvements possible
C60-74Adequate but has gaps
D40-59Significant security issues
F0-39Critical issues, do not connect

API Reference

Full API documentation: mcp.craftedtrust.com/api-docs.html

License

MIT


Built by Cyber Craft Solutions LLC

Comments

Markdown supported

New to MCP?

From what the protocol is to installing your first server, these answers cover most first questions.

An open protocol that defines how AI applications connect to external tools and data in a uniform way. Clients talk to the model; MCP servers provide tools, resources and prompt templates. They exchange standard messages, so one server can be reused by many clients.