PDF Extractor MCP

featured

Extracts text and tables from PDFs and converts them into clean Markdown format. Always popular for document processing and data extraction.

Installation Instructions →
Category: UtilitiesCompany: AI Stack

How to Use Model Context Protocol (MCP) in Cursor

What is MCP?

Model Context Protocol (MCP) is an open protocol that allows you to provide custom tools to agentic LLMs (Large Language Models) in Cursor's Composer feature. This enables AI assistants to interact with external services, APIs, and tools seamlessly.

Installation Steps

1. Open Cursor Settings

  • Navigate to Cursor Settings > Features > MCP
  • Click the "+ Add New MCP Server" button

2. Configure the Server

  • Name: Give your server a nickname (e.g., "PDF Extractor MCP")
  • Type: Select the transport type (stdio or sse)
  • Command/URL: Enter either:
    • For SSE servers: The URL of the SSE endpoint
    • For stdio servers: A valid shell command to run the server

Example Configurations

For stdio Server (PDF Extractor MCP Example):
claude://mcp/pdf-extractor
For SSE Server:
URL: http://example.com:8080/sse

PDF Extractor MCP Specific Instructions

1. Enable the PDF Extractor MCP in Claude.\n2. Upload a PDF file or provide a PDF URL.\n3. Claude extracts all text and tables.\n4. Get clean Markdown output ready for use.

Using MCP Tools

1. Tool Availability

After adding a server, it will appear in the MCP servers list. You may need to refresh Cursor or restart the application for changes to take effect.

2. Using Tools in Composer

The Composer Agent will automatically use MCP tools when appropriate. You can also explicitly prompt tool usage by:

  • Referring to the tool by name (e.g., "Use the PDF Extractor MCP tool to...")
  • Describing the tool's function (e.g., "Get the latest data from PDF Extractor MCP")

3. Tool Execution Process

When a tool is called, Cursor will:

  • Display a message in chat requesting approval
  • Show tool call arguments (expandable for details)
  • Execute the tool upon user approval
  • Display the tool's response in the chat

Important Notes

  • MCP tools may not work with all models. Check compatibility with your selected model.
  • MCP tools are only available to the Agent in Composer, not in regular chat.
  • For servers requiring environment variables, create a wrapper script that sets the variables before running the server.
  • For detailed documentation and updates, visit the GitHub repository.