Skip to main content
Glama
COS MCP Server

COS MCP Server

by SEMalytics
README.md
# COS MCP Server

<!-- mcp-name: io.github.semalytics/cos-mcp -->

MCP server for [COS](https://semalytics.com) (Communication Optimization System) — score content across 7 psychology frameworks.

## Quick Start

```bash
# Set your API key
export COS_API_KEY="cos_api_..."

# Run with uvx (no install needed)
uvx cos-mcp
```

Get your API key at [semalytics.com](https://semalytics.com).

## Configuration

### Claude Desktop

Add to `~/Library/Application Support/Claude/claude_desktop_config.json`:

```json
{
  "mcpServers": {
    "cos": {
      "command": "uvx",
      "args": ["cos-mcp"],
      "env": {
        "COS_API_KEY": "cos_api_..."
      }
    }
  }
}
```

### Claude Code

```bash
claude mcp add --transport stdio --env COS_API_KEY=cos_api_... cos -- uvx cos-mcp
```

### Environment Variables

| Variable | Required | Default | Description |
|----------|----------|---------|-------------|
| `COS_API_KEY` | Yes | — | Your COS developer API key |
| `COS_API_URL` | No | `https://semalytics.com/api` | COS API base URL |

## Tools (11)

### Core Analysis

| Tool | Credits | Description |
|------|---------|-------------|
| `analyze_content` | 5 | Full 4-framework analysis (HAPE + Big Five + Strategic Clarity + Framing Strategy) |
| `analyze_framework` | 2 | Single framework analysis |
| `analyze_full_comms` | 10 | All 7 frameworks in parallel |

### Extended Analysis

| Tool | Credits | Description |
|------|---------|-------------|
| `analyze_persuasion` | 3 | Domain-specific persuasion (business, politics, health, masculinity, comedy) |
| `analyze_platform` | 2 | Platform optimization (13 platforms) |
| `analyze_quality` | 2 | 5-dimension quality scoring |
| `profile_agent` | 3 | Infer OCEAN personality from writing samples |

### Conversational

| Tool | Credits | Description |
|------|---------|-------------|
| `chat` | 1 | Interactive analysis agent |

### Templates

| Tool | Credits | Description |
|------|---------|-------------|
| `get_templates` | Free | List available analysis templates |
| `get_template_details` | Free | Get template specifications |
| `execute_template` | 2 | Run a template with variables |

## Frameworks

**Core 4:**
- **HAPE** — Engagement scoring: impact, novelty, relevance, emotional valence
- **Big Five** — Personality-based communication using the OCEAN model (0.0–1.0 traits)
- **Strategic Clarity** — Message alignment: value proposition, differentiation, CTA strength
- **Framing Strategy** — Cognitive frames, metaphors, and power positioning

**Extended 3:**
- **Persuasion** — Domain-aware persuasion analysis (Cialdini's principles, ELM routes, moral foundations)
- **Platform** — Platform-specific optimization for 13 platforms (Twitter, LinkedIn, Email, TikTok, etc.)
- **Quality** — 5-dimension quality: clarity, coherence, correctness, completeness, conciseness

## Examples

### Analyze a LinkedIn post

```
Use analyze_content to score this LinkedIn post for engagement and personality fit:

"We just shipped our v2.0 and I couldn't be prouder of this team..."
```

### Profile a writer's personality

```
Use profile_agent with these 3 writing samples to identify the author's communication style:

Sample 1: "..."
Sample 2: "..."
Sample 3: "..."
```

### Run a full 7-framework analysis

```
Use analyze_full_comms on this sales email, targeting the business domain on the email platform:

"Subject: Quick question about your Q3 pipeline..."
```

## Development

```bash
git clone https://github.com/SEMalytics/cos-mcp
cd cos-mcp
uv pip install -e .
export COS_API_KEY="your-key"
cos-mcp
```

## License

MIT

TDQS

A3.6/5.0

Scored across 11 tools

Disambiguation3/5

The analyze_* family is heavily nested: analyze_content covers the core 4 frameworks, which are a strict subset of analyze_full_comms (7 frameworks), and analyze_quality, analyze_platform, and analyze_persuasion each duplicate a slice of that same full analysis. An agent must reason carefully about scope to pick the right one, though descriptions do provide guidance on when to use each. get_templates vs get_template_details is a smaller but real overlap in naming semantics.

Naming Consistency4/5

Six tools follow a clean analyze_<dimension> pattern (analyze_content, analyze_framework, analyze_quality, analyze_platform, analyze_persuasion, analyze_full_comms), and the template tools use a verb_noun scheme. Minor deviations: get_templates (plural, list) vs get_template_details (singular) is slightly asymmetric, and 'chat' / 'profile_agent' break the pattern, but overall readable and predictable.

Tool Count5/5

11 tools sits squarely in the well-scoped range and each tool maps to a distinct analysis mode or template operation. Nothing feels padded given the breadth of frameworks the server advertises.

Completeness4/5

The analysis surface is thorough: single-framework, core-4, full-7, domain persuasion, platform, quality, and inverse writer profiling, plus a list/detail/execute template lifecycle. Gaps are minor — there is no create/save custom template, no analysis history or result retrieval, and settings can only be changed indirectly via chat.

Maintenance

ActivityInactive
ResponsivenessNo recent community issues