InvokeWorks
Provides DNS propagation checks by querying Cloudflare's DNS resolver and comparing answers with other public resolvers.
Provides DNS propagation checks by querying Google's public DNS resolver and comparing answers with other public resolvers.
InvokeWorks
Give your AI agent useful paid tools.
InvokeWorks is an open-source MCP server for useful paid agent tools. Its flagship,
site_audit, combines DNS, TLS, HTTP, redirect, and security-header checks into
one structured result for 5 sats per call.
An agent can run a complete external site check without creating an account or subscribing to an API. PoW authenticates the caller without a payment; paid tools require caller-funded sats. LiveAuth handles MCP authentication and metering; InvokeWorks returns the result and billing metadata, including the receipt. Session budgets and expiry still apply.
Website: https://invokeworks.dev
MCP endpoint: https://mcp.invokeworks.dev/mcp
Tools
Tool | Purpose | Price |
| Combined DNS, TLS, HTTP, and security-header audit | 5 sats |
| MX, SPF, DMARC, and conservative DKIM discovery | 5 sats |
| Compare Cloudflare, Google, and Quad9 DNS answers | 3 sats |
| Redirect hops, loops, and HTTPS downgrades | 2 sats |
| Parse only the origin robots.txt | 2 sats |
| Evaluate HTTP security headers | 2 sats |
| One-shot reachability and final endpoint TLS check | 2 sats |
| A, AAAA, CNAME, MX, TXT, NS, and SOA queries | 1 sat |
| HTTP status, redirects, headers, size, timing, and security headers | 2 sats |
| TLS protocol, cipher, certificate, SANs, validity, and chain | 2 sats |
Site Audit
Run a combined DNS, TLS, HTTP, and security-header audit of a public website.
LiveAuth meters site_audit at 5 sats/call through the existing gate.
Example input (bare hostnames default to HTTPS):
{ "target": "https://example.com" }Shortened example output (illustrative; actual results vary):
{
"hostname": "example.com",
"score": 95,
"issues": [
{
"severity": "warning",
"code": "missing_csp",
"message": "content-security-policy is absent; consider this recommended protection where appropriate."
}
]
}The full response also includes DNS, TLS, HTTP, and security-header sections. See Site Audit for coverage and examples.
The score is informational, not a formal security certification: start at 100,
subtract 25 per critical finding and 5 per warning, subtract nothing for informational
findings, and clamp to 0–100. Header presence does not establish policy correctness;
recommendations depend on the endpoint's purpose. CSP frame-ancestors satisfies the
frame-protection check without X-Frame-Options. HSTS is evaluated only on a final HTTPS response.
DNS returns A, AAAA, CNAME, MX and NS records. Absent records are empty arrays;
other query failures appear in failedRecordTypes. TLS describes the original target
(on the HTTPS URL port, or port 443 for HTTP inputs), while HTTP describes the final
response and redirect chain. TLS verification stays enabled: expired/mismatched
certificates produce findings without returning unverified certificate details.
Failed TLS/HTTP sections are null; security headers are null when HTTP is unavailable.
A non-public or unresolved starting destination fails the call. Failures after charging
remain billable with sanitized metadata and receipts. No response bodies are returned.
Stable issue codes: dns_lookup_failed, tls_failed, tls_certificate_expired,
tls_certificate_expiring (30 days or less), tls_hostname_mismatch, tls_obsolete_protocol,
http_failed, http_not_https, http_insecure_hop, http_error_status, missing_hsts,
missing_csp, missing_x_content_type_options, missing_frame_protection,
missing_referrer_policy, missing_permissions_policy.
Related MCP server: netintel-mcp
Use InvokeWorks from an MCP client
Connect a Streamable HTTP MCP client to https://mcp.invokeworks.dev/mcp.
First obtain an active MCP session token for the InvokeWorks project through the
LiveAuth start/confirm flow.
The proof-of-work path needs no agent account, API subscription, or human payment
step. Supply the JWT as Authorization: Bearer <liveauth-jwt>; discovery is public,
but tool calls require authorization.
This JavaScript configuration uses the MCP client package supported by the repo's
integration tests. Set LIVEAUTH_JWT to that session token and keep it out of source control.
npm install @modelcontextprotocol/client@^2.0.0import { Client, StreamableHTTPClientTransport } from '@modelcontextprotocol/client';
const jwt = process.env.LIVEAUTH_JWT;
if (!jwt) throw new Error('Set LIVEAUTH_JWT to an active InvokeWorks MCP session token');
// One ID per logical call. Keep this ID and the arguments unchanged on a retry.
const requestId = crypto.randomUUID();
const client = new Client({ name: 'site-audit-client', version: '1.0.0' });
const transport = new StreamableHTTPClientTransport(new URL('https://mcp.invokeworks.dev/mcp'), {
requestInit: {
headers: {
Authorization: `Bearer ${jwt}`,
'X-Request-Id': requestId,
},
},
});
try {
await client.connect(transport);
const result = await client.callTool({
name: 'site_audit',
arguments: { target: 'https://example.com' },
});
console.log(result); // Audit result plus _meta.liveauth billing metadata / receipt.
} finally {
await client.close();
}Example agent task: “Audit https://example.com and tell me the most important issues.”
The agent can invoke site_audit; LiveAuth meters the accepted execution at 5 sats.
X-Request-Id is also the billing idempotency key. Keep it and the arguments unchanged
for a retry of the same call, and use a new key for a new logical call. Retry-safe
charging returns the recorded receipt/status without another handler execution; tool output is not durably cached. Execution failures
after charging remain billable. See the connection guide.
Architecture
Agent / MCP Client
→ InvokeWorks
→ LiveAuth authentication + metering
→ site_audit
→ receipt / resultInvokeWorks uses @liveauth-labs/mcp-server ^1.3.0. Input validation happens before
the gate; LiveAuth validates authorization and charges before the tool executes.
apps/server: Hono/Node service using MCP SDK v2createMcpHandler(), with modern stateless 2026-07-28 and SDK-supported 2025-era compatibility.apps/web: static Astro site.packages/tools: transport-independent tools and shared catalog registry.packages/liveauth: the only package importing the public@liveauth-labs/mcp-serverSDK.packages/shared: environment and request utilities.tests/integration: official MCP client → server → LiveAuth adapter → tool tests.
There is no database, InvokeWorks account system, wallet, or billing implementation.
Local development
Requires Node.js 22+ and pnpm 10.
corepack enable
pnpm install
cp .env.example .env
pnpm devThe server listens at http://localhost:3000/mcp; health is /health. Run the website with pnpm dev:web.
For local transport testing without a LiveAuth account, set NODE_ENV=test and LIVEAUTH_BYPASS_FOR_TESTS=true; only the literal token test-token is accepted. This configuration is rejected in production.
Configuration
Variable | Required | Description |
| Production | LiveAuth project public key ( |
| No | Defaults to |
| No | Defaults to |
| No | Structured log level |
Never commit .env or tokens. Clients send Authorization: Bearer <LiveAuth JWT>. Supply a stable, unique X-Request-Id on retries; it becomes the LiveAuth idempotency key. Signed receipts are returned under MCP result _meta.liveauth.
Adding a tool
Create a module in
packages/tools/src.Call
defineTool()with one Zod v4 schema, stable name, descriptions, sat price, examples, and handler.Inject external I/O behind a narrow interface.
Add it to
toolsinpackages/tools/src/index.ts.Add handler and security tests.
The MCP server and Astro catalog consume the registry automatically. Handlers return { data } and know nothing about MCP or LiveAuth.
Validation
pnpm lint
pnpm typecheck
pnpm test
pnpm build
pnpm test:integrationIntegration tests use the official MCP Streamable HTTP client. Real LiveAuth production calls are separate and opt-in because they require a customer project and funded test session.
Security model
http_inspect accepts only HTTP(S), rejects URL credentials, resolves every address, rejects any non-public answer, pins a validated address into the connection, and validates redirects afresh. Redirects, response bytes, and time are capped; caller headers are never forwarded. tls_inspect applies the same destination policy and pinning. MCP bodies are capped at 64 KiB. Logs omit authorization data.
Deploy behind TLS with public Host allowlisting, concurrency/rate limits, and upstream timeouts. LiveAuth remains authoritative for session budgets and charging. See SECURITY.md.
Docker and deployment
docker build -f apps/server/Dockerfile -t invokeworks-mcp .
docker run --rm -p 3000:3000 --env-file .env invokeworks-mcpRoute mcp.invokeworks.dev to port 3000 and preserve Authorization, MCP-Protocol-Version, Accept, and X-Request-Id. Serve apps/web/dist statically for invokeworks.dev. No hosting provider is assumed.
LiveAuth portal setup
Using ordinary customer-facing functionality only:
Create a LiveAuth project and obtain its public key.
Keep existing registrations unchanged. Manually register/publish/activate
email_domain_audit(5 sats),dns_propagation_check(3 sats),redirect_trace(2 sats),robots_inspect(2 sats),headers_audit(2 sats), anduptime_check(2 sats). See the catalog above for all ten prices.Configure budgets/rate limits and Lightning settlement in LiveAuth.
Set the public key in the server environment and run an opt-in real charge/receipt test.
The adapter passes explicit prices, but portal values should match. See docs/liveauth-dogfood.md.
Contributing and license
Read CONTRIBUTING.md. InvokeWorks is available under the MIT License.
Focused diagnostics
Site Audit remains the flagship. All tools retain validate → charge → execute billing: schema-invalid inputs are rejected before charging, and accepted execution failures remain billable with sanitized results and billing receipts.
Tool | Input | Structured result |
|
| MX, SPF, DMARC query status/records; DKIM selectors; issues; score |
|
| Resolver statuses, normalized answers, consistent, issues |
|
| initialUrl, finalUrl, hops with status, terminal status, schemeTransitions, issues |
|
| URL, status, groups (userAgents/allow/disallow/crawlDelay), sitemaps, issues |
|
| Final URL/status, evaluatedHeaders, issues, score |
|
| reachable, status, elapsedMs, finalUrl, tlsValid, certificateDaysRemaining, issues |
Domain/hostname inputs must be DNS names, not URLs or IP literals. New URL inputs require HTTP(S), forbid credentials and known local/private literals, and undergo runtime DNS validation before connecting. Robots accepts a hostname or HTTP(S) URL. DNS record types: A (default), AAAA, CNAME, MX, TXT, NS, SOA.
Email and headers scores use the existing informational heuristic: 100 minus 25 per critical and 5 per warning, clamped to 0–100; informational findings deduct nothing. Scores are not security certifications. Email queries use the exact domain, without organizational-domain DMARC fallback, recursive SPF expansion, or mail delivery tests. DKIM checks only default/google/selector1/selector2: unknown means undiscovered, not absent. DNS comparison samples three recursive resolvers and cannot establish worldwide propagation. Normalized answers are sorted, deduplicated canonical JSON strings; TXT chunks are joined without changing case. Resolver failure makes consistency false and is distinct from NXDOMAIN, empty answers, and inconsistent responses.
Web requests retain public-address validation, DNS pinning, verified TLS, five-redirect
limits, 10-second per-request timeouts, 256 KiB body limits, and sensitive-header filtering.
Robots fetches only /robots.txt: redirects and sitemap contents are not fetched.
Robots is crawler guidance, not access control. Header policy checks are conservative;
CSP and Permissions-Policy receive presence checks, not full policy interpretation.
COOP/CORP values are checked when present. Uptime is one-shot: reachable means an HTTP
response was received, even for error statuses. TLS checks the final HTTPS endpoint
with a separate verified connection; null means not checked/not applicable. Failed
traces report the last attempted URL, which may not have been fetched.
No monitoring, scheduling, alerts, persistence, historical uptime, paid APIs, or production registration changes are included. See diagnostics implementation notes for stable issue codes and validation coverage.
Caller-funded deployment and verification
The LiveAuth project public key identifies the MCP provider. It does not fund caller tool usage. The provider's LiveAuth Pro subscription is independent of per-call sats paid by MCP callers. InvokeWorks always configures the reusable MCP gate with fundingMode: 'caller'; no provider spending pool or secret is required.
An unfunded call returns machine-readable Lightning payment details in tool text, structured content and _meta.liveauth. Pay with the caller wallet, confirm using LiveAuth's liveauth_mcp_payment_confirm tool or client.confirmPayment, and retry with the original X-Request-Id. A duplicate returns its receipt/status without another execution.
After the LiveAuthCore rollout, build the tools package and run node scripts/configure-liveauth-tools.mjs with the target LIVEAUTH_PROJECT_ID, LIVEAUTH_API_URL, and provider LIVEAUTH_DEVELOPER_TOKEN to register the entire current catalog and caller pricing. Keep that deployment token out of server/client configuration.
The prepared dependency override uses the locally packaged 1.3.0 SDK before npm publication. After publishing through the normal workflow, remove the override and regenerate the lockfile against ^1.3.0.
Run pnpm --filter @invokeworks/server... build, then node scripts/caller-funded-smoke.mjs with a sibling LiveAuth checkout (or LIVEAUTH_REPO). It runs real HTTP/MCP servers and SQLite with TEST Lightning simulation, verifies caller spend +2, provider balance unchanged, provider revenue +2, signed receipt and one execution after retries. No real sats are sent.
The gate issues at most one execution authorization. A crash after payment but before execution can leave a paid operation without a result; retries safely return the ledger state, and operational reconciliation is required. Tool output is not durably cached. See LiveAuth's docs/mcp-caller-funding.md for the full accounting and migration contract.
This server cannot be deployed
Maintenance
Related MCP Connectors
Free MCP server: 32 security & developer API tools -- WHOIS, DNS, CVE checks, IP reputation.
A paid remote MCP for CLI tool MCP, built to return verdicts, receipts, usage logs, and audit-ready
Read-only MCP server for turva.dev's published service catalog, pricing and contact details. Five tools return JSON, including dated agent-readiness and security evidence with verification links. Connect over Streamable HTTP without an API key. The server answers questions about turva.dev and does not scan other websites or run audits.
8 pay-per-call web intel tools over MCP. Free discovery, calls settle in USDC on Base (x402).
Related MCP Servers
- AlicenseAqualityDmaintenanceA comprehensive MCP server providing 15 web tools including search, scraping, screenshots, SEO audits, and DNS/SSL checks through a single installation. It delivers clean, LLM-optimized outputs so AI agents can focus on reasoning rather than parsing raw HTML.156 npmMIT
- AlicenseNot gradedqualityCmaintenanceMCP server for NetIntel, offering 64 network intelligence tools (DNS, SSL, WHOIS, email, OSINT, etc.) with pay-per-call via x402 on Base mainnet, no API keys needed.607 npmMIT
- AlicenseAqualityAmaintenanceMCP server that gives AI agents paid access to Invoket APIs, with discovery-driven tools, spending caps, and non-custodial payments via x402.707 npm1MIT
- AlicenseNot gradedqualityCmaintenanceAn MCP server providing 15 OSINT tools over free, public sources for AI agents, enabling domain reconnaissance, subdomain discovery, DNS lookups, host profiling, CVE search, and more without API keys.MIT