PluginBench
MCP Server
Maintained
MIT

Sourced MCP Server

dev.sourced/sourced

Search and read source code from 800k+ PyPI and 3M+ npm packages directly in your coding agent.

What is the Sourced MCP server?

The Sourced MCP server provides coding agents with direct access to source code from every package on PyPI and npm. Instead of relying on training data or web searches, agents can read, search, and navigate actual package source code as if it were local. It tracks 800,000+ Python packages and 3,000,000+ npm packages, with new releases indexed within 5 minutes.

Sourced.dev integrates with your coding agent to give you instant access to the source code of any PyPI or npm package. Rather than searching documentation or relying on outdated training data, you can read files, search with regex patterns, and find files by glob patterns directly from package source trees. This is essential for understanding dependencies, debugging issues, and writing better code.

How to install Sourced

Copy-paste configuration for popular MCP clients.

transport: http
Config generated by PluginBench — verify against the source before use.
~/.cursor/mcp.json
{
  "mcpServers": {
    "sourced": {
      "url": "https://mcp.sourced.dev/mcp"
    }
  }
}

Tools & capabilities

Tools this server exposes to the agent.

  • read — Read a file from a package's source code with line numbers.
  • grep — Search for a regex pattern across a package's source tree.
  • glob — Find files matching a glob pattern within a package.

Use cases

  • Understand how a dependency works by reading its actual source code
  • Search for specific functions or patterns across a package's codebase
  • Find configuration files or examples within a package
  • Debug issues by examining the exact implementation of a library
  • Explore the structure and organization of large open-source packages

Sourced MCP server FAQ

What is Sourced?

Sourced is an MCP server that gives your coding agent direct access to read and search source code from 800k+ PyPI packages and 3M+ npm packages, indexed within 5 minutes of release.

Is Sourced free?

The README does not specify pricing; visit sourced.dev for details.

How do I install Sourced in Cursor or Claude?

Run `curl -sL sourced.dev/install | sh` to authorize with GitHub, create an API key, and automatically configure the MCP server for your agent. Restart your agent afterward.

Which agents are supported?

Sourced supports Claude Code, Claude Desktop, Cursor, VS Code, Windsurf, Codex, Gemini CLI, Kiro, Zed, OpenCode, Copilot CLI, and Antigravity.

What ecosystems does Sourced cover?

Currently PyPI (Python) and npm (JavaScript/Node.js). Maven/Gradle, RubyGems, and Crates.io (Rust) are planned.

Do I need authentication?

Yes, the installer authenticates via GitHub and creates an API key for you automatically.

README (reference)

Source of truth, from the repository.

Sourced.dev

Website License PyPI Packages npm Packages MCP

Source code search for every package on PyPI and npm.

Sourced.dev provides coding agents with direct access to dependency source code through the Model Context Protocol (MCP). Instead of relying on training data or web searches, agents can read, search, and navigate the actual source of any package — as if it were on your local machine.

Currently tracking all 800,000+ Python packages and all 3,000,000+ npm packages. New releases are indexed within 5 minutes of publication.

Quick Start

Install the MCP server in one command. It authenticates via GitHub and configures your coding agents automatically:

curl -sL sourced.dev/install | sh

The installer will:

  1. Authorize with GitHub.
  2. Create an API key.
  3. Configure the MCP server for your selected agents.

Restart your coding agents after installation to start using Sourced.

Supported Agents

The following coding agents are supported out of the box:

Capabilities

Sourced.dev exposes the following tools to your coding agent via MCP:

ToolDescription
readRead a file from a package's source code with line numbers.
grepSearch for a regex pattern across a package's source tree.
globFind files matching a glob pattern within a package.

All tools accept an ecosystem (e.g. pypi, npm), a package_name, and an optional version (defaults to latest).

Ecosystem Support

  • PyPI — 800,000+ packages
  • npm — 3,000,000+ packages
  • Maven/Gradle — planned
  • RubyGems — planned
  • Crates.io (Rust) — planned

Next Steps

License

MIT License — see LICENSE for details.

Related MCP servers

MAMarsDawn logo

MarsDawn

Active

Export Markdown to PDF and open it in the MarsDawn app on macOS, with the marsdawn CLI.

0
JavaScript
Apache-2.0
View repository →

Publish pages your agent writes to a private, shareable URL, then read, comment on and update them.

Manage your SparkAds slot: your stats, the free-hour grid, network totals, and your own creative.

Stripe billing for indie apps: plans, coupons, subscriptions, customers and revenue reporting.

Test whether 3D assets survive Apple Quick Look and Safari <model>, then fix what fails

SPSpecPilot logo

SpecPilot

Active

Generate and validate a .specs/ bundle for spec-driven development with your AI coding agent.

39
TypeScript
MIT
View repository →