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.
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
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.
The README does not specify pricing; visit sourced.dev for details.
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.
Sourced supports Claude Code, Claude Desktop, Cursor, VS Code, Windsurf, Codex, Gemini CLI, Kiro, Zed, OpenCode, Copilot CLI, and Antigravity.
Currently PyPI (Python) and npm (JavaScript/Node.js). Maven/Gradle, RubyGems, and Crates.io (Rust) are planned.
Yes, the installer authenticates via GitHub and creates an API key for you automatically.
README (reference)
Source of truth, from the repository.
Sourced.dev
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:
- Authorize with GitHub.
- Create an API key.
- 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:
- Claude Code
- Claude Desktop (macOS)
- Cursor
- VS Code
- Windsurf
- Codex
- Gemini CLI
- Kiro
- Zed
- OpenCode
- Copilot CLI
- Antigravity
Capabilities
Sourced.dev exposes the following tools to your coding agent via MCP:
| Tool | Description |
|---|---|
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. |
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
- Visit sourced.dev to learn more.
- View the Issues page to see open tasks or report a bug.
- Open a Pull Request to contribute.
License
MIT License — see LICENSE for details.
Related MCP servers

MarsDawn
Export Markdown to PDF and open it in the MarsDawn app on macOS, with the marsdawn CLI.
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

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