mcp-server-andru-intelligence 0.1.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/LICENSE ADDED
@@ -0,0 +1,21 @@
1
+ MIT License
2
+
3
+ Copyright (c) 2026 Andru (H&S)
4
+
5
+ Permission is hereby granted, free of charge, to any person obtaining a copy
6
+ of this software and associated documentation files (the "Software"), to deal
7
+ in the Software without restriction, including without limitation the rights
8
+ to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
9
+ copies of the Software, and to permit persons to whom the Software is
10
+ furnished to do so, subject to the following conditions:
11
+
12
+ The above copyright notice and this permission notice shall be included in all
13
+ copies or substantial portions of the Software.
14
+
15
+ THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
16
+ IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
17
+ FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
18
+ AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
19
+ LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
20
+ OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
21
+ SOFTWARE.
package/README.md ADDED
@@ -0,0 +1,99 @@
1
+ # Andru Revenue Intelligence MCP Server
2
+
3
+ Strategic revenue intelligence for technical SaaS founders. ICP scoring, persona profiling, competitive positioning, buyer journey mapping, and pre-meeting briefs — powered by 20 years of B2B sales wisdom.
4
+
5
+ ## Installation
6
+
7
+ ```bash
8
+ npm install -g @andru/mcp-server-intelligence
9
+ ```
10
+
11
+ Or run directly:
12
+
13
+ ```bash
14
+ ANDRU_API_KEY=sk_live_... npx @andru/mcp-server-intelligence
15
+ ```
16
+
17
+ ## Configuration
18
+
19
+ ### Environment Variables
20
+
21
+ | Variable | Required | Default | Description |
22
+ |----------|----------|---------|-------------|
23
+ | `ANDRU_API_KEY` | Yes | — | Your Andru Platform API key |
24
+ | `ANDRU_API_URL` | No | `https://api.andru.ai` | API base URL |
25
+
26
+ Get your API key at [app.andru.ai/settings/api-keys](https://app.andru.ai/settings/api-keys).
27
+
28
+ ### Claude Desktop
29
+
30
+ Add to your `claude_desktop_config.json`:
31
+
32
+ ```json
33
+ {
34
+ "mcpServers": {
35
+ "andru-intelligence": {
36
+ "command": "npx",
37
+ "args": ["@andru/mcp-server-intelligence"],
38
+ "env": {
39
+ "ANDRU_API_KEY": "sk_live_your_key_here"
40
+ }
41
+ }
42
+ }
43
+ }
44
+ ```
45
+
46
+ ### Claude Code
47
+
48
+ ```bash
49
+ claude mcp add andru-intelligence npx @andru/mcp-server-intelligence \
50
+ --env ANDRU_API_KEY=sk_live_your_key_here
51
+ ```
52
+
53
+ ## Available Tools
54
+
55
+ | Tool | Description | Latency |
56
+ |------|-------------|---------|
57
+ | `get_icp_fit_score` | Score a company against your ICP criteria | <100ms |
58
+ | `get_persona_profile` | Look up buyer persona from ICP data | <50ms |
59
+ | `get_disqualification_signals` | 3-layer opportunity classification | <200ms |
60
+ | `get_messaging_framework` | MBTI-adapted messaging frameworks | <50ms |
61
+ | `get_competitive_positioning` | Competitive battlecards and positioning | <100ms |
62
+ | `classify_opportunity` | Full opportunity classification | <200ms |
63
+ | `get_account_plan` | Structured account plan with MEDDICC | <100ms |
64
+ | `get_capability_profile` | Machine-readable capability profile | <50ms |
65
+ | `get_evaluation_criteria` | 6-value alignment scoring | <100ms |
66
+ | `get_icp_profile` | Full Pure Signal ICP profile (5 layers) | <100ms |
67
+ | `discover_prospects` | AI-powered prospect discovery | 15-30s |
68
+ | `get_pre_brief` | Pre-meeting brief with talk track | 10-20s |
69
+ | `get_syndication_status` | CRM syndication status | <200ms |
70
+ | `trigger_syndication` | Trigger CRM syndication | 5-15s |
71
+ | `batch_fit_score` | Batch score up to 50 companies | <500ms |
72
+
73
+ ## Available Resources
74
+
75
+ | URI | Description |
76
+ |-----|-------------|
77
+ | `andru://icp/profile` | Canonical ICP profile |
78
+ | `andru://pipeline/runs` | Pipeline run summaries |
79
+ | `andru://accounts` | Account and prospect data |
80
+
81
+ ## How It Works
82
+
83
+ This MCP server is a thin proxy that authenticates with your Andru API key and forwards tool/resource requests to the Andru backend. All intelligence generation, ICP scoring, and data access happens server-side — the MCP server itself is stateless.
84
+
85
+ ```
86
+ Claude Desktop/Code → MCP Server (stdio) → Andru API (HTTPS)
87
+ ```
88
+
89
+ ## A2A Protocol
90
+
91
+ Andru also supports the Agent-to-Agent (A2A) protocol for direct agent-to-agent communication. The AgentCard is available at:
92
+
93
+ ```
94
+ https://api.andru.ai/.well-known/agent.json
95
+ ```
96
+
97
+ ## License
98
+
99
+ MIT
package/glama.json ADDED
@@ -0,0 +1,4 @@
1
+ {
2
+ "$schema": "https://glama.ai/mcp/schemas/server.json",
3
+ "maintainers": ["geter-andru"]
4
+ }
package/package.json ADDED
@@ -0,0 +1,39 @@
1
+ {
2
+ "name": "mcp-server-andru-intelligence",
3
+ "version": "0.1.0",
4
+ "description": "Andru Revenue Intelligence MCP Server — ICP scoring, persona profiling, competitive positioning, and buyer intelligence for technical SaaS founders.",
5
+ "type": "module",
6
+ "bin": {
7
+ "andru-mcp": "./src/index.js"
8
+ },
9
+ "main": "./src/index.js",
10
+ "keywords": [
11
+ "mcp",
12
+ "model-context-protocol",
13
+ "mcp-server",
14
+ "andru",
15
+ "revenue-intelligence",
16
+ "icp",
17
+ "buyer-intelligence",
18
+ "sales-intelligence",
19
+ "gtm",
20
+ "b2b",
21
+ "saas"
22
+ ],
23
+ "dependencies": {
24
+ "@modelcontextprotocol/sdk": "^1.26.0"
25
+ },
26
+ "engines": {
27
+ "node": ">=18.0.0"
28
+ },
29
+ "author": "Andru (H&S)",
30
+ "license": "MIT",
31
+ "repository": {
32
+ "type": "git",
33
+ "url": "https://github.com/geter-andru/mcp-server-andru-intelligence.git"
34
+ },
35
+ "homepage": "https://andru.ai",
36
+ "bugs": {
37
+ "url": "https://github.com/geter-andru/mcp-server-andru-intelligence/issues"
38
+ }
39
+ }
package/server.json ADDED
@@ -0,0 +1,35 @@
1
+ {
2
+ "name": "andru-intelligence",
3
+ "title": "Andru Revenue Intelligence",
4
+ "description": "Strategic revenue intelligence for technical SaaS founders. ICP scoring, persona profiling, competitive positioning, buyer journey mapping, champion selling, and pre-meeting briefs — powered by 20 years of B2B sales wisdom.",
5
+ "version": "0.1.0",
6
+ "websiteUrl": "https://andru.ai",
7
+ "repository": {
8
+ "url": "https://github.com/geter-andru/mcp-server-andru-intelligence.git",
9
+ "source": "github"
10
+ },
11
+ "packages": [
12
+ {
13
+ "registryType": "npm",
14
+ "identifier": "mcp-server-andru-intelligence",
15
+ "version": "0.1.0",
16
+ "transport": {
17
+ "type": "stdio"
18
+ },
19
+ "environmentVariables": [
20
+ {
21
+ "name": "ANDRU_API_KEY",
22
+ "description": "Your Andru Platform API key. Get one at https://app.andru.ai/settings/api-keys",
23
+ "isRequired": true,
24
+ "isSecret": true
25
+ },
26
+ {
27
+ "name": "ANDRU_API_URL",
28
+ "description": "Andru API base URL (default: https://api.andru.ai)",
29
+ "isRequired": false,
30
+ "default": "https://api.andru.ai"
31
+ }
32
+ ]
33
+ }
34
+ ]
35
+ }
package/src/client.js ADDED
@@ -0,0 +1,98 @@
1
+ /**
2
+ * Andru API Client
3
+ *
4
+ * Thin HTTP client that proxies MCP operations to the Andru backend.
5
+ * Authenticates via X-API-Key header.
6
+ */
7
+
8
+ const DEFAULT_API_URL = 'https://api.andru.ai';
9
+ const REQUEST_TIMEOUT_MS = 60_000; // 60s for AI-calling tools
10
+ const PACKAGE_VERSION = '0.1.0';
11
+
12
+ export class AndruClient {
13
+ /**
14
+ * @param {string} apiKey - Andru Platform API key
15
+ * @param {string} [baseUrl] - API base URL (default: https://api.andru.ai)
16
+ */
17
+ constructor(apiKey, baseUrl = DEFAULT_API_URL) {
18
+ this.apiKey = apiKey;
19
+ this.baseUrl = baseUrl.replace(/\/+$/, ''); // Strip trailing slashes
20
+ }
21
+
22
+ /**
23
+ * List all available MCP tools.
24
+ * @returns {Promise<{ tools: Array<{ name: string, description: string, inputSchema: object }> }>}
25
+ */
26
+ async listTools() {
27
+ return this.post('/api/mcp/tools/list', {});
28
+ }
29
+
30
+ /**
31
+ * Execute an MCP tool.
32
+ * @param {string} name - Tool name
33
+ * @param {object} args - Tool arguments
34
+ * @returns {Promise<{ content: Array<{ type: string, text: string }>, isError?: boolean }>}
35
+ */
36
+ async callTool(name, args) {
37
+ return this.post('/api/mcp/tools/call', { tool: name, arguments: args });
38
+ }
39
+
40
+ /**
41
+ * List all available MCP resources.
42
+ * @returns {Promise<{ resources: Array<{ uri: string, name: string, description: string, mimeType: string }> }>}
43
+ */
44
+ async listResources() {
45
+ return this.post('/api/mcp/resources/list', {});
46
+ }
47
+
48
+ /**
49
+ * Read an MCP resource by URI.
50
+ * @param {string} uri - Resource URI (e.g., "andru://icp/profile")
51
+ * @returns {Promise<{ contents: Array<{ uri: string, mimeType: string, text: string }> }>}
52
+ */
53
+ async readResource(uri) {
54
+ return this.post('/api/mcp/resources/read', { uri });
55
+ }
56
+
57
+ /**
58
+ * @private
59
+ */
60
+ async post(path, body) {
61
+ const controller = new AbortController();
62
+ const timeout = setTimeout(() => controller.abort(), REQUEST_TIMEOUT_MS);
63
+
64
+ try {
65
+ const response = await fetch(`${this.baseUrl}${path}`, {
66
+ method: 'POST',
67
+ headers: {
68
+ 'Content-Type': 'application/json',
69
+ 'X-API-Key': this.apiKey,
70
+ 'User-Agent': `andru-mcp-server/${PACKAGE_VERSION}`,
71
+ },
72
+ body: JSON.stringify(body),
73
+ signal: controller.signal,
74
+ });
75
+
76
+ if (!response.ok) {
77
+ const errorBody = await response.text().catch(() => '');
78
+ let errorMessage;
79
+ try {
80
+ const parsed = JSON.parse(errorBody);
81
+ errorMessage = parsed.error || parsed.message || `HTTP ${response.status}`;
82
+ } catch {
83
+ errorMessage = `HTTP ${response.status}: ${errorBody.slice(0, 200)}`;
84
+ }
85
+ throw new Error(errorMessage);
86
+ }
87
+
88
+ return await response.json();
89
+ } catch (error) {
90
+ if (error.name === 'AbortError') {
91
+ throw new Error(`Request to ${path} timed out after ${REQUEST_TIMEOUT_MS / 1000}s`);
92
+ }
93
+ throw error;
94
+ } finally {
95
+ clearTimeout(timeout);
96
+ }
97
+ }
98
+ }
package/src/index.js ADDED
@@ -0,0 +1,51 @@
1
+ #!/usr/bin/env node
2
+
3
+ /**
4
+ * Andru Revenue Intelligence MCP Server
5
+ *
6
+ * Standalone entry point for use with Claude Desktop, Claude Code,
7
+ * or any MCP-compatible client.
8
+ *
9
+ * Environment variables:
10
+ * ANDRU_API_KEY (required) — Your Andru Platform API key
11
+ * ANDRU_API_URL (optional) — API base URL (default: https://api.andru.ai)
12
+ *
13
+ * Usage:
14
+ * ANDRU_API_KEY=sk_live_... npx @andru/mcp-server-intelligence
15
+ *
16
+ * Claude Desktop config (claude_desktop_config.json):
17
+ * {
18
+ * "mcpServers": {
19
+ * "andru-intelligence": {
20
+ * "command": "npx",
21
+ * "args": ["@andru/mcp-server-intelligence"],
22
+ * "env": {
23
+ * "ANDRU_API_KEY": "sk_live_your_key_here"
24
+ * }
25
+ * }
26
+ * }
27
+ * }
28
+ */
29
+
30
+ import { StdioServerTransport } from '@modelcontextprotocol/sdk/server/stdio.js';
31
+ import { AndruClient } from './client.js';
32
+ import { createServer } from './server.js';
33
+
34
+ const apiKey = process.env.ANDRU_API_KEY;
35
+
36
+ if (!apiKey) {
37
+ console.error('[Andru MCP] Error: ANDRU_API_KEY environment variable is required');
38
+ console.error('[Andru MCP] Get your API key at https://app.andru.ai/settings/api-keys');
39
+ process.exit(1);
40
+ }
41
+
42
+ const apiUrl = process.env.ANDRU_API_URL || 'https://api.andru.ai';
43
+
44
+ const client = new AndruClient(apiKey, apiUrl);
45
+ const server = createServer(client);
46
+ const transport = new StdioServerTransport();
47
+
48
+ await server.connect(transport);
49
+
50
+ console.error('[Andru MCP] Server running on stdio transport');
51
+ console.error(`[Andru MCP] API endpoint: ${apiUrl}`);
package/src/server.js ADDED
@@ -0,0 +1,93 @@
1
+ /**
2
+ * Andru MCP Server (Thin Proxy)
3
+ *
4
+ * Creates an MCP server that proxies all tool and resource requests
5
+ * to the Andru backend API via the AndruClient.
6
+ */
7
+
8
+ import { Server } from '@modelcontextprotocol/sdk/server/index.js';
9
+ import {
10
+ ListToolsRequestSchema,
11
+ CallToolRequestSchema,
12
+ ListResourcesRequestSchema,
13
+ ReadResourceRequestSchema,
14
+ } from '@modelcontextprotocol/sdk/types.js';
15
+
16
+ /**
17
+ * Create an MCP server backed by the Andru API.
18
+ *
19
+ * @param {import('./client.js').AndruClient} client
20
+ * @returns {Server}
21
+ */
22
+ export function createServer(client) {
23
+ const server = new Server(
24
+ {
25
+ name: 'andru-intelligence',
26
+ version: '0.1.0',
27
+ },
28
+ {
29
+ capabilities: {
30
+ tools: {},
31
+ resources: {},
32
+ },
33
+ }
34
+ );
35
+
36
+ // --- Tool handlers (proxy to backend) ---
37
+
38
+ server.setRequestHandler(
39
+ ListToolsRequestSchema,
40
+ async () => {
41
+ const result = await client.listTools();
42
+ return { tools: result.tools };
43
+ }
44
+ );
45
+
46
+ server.setRequestHandler(
47
+ CallToolRequestSchema,
48
+ async (request) => {
49
+ const { name, arguments: args } = request.params;
50
+ try {
51
+ return await client.callTool(name, args || {});
52
+ } catch (error) {
53
+ return {
54
+ content: [{
55
+ type: 'text',
56
+ text: JSON.stringify({ error: error.message }),
57
+ }],
58
+ isError: true,
59
+ };
60
+ }
61
+ }
62
+ );
63
+
64
+ // --- Resource handlers (proxy to backend) ---
65
+
66
+ server.setRequestHandler(
67
+ ListResourcesRequestSchema,
68
+ async () => {
69
+ const result = await client.listResources();
70
+ return { resources: result.resources };
71
+ }
72
+ );
73
+
74
+ server.setRequestHandler(
75
+ ReadResourceRequestSchema,
76
+ async (request) => {
77
+ const { uri } = request.params;
78
+ try {
79
+ return await client.readResource(uri);
80
+ } catch (error) {
81
+ return {
82
+ contents: [{
83
+ uri,
84
+ mimeType: 'text/plain',
85
+ text: JSON.stringify({ error: error.message }),
86
+ }],
87
+ };
88
+ }
89
+ }
90
+ );
91
+
92
+ return server;
93
+ }