How to connect Needle to Claude Cowork

Cowork is Anthropic's AI agent for knowledge work. Think of it as Claude Code for everything else. It works autonomously with your computer, local files, and applications to accomplish complex tasks. This guide walks you through the easiest and most secure way to connect your Needle account to Cowork via Composio Connect, enabling it to list all document collections I have, show stats for your 'research' collection, find files in collection uploaded this week, and more such actions on your behalf without compromising your account security.

Needle logoNeedle
Api Key

Needle is a RAG (retrieval-augmented generation) toolkit that brings semantic search capabilities to your own data. It lets you build smarter AI agents by giving them context-aware, accurate information retrieval.

16 Tools

Introduction

Cowork is Anthropic's AI agent for knowledge work. Think of it as Claude Code for everything else. It works autonomously with your computer, local files, and applications to accomplish complex tasks.

This guide walks you through the easiest and most secure way to connect your Needle account to Cowork via Composio Connect, enabling it to list all document collections I have, show stats for your 'research' collection, find files in collection uploaded this week, and more such actions on your behalf without compromising your account security.

Also integrate Needle with

Connecting Needle to Claude Cowork

1. Open Customize

In Claude Desktop, click Customize in the left sidebar, then select Connectors and click the + icon at the top.

Claude Desktop connectors screen with Add custom connector selected

2. Add the Composio MCP server

Click Add custom connector and paste in the Composio MCP server URL:

bash
https://connect.composio.dev/mcp
Add custom connector dialog with Composio MCP server URL

3. Authorize in your browser

Click Connect. You'll be redirected to a browser window where you can authorize Composio to continue.

Composio authorization screen for Claude Cowork

4. Connect your Needle account

Back in Cowork, ask the agent to connect to Needle or give it any Needle-related task.

For example, ask Cowork to:

  • "List all document collections I have"
  • "Show stats for your 'research' collection"
  • "Find files in collection uploaded this week"

It will prompt you to authenticate and authorize access.

That's it. Composio's tools are now available in Cowork, and your Needle account is ready to use.

What is Claude Cowork?

Claude Cowork is Anthropic's agent for general knowledge work. It can use your computer, files, and connected applications to complete longer-running tasks across your work tools.

With Composio Connect, Cowork can securely access apps like Needle through MCP without you sharing account credentials directly with the agent.

What is the Needle MCP server, and what's possible with it?

The Needle MCP server is an implementation of the Model Context Protocol that connects your AI agent and assistants like Claude, Cursor, etc directly to your Needle account. It provides structured and secure access to your semantic search collections, so your agent can perform actions like creating and managing collections, uploading and deleting files, retrieving collection statistics, and listing available data sources on your behalf.

  • Collection management and creation: Easily instruct your agent to create new semantic search collections tailored to your data needs.
  • File listing and retrieval: Have your agent list and retrieve all files within a specific collection, making it simple to view and organize your indexed data.
  • File deletion from collections: Direct your agent to remove unwanted or outdated files from any collection by specifying file IDs for cleanup and maintenance.
  • Collection statistics and insights: Ask your agent to fetch real-time statistics on any collection, including document counts, index size, and timestamps to monitor your data health.
  • Browse all available collections: Let your agent page through and present all your collections, so you can quickly access, search, or manage your data resources.
TOOLS

Supported Tools

Every Needle action and event your agent gets out of the box.

Add files to a collection

Tool to add files to a collection by providing file URLs.

Add Files to Local Connector

Tool to add files to a local connector by providing file metadata.

Create Collection

Tool to create a new collection.

Create Local Connector

Tool to create a local connector that monitors specified folders on a device.

Delete files from a collection

Tool to delete files from a specific collection by providing file IDs.

Delete files from local connector

Tool to delete files from a local connector by filename or file IDs.

Get Collection

Tool to retrieve details for a specific collection by its ID.

Get collection stats

Tool to retrieve statistics for a specific collection by its ID.

Get File Download URL

Tool to get a short-lived signed private download URL for a Needle file.

Get File Upload URL

Tool to get signed URLs for uploading local files to Needle.

Get local connector

Tool to retrieve details of a local connector by its ID.

List Collection Files

Tool to list all files within a specific collection by its ID.

List Collections

Tool to list collections.

List Connectors

Tool to list connectors.

List Local Connectors

Tool to list local connectors.

Search Collection

Tool to perform semantic search within a specific Needle collection and return ranked results with source references.

FAQ

Frequently asked questions

With a standalone Needle MCP server, the agents and LLMs can only access a fixed set of Needle tools tied to that server. However, with the Composio Tool Router, agents can dynamically load tools from Needle and many other apps based on the task at hand, all through a single MCP endpoint.

Yes, you can. Claude Cowork fully supports MCP integration. You get structured tool calling, message history handling, and model orchestration while Tool Router takes care of discovering and serving the right Needle tools.

Yes, absolutely. You can configure which Needle scopes and actions are allowed when connecting your account to Composio. You can also bring your own OAuth credentials or API configuration so you keep full control over what the agent can do.

All sensitive data such as tokens, keys, and configuration is fully encrypted at rest and in transit. Composio is SOC 2 Type 2 compliant and follows strict security practices so your Needle data and credentials are handled as safely as possible.

Start with Needle.It takes 30 seconds.

Managed auth, hosted MCP servers, and every Needle tool your agent needs.Free to start.

Start building