Labsco
latecheckout logo

Jasper AI

from latecheckout

An MCP server for interacting with the Jasper AI API to generate various types of content.

๐Ÿ”ฅ๐Ÿ”ฅ๐Ÿ”ฅโœ“ VerifiedAccount requiredAdvanced setup

Jasper AI MCP Server Prototype

This repository contains a prototype Model Context Protocol (MCP) server for interacting with the Jasper AI API.

Development Flow

pnpm run dev
  • Run in development mode: This command starts the server and uses @modelcontextprotocol/inspector. You can use the inspector to test out the MCP server.

  • Note: There isn't hot reloading. After making changes to the code, you'll need to run pnpm build and then click the restart button in the MCP inspector to see your changes.

Tools and Resources

This MCP server provides the following tools and resources:

Tools

  1. generate-content:

    • Description: Generate content via Jasper AI. Jasper is a premium generative marketing with the user's styleguide, brand voices and audiences. Jasper can be used to apply styles or generate content for the user that matches their styleguide, brand voices and audiences.
    • See src/tools/generateContent.ts.
  2. apply-style:

    • Description: Applies a specified styleguide's rules to the provided text content and returns the styled content. This tool can be used to ensure content conforms to the user's styleguide, especially useful when generating content for the public or for specific audiences.
    • See src/tools/applyStyleTool.ts.
  3. get-jasper-style-guides:

    • Description: Return the style guide id belonging to the user. This style guide id can be passed to jasper's generate-content tool to use that style when creating content. It can also be used in the apply-style tool to apply a style to a given text.
    • See src/tools/getStyleGuides.ts.
  4. get-jasper-brand-voices:

    • Description: Return a list of the brand voices/tones belonging to the user. These brand voices include a description to help the LLM and/or the user pick an appropriate tone, and a toneId that can be passed to jasper's generate-content tool to use that brand voice/tone when creating content.
    • See src/tools/getBrandVoices.ts.
  5. get-jasper-audiences:

    • Description: Return a list of the audiences belonging to the user. These audiences include a description to help the LLM and/or the user pick an appropriate audience, and an audienceId that can be passed to jasper's generate-content tool to use that audience when creating content.
    • See src/tools/getAudiences.ts.

Resources

  1. jasper://styles (Registered as jasper-styles):

    • Fetches available Jasper AI styles.
    • Implementation: src/resources/getStyles.ts
  2. jasper://brandvoices (Registered as jasper-brand-voices):

    • Fetches available Jasper AI brand voices (tones).
    • Implementation: src/resources/getBrandVoices.ts
  3. jasper://audiences (Registered as jasper-audiences):

    • Fetches available Jasper AI audiences.
    • Implementation: src/resources/getAudiences.ts