IdioscriptIdioscript

MCP Integration

Use your Idioscript projects from any MCP-compatible tool — including Claude Desktop, Cursor, VS Code, and more.

What is MCP?

MCP (Model Context Protocol) is an open standard that allows AI applications to access external data and tools. Idioscript implements an MCP server, which means you can access your story context and style fingerprints from any MCP-compatible application.

This lets you use your Idioscript data in your preferred writing environment — whether that's Claude Desktop, an IDE with AI features, or another MCP client.

Available Tools

When connected via MCP, you get access to these Idioscript capabilities:

ask_story_bible

Query your story context in natural language. Ask about characters, plot points, world-building, and more.

generate_text

Generate new text using your Style Fingerprint. The output matches your established voice and patterns.

edit_text

Rewrite text to match your style. Transform any content into your voice.

continue_text

Continue writing from where you left off, maintaining your style and tone.

check_style_adherence

Verify if text matches your established style. Get a score and feedback.

list_projects & list_style_fingerprints

Discover available projects and fingerprints you can work with.

Getting an API Key

To use MCP integration, you need an API key. API keys are tied to your account and have access to all your projects.

Create an API Key

  1. Go to Settings in Idioscript
  2. Navigate to the API Keys section
  3. Click Create New API Key
  4. Give your key a descriptive name (e.g., "Claude Desktop")
  5. Copy the key immediately — it won't be shown again

Configuring Claude Desktop

Setting up Idioscript with Claude Desktop requires no local installation — just configure your API key and you're ready to go.

Setup Steps

  1. Generate an API key from Settings > API Keys
  2. Edit your Claude Desktop config file
  3. Add the Idioscript MCP server configuration
  4. Restart Claude Desktop

Edit Claude Desktop Configuration

Add the Idioscript MCP server to your Claude Desktop configuration file:

  • macOS: ~/Library/Application Support/Claude/claude_desktop_config.json
  • Windows: %APPDATA%\Claude\claude_desktop_config.json

claude_desktop_config.json

{
  "mcpServers": {
    "idioscript": {
      "command": "npx",
      "args": ["idioscript-mcp"],
      "env": {
        "MCP_API_KEY": "idi_live_your-api-key-here",
        "MCP_API_BASE_URL": "https://idioscript.com"
      }
    }
  }
}

Required Environment Variables

VariableDescription
MCP_API_KEYYour Idioscript API key (required)
MCP_API_BASE_URLThe Idioscript API URL (e.g., https://idioscript.com)

Connecting from Claude.ai Web

You can also connect to Idioscript directly from Claude.ai in your web browser using the remote MCP server. This is an alternative to the local npm package — no installation required.

Setup Steps

  1. Go to claude.ai
  2. Open Settings (click your profile icon)
  3. Navigate to Connectors (or Integrations)
  4. Click Add custom connector
  5. Enter the server URL: https://idioscript.com/api/mcp/remote
  6. Add a custom header with name X-MCP-API-Key and your API key as the value
  7. Save and start a new conversation

Once connected, you can ask Claude to use your Idioscript tools — query your Story Bible, generate styled text, check style adherence, and more — all directly in the Claude.ai web interface.

OAuth Authentication (Advanced)

For a more seamless connection experience, Claude.ai supports OAuth authentication. Instead of manually adding an API key header, you can use OAuth to let Claude handle authentication automatically.

OAuth Setup (Optional)

  1. Go to Claude.ai > Settings > Connectors
  2. Click Add custom connector
  3. Enter the server URL: https://idioscript.com/api/mcp/remote
  4. Click Advanced settings
  5. Enter your OAuth Client ID and Client Secret (if you have pre-registered credentials)
  6. Save and start a new conversation
  7. Claude will redirect you to Idioscript to authorize access

Note: If you don't provide client credentials, Claude will use Dynamic Client Registration to automatically create them. Either way, you'll be prompted to log in and authorize access.

Other MCP Clients

Any MCP-compatible client can connect to Idioscript using one of two methods:

Option 1: Local npm Package (stdio transport)

Best for desktop applications like Claude Desktop, Cursor, or VS Code.

  1. Configure your MCP client to run npx idioscript-mcp
  2. Set the MCP_API_KEY and MCP_API_BASE_URL environment variables
  3. Connect and start using the tools

Option 2: Remote HTTP Server

Best for web-based clients or environments where npm isn't available.

  1. Configure your client to connect to https://idioscript.com/api/mcp/remote
  2. Add the X-MCP-API-Key header with your API key
  3. Connect and start using the tools

Specific setup will vary by client. Check your client's documentation for details on adding custom MCP servers.

Direct CLI Usage

You can also run the local server directly for testing:

MCP_API_KEY=idi_live_your-key MCP_API_BASE_URL=https://idioscript.com npx idioscript-mcp

Use Cases

Ask Claude about your story while writing in your preferred environment

Generate styled text directly in your IDE

Check style adherence while editing in VS Code

Research your world while drafting in Obsidian

Use Idioscript tools in custom AI workflows

Troubleshooting

Connection Issues

  • Verify your API key is correct and not revoked
  • Check that MCP_API_BASE_URL is set to the correct URL
  • Ensure you have an internet connection
  • Check Claude Desktop logs for error messages

Server Not Starting

  • Make sure Node.js is installed (v18+ recommended)
  • Check that your config file syntax is valid JSON
  • Try running npx idioscript-mcp directly in a terminal to see error messages
  • Ensure both environment variables are set correctly

Tools Not Working

  • Make sure you have at least one project in Idioscript
  • Verify your project has a generated Style Fingerprint
  • Check that your API key has access to the project