Skip to content

MCP Server

OriginalVoices provides a Model Context Protocol (MCP) server that allows you to integrate human insights directly into your AI workflows and agentic applications.

Overview

The OriginalVoices MCP server exposes tools that enable AI assistants and agents to gather real-time human insights from Digital Twins. This allows AI applications like Claude Desktop, Cursor, and other MCP-compatible clients to automatically gather human insights when needed, making them more grounded in real human perspectives.

Authentication

All connections to the MCP server require authentication using an API key. You can create and manage your API keys on the OriginalVoices Platform.

API Key Security

Never commit your API key to version control. Use environment variables or a secrets management service to store your credentials securely.

Connection Options

There are two ways to connect to the OriginalVoices MCP server:

We provide an open-source MCP server package that you can run locally:

To use with Claude Desktop or Cursor, add the following to your MCP configuration:

json
{
  "mcpServers": {
    "originalvoices": {
      "command": "npx",
      "args": ["@originalvoices/mcp-server"],
      "env": {
        "ORIGINALVOICES_API_KEY": "your-api-key"
      }
    }
  }
}

Replace your-api-key with your actual API key from the OriginalVoices Platform.

Option 2: SSE Transport

For direct connection via Server-Sent Events (SSE), the MCP server is available at:

https://api.originalvoices.ai/mcp/sse

The SSE transport supports both OAuth and API-Key authentication:

  • API-Key: Authorization: Api-Key YOUR_API_KEY
  • OAuth: Standard OAuth 2.0 Bearer token

When configuring your MCP client for SSE, use:

  • Server URL: https://api.originalvoices.ai/mcp/sse
  • Authentication: Api-Key or OAuth Bearer token

Available Tools

The OriginalVoices MCP server provides a tool for gathering human insights:

ask_twins

Ask open-ended questions to a specific audience. Returns raw answers from Digital Twins.

Parameters:

ParameterTypeRequiredDescription
audiencestringYesDescription of the target audience (maps to audiencePrompt)
questionsstring[]YesArray of open-ended questions to ask the audience

Returns:

The tool returns raw answers including:

  • answers: Array of raw answers from Digital Twins, each containing:
    • answer: The free-text response from the Digital Twin
    • confidence: Score from 0 to 1 representing confidence in the answer correctness

Example:

json
{
  "audience": "UK, 18-30, fitness enthusiasts",
  "questions": [
    "When purchasing running shoes, what's most important to you?",
    "How often do you replace your running shoes?"
  ]
}

Audience Descriptions

The tool requires an audience parameter that describes who you want to get insights from. You can describe your audience naturally using plain language that includes any mix of:

  • Location: e.g. USA, UK, Australia
  • Age range: e.g. 18–34
  • Gender: if relevant
  • Interests: hobbies, passions, or cultural touchpoints
  • Profession or lifestyle: job roles, habits, or mindsets

Example audience descriptions:

  • "UK, 18–32, men interested in sports"
  • "US, 25–45, tech professionals working remotely"
  • "18–30, fitness enthusiasts"

The API interprets your audience description and selects the most relevant Digital Twins that match your criteria.

Error Handling

The MCP server returns structured error responses when something goes wrong. Common error scenarios include:

Unauthorized

If the API key is missing or invalid:

json
{
  "error": "Unauthorized",
  "message": "API key is required. Provide it via Authorization Bearer header when connecting."
}

or

json
{
  "error": "Unauthorized",
  "message": "Invalid API key"
}

Invalid Arguments

If the provided parameters don't meet validation requirements:

json
{
  "error": "Invalid arguments",
  "details": {
    "fieldErrors": {
      "audience": ["String must contain at least 1 character(s)"],
      "questions": ["Array must contain at least 1 element(s)"]
    }
  }
}

Failed Operations

If an operation fails for any reason:

json
{
  "error": "Failed to ask question",
  "message": "Error description here"
}

All error responses include an isError: true flag to help clients identify and handle errors appropriately.

Parameter Validation

The tool validates input parameters:

  • audience: Must be a string between 1 and 255 characters
  • questions: Must be an array of strings, each between 1 and 255 characters

If validation fails, the tool returns an error with details about which fields failed validation.

Use Cases

The MCP server is ideal for:

  • AI Assistants: Enable your AI assistant to gather human insights when answering questions about consumer preferences, market research, or audience opinions
  • Agentic Workflows: Integrate human intelligence into automated workflows that need to understand human perspectives
  • Research Tools: Build research applications that can automatically gather insights from target audiences
  • Content Creation: Help content creators understand their audience better by asking questions through AI agents

Next Steps

Support

For additional support or questions about the MCP server, please contact support@originalvoices.ai.

Powered by OriginalVoices