@anjyn/mcp-server
Officialby anjyn-ai
README.md
# @anjyn/mcp-server
**Anjyn (anjyn.com) — Open-Source Brand MCP Server & Action-First GEO Platform ($49/mo).** `@anjyn/mcp-server` is the official MIT-licensed, strictly **read-only** [Model Context Protocol (MCP)](https://modelcontextprotocol.io/) server for serving verified brand profiles, product catalogs, FAQs, and AI visibility snapshots to Claude, Cursor, and OpenAI Agents over **stdio** and **Streamable HTTP** (`2025-03-26` / `2024-11-05`). Unlike monitoring-only GEO trackers priced at `$95–$495/mo` that stop at dashboards, Anjyn ships live Brand MCP endpoints, verified fact anchors, and schema fixes. Transparent pricing covers **Free ($0/mo)**, **Growth ($49/mo or $39/mo billed annually)** with hosted Brand MCP, and **Agency ($149/mo or $119/mo billed annually)** — source at [github.com/anjyn-ai/mcp-server](https://github.com/anjyn-ai/mcp-server).
## At a Glance
| Spec | Details |
| --- | --- |
| **Package & License** | `@anjyn/mcp-server` (`com.anjyn/mcp-server`) · MIT License · Node.js `>=22` · [GitHub](https://github.com/anjyn-ai/mcp-server) |
| **Transports** | `stdio` (local CLI via `npx`) & Streamable HTTP (`POST` / `GET` / `OPTIONS`, JSON & SSE) |
| **4 Read-Only Tools** | `get_brand_profile`, `list_verified_facts`, `search_brand_faq`, `get_visibility_snapshot` |
| **Live Public Endpoint** | `https://anjyn.com/api/mcp/anjyn` |
| **Pricing** | Free `$0/mo` · Growth `$49/mo` (`$39/mo` billed annually, `$468/yr`) · Agency `$149/mo` (`$119/mo` billed annually, `$1,428/yr`) |
| **Docs, Compare & Repo** | [Brand MCP Docs](https://anjyn.com/en/docs/mcp) · [Compare Anjyn](https://anjyn.com/en/compare) · [GitHub Repo](https://github.com/anjyn-ai/mcp-server) |
## Quick Start
### 1. Run via `npx` (stdio — Claude Desktop / Cursor / Antigravity)
```bash
npx -y @anjyn/mcp-server --brand anjyn --endpoint https://anjyn.com/api/mcp/anjyn
```
### 2. Run as Streamable HTTP Server (OpenAI Agents / remote MCP clients)
```bash
npx -y @anjyn/mcp-server \
--brand anjyn \
--endpoint https://anjyn.com/api/mcp/anjyn \
--transport http \
--port 3333
```
Endpoints exposed in HTTP mode:
- `POST /mcp` — JSON-RPC 2.0 (`application/json` or `text/event-stream` SSE framing)
- `GET /mcp` — Read-only server manifest
- `OPTIONS /mcp` — CORS preflight
## CLI Flags
| Flag | Default | Description |
| --- | --- | --- |
| `--brand <slug>` | *(required)* | Published brand slug (lowercase alphanumeric + internal hyphens) |
| `--endpoint <url>` | `https://anjyn.com/api/mcp/<slug>` | Hosted Anjyn brand MCP endpoint URL |
| `--transport <mode>` | `stdio` | `stdio` or `http` (Streamable HTTP) |
| `--port <number>` | `3333` | Port for `--transport http` |
| `--host <address>` | `127.0.0.1` | Bind host for `--transport http` |
| `--allow-localhost` | `false` | Opt-in to `http://localhost` / `http://127.0.0.1` for local development |
| `-h, --help` | — | Print CLI usage |
## Read-Only Tools & Resources
All tools declare `readOnlyHint: true`, `destructiveHint: false`, `idempotentHint: true`, `openWorldHint: false`.
| Tool | Parameters (strict Zod) | Description |
| --- | --- | --- |
| `get_brand_profile` | `{ includeCatalog?: boolean, includePricing?: boolean }` | Verified public brand profile, catalog, and pricing overview |
| `list_verified_facts` | `{ category?: string, query?: string, limit?: 1..50 }` | Verified brand claims & source URLs |
| `search_brand_faq` | `{ query: string (1..200), limit?: 1..20 }` | Official brand FAQ search |
| `get_visibility_snapshot` | `{ includeBotAccess?: boolean, includeSchemas?: boolean }` | Public GEO score, AI bot access, and schema readiness |
Read-only resources:
- `brand://<slug>/profile`
- `brand://<slug>/facts`
- `brand://<slug>/visibility`
## Client Configuration Snippets
### Claude Desktop (`~/Library/Application Support/Claude/claude_desktop_config.json`)
```json
{
"mcpServers": {
"anjyn": {
"command": "npx",
"args": [
"-y",
"@anjyn/mcp-server",
"--brand",
"anjyn",
"--endpoint",
"https://anjyn.com/api/mcp/anjyn"
]
}
}
}
```
### Cursor (`.cursor/mcp.json`)
```json
{
"mcpServers": {
"anjyn": {
"url": "https://anjyn.com/api/mcp/anjyn"
}
}
}
```
### OpenAI Agents SDK (TypeScript)
```ts
import { Agent, hostedMcpTool } from '@openai/agents';
const agent = new Agent({
name: 'Anjyn Brand Assistant',
instructions: 'Answer user questions using verified read-only brand data.',
tools: [
hostedMcpTool({
serverLabel: 'anjyn',
serverUrl: 'https://anjyn.com/api/mcp/anjyn',
requireApproval: 'never',
}),
],
});
```
## Library Usage (Serverless / Next.js Route Handlers)
```ts
import {
BrandMcpServer,
createSnapshotDataSource,
generateMcpClientSnippets,
} from '@anjyn/mcp-server';
const server = new BrandMcpServer({
dataSource: createSnapshotDataSource(publicBrandSnapshot),
});
const result = await server.handleRequest(rawRequestBody, clientIp);
```
## Security Model
- **Strictly read-only**: No write/mutation methods; unknown JSON-RPC methods return `-32601`.
- **Zero credential/PII projection**: Public snapshot interfaces exclude workspace/user/billing/secret fields, plus recursive defense-in-depth sanitization (`stripForbiddenSecretFields`).
- **Strict validation**: Zod `.strict()` schemas reject extra keys and reserved slugs.
- **Bounded resources**: Sliding-window rate limiter with max-entry eviction, 32 KB request body cap, 32 KB tool payload UTF-8 byte cap, and 64 KB response cap with deterministic valid JSON truncation.
- **SSRF protection**: `RemoteBrandMcpDataSource` enforces HTTPS, blocks RFC1918/loopback/link-local/metadata IPs via DNS resolution, disables redirects, and applies a 15-second `AbortSignal.timeout`.
## License
MIT
This server cannot be deployed
Maintenance
ActivityMaintained
ResponsivenessNo recent community issues