Needle MCP server

Connect Needle to Claude, ChatGPT, Cursor, Claude Code, Codex, Gemini, GitHub Copilot and any other MCP client, for your whole team. Metorial adds security, governance, and tracing, and gives everyone one Magic MCP URL to connect.

What you can do with the Needle MCP server

Ask your agent in plain language. Each of these maps to a real tool on the server.

  • Use the get file upload url tool in Needle
  • Use the list collection files tool in Needle
  • Use the delete collection tool in Needle
  • Use the list collections tool in Needle
  • Use the list connectors tool in Needle
  • Use the get collection tool in Needle

Supported Tools

get_file_upload_url

Get File Upload URL

Generate signed upload URLs for uploading local or private files to Needle. After uploading a file to the signed URL, use the returned reference URL when adding the file to a collection.

list_collection_files

List Collection Files

List files in a collection with pagination support. Returns file metadata including name, size, content type, and indexing status.

delete_collection

Delete Collection

Permanently delete a collection and all its indexed files. This action cannot be undone.

list_collections

List Collections

List all document collections accessible to the authenticated user. Returns each collection's name, ID, creation date, and search query count.

list_connectors

List Connectors

List all configured data source connectors. Connectors automatically sync and index content from external sources like Google Drive, SharePoint, Notion, Slack, and others into collections.

get_collection

Get Collection

Retrieve details and statistics for a specific collection, including file counts, chunk counts, character counts, and indexing status breakdown.

create_collection

Create Collection

Create a new document collection. The authenticated user will be the owner of the created collection. Collections are the primary organizational unit for indexing and searching documents.

search_collection

Search Collection

Perform AI-powered semantic search across all documents in a collection. Needle automatically handles chunking, embedding, and reranking to return the most relevant text passages for the given query.

get_file_download_url

Get File Download URL

Prepare a downloadable file and return its signed download URL. The URL is short-lived; request a new one if you need to use it later.

delete_files_from_collection

Delete Files from Collection

Remove one or more files from a collection by their file IDs. Files managed by connectors (e.g. Google Drive sync) cannot be manually deleted.

add_files_to_collection

Add Files to Collection

Add one or more files to a collection by providing a URL for each file. URLs can be public or private file reference URLs obtained via the **Get File Upload URL** tool. Files are automatically indexed for semantic search after being added.

list_connector_files

List Connector Files

List files synchronized by a data source connector, including file IDs, source URLs, sizes, and timestamps. Use offset to retrieve another page.

get_collection_stats

Get Collection Statistics

Retrieve collection indexing statistics, including file counts, byte sizes, indexed chunks, characters, and users. Unknown byte sizes are returned as null.

Connect Needle to your AI client

Every client uses the same Magic MCP URL, and so does any other MCP client. Add it once and sign in with SSO.

  1. Enable Needle in Metorial. In your Metorial portal, enable the Needle MCP server and sign in with the account that owns the data. Access stays governed by your team policies.
  2. Add a custom connector. Open Customize, then Connectors. Select Add, then Custom, then Web.
  3. Paste your Metorial MCP URL. Name it Metorial, paste your Magic MCP URL (<your-magic-mcp-url>) and continue.
  4. Sign in. Select Add and sign in to load Needle tools.

Run Needle through the Metorial gateway

One governed layer for every app your agents reach, not a separate connector per tool.

  • Give Needle and every other app to your whole team through one MCP gateway, behind your SSO.
  • Scope which teams and agents can use Needle tools with role-based access control, and trace every call.
  • Prefer to run it yourself? Metorial is open source and self-hostable.

More integrations teams use with Needle

Notion

Create, read, update, and archive pages and databases in a Notion workspace. Manage blocks (paragraphs, lists, headings, embeds, etc.) within pages. Query databases with filters and sorts across rich property types including text, numbers, dates, selects, relations, and formulas. Search across pages and databases by title. Add and read comments on pages and blocks. Upload files to pages. Manage workspace users and retrieve user profiles.

GitHub

Manage repositories, issues, and pull requests. Create and configure branches, star repositories, review code, and merge changes. Automate CI/CD workflows with GitHub Actions, manage workflow runs, secrets, and artifacts. Track issues with labels, milestones, and assignees. Search across code, repositories, issues, and users. Manage organizations, teams, and memberships. Create and manage projects, gists, packages, deployments, and environments. Access security alerts including code scanning, secret scanning, and Dependabot alerts. Read and write file contents in repositories. Manage webhooks, notifications, and codespaces.

Salesforce

Manage CRM data including Accounts, Contacts, Leads, Opportunities, Cases, and custom objects. Create, read, update, and delete records. Query data using SOQL and search across objects using SOSL. Perform bulk data operations for large-scale imports, exports, and migrations. Execute composite requests to batch multiple operations in a single API call. Access analytics, reports, and dashboards. Manage files and attachments associated with records. Interact with Chatter feeds, posts, and groups for social collaboration. Manage org metadata including custom objects, fields, layouts, and workflows. Query data using GraphQL for precise data retrieval across related objects.

Sharepoint

Manage SharePoint sites, document libraries, lists, and files. Create, read, update, and delete lists and list items with custom columns. Resolve site users to numeric Person/Group LookupId values. Upload, download, move, copy, and version files in document libraries. Search across sites, files, folders, lists, and list items using Microsoft Search. Manage permissions at site, list, and item levels with granular access control. Define and manage content types and site columns. Retrieve site properties and search for sites across Microsoft 365.

Microsoft Outlook

Send, read, reply to, forward, and manage email messages in user mailboxes. Organize messages into folders, apply categories, flags, and importance levels. Manage file and item attachments. Create, update, delete, and respond to calendar events and meetings. Find available meeting times, manage attendees, handle recurrence, and work with shared or delegated calendars. Create, read, update, and delete contacts, organize them into contact folders, and manage contact photos. Manage tasks and task lists via Microsoft To Do, including due dates, reminders, recurrence, and checklist items. Subscribe to webhook notifications for changes to messages, calendar events, and contacts. Support for Focused Inbox, @-mentions, mail tips, send-on-behalf, and send-as capabilities.

Linear

Create, read, update, and delete issues across teams with support for priorities, labels, assignees, due dates, and workflow states. Manage projects that group related issues, and organize work into time-boxed cycles (sprints). Create and manage documents, comments, and file attachments. Search issues using vector similarity or rich filters. Configure teams, workflow states, and labels. Track customers and link them to issues.

Technical notes for Needle

Manage Needle document collections, add and remove indexed files, retrieve indexing statistics, and search document passages. Generate upload URLs for local files, download existing files, and inspect files synchronized by data source connectors.

Frequently asked questions

Common questions about connecting Needle to AI agents with Metorial.

  1. How many tools does the Needle MCP server have?
    The Needle MCP server exposes 13 tools, including Get File Upload URL, List Collection Files, Delete Collection. Each one is governed and traced through Metorial.
  2. Needle exposes tools your agents call on demand; it does not publish event triggers yet. Everything still runs through one governed MCP URL.
  3. Any MCP client, including VS Code, Windsurf, Zed, OpenCode and Grok. Each one reaches the Needle MCP server through the same Metorial URL.
  4. Use role-based access control to decide which teams, users, and agents can use Needle and which of its tools they can call.
  5. Yes. Metorial is open source, so you can run the Needle MCP server yourself or use the hosted gateway.

Connect Needle to production AI agents

See how Metorial gives your team governed access to Needle, with tracing and security controls built in.