About Sourced
Sourced.dev is an MCP server that gives coding agents direct access to the source code of PyPI and npm packages. It is aimed at agents and developers who need to inspect third-party library implementations rather than rely on training data or web searches. It tracks over 800,000 Python packages and over 3,000,000 npm packages, indexing new releases within 5 minutes.
Key features
- 01Read package source files with line numbers
- 02Regex search across a package's source tree
- 03Find files by glob pattern
- 04Optional version selection, defaulting to latest
Use cases
- 01Coding agents checking how a third-party library is implemented
- 02Searching a dependency for usages of a function or class
- 03Browsing PyPI or npm package contents without cloning repositories
MCP support
Sourced.dev is an MCP server. It exposes read, grep, and glob tools to MCP-compatible coding agents, each accepting an ecosystem, package name, and optional version.
Configuration
Remote servers need no local install. Pick your client, then copy the config or install in one click.
https://mcp.sourced.dev/mcpclaude mcp add --transport http dev-sourced-sourced https://mcp.sourced.dev/mcp{"mcpServers":{"dev-sourced-sourced":{"type":"http","url":"https://mcp.sourced.dev/mcp"}}}Open in Cursor{"servers":{"dev-sourced-sourced":{"type":"http","url":"https://mcp.sourced.dev/mcp"}}}Open in VS Code{"mcpServers":{"dev-sourced-sourced":{"type":"http","url":"https://mcp.sourced.dev/mcp"}}}{"mcpServers":{"dev-sourced-sourced":{"serverUrl":"https://mcp.sourced.dev/mcp"}}}Run commands in a terminal; paste JSON into the client’s MCP config and restart. Servers that need sign-in will prompt on first connect.
Tools
Details
From the project READMESourced.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.
Comments
New to MCP?
From what the protocol is to installing your first server, these answers cover most first questions.
An open protocol that defines how AI applications connect to external tools and data in a uniform way. Clients talk to the model; MCP servers provide tools, resources and prompt templates. They exchange standard messages, so one server can be reused by many clients.