Sourced — Claude Code MCP server: read PyPI and npm source
Gives your coding agent access to the source code of any PyPI or npm package over MCP. Handy when you need to see how a library actually works instead of guessing from its docs.
claude mcp add --transport http sourced https://mcp.sourced.dev/mcpWhat Sourced does
Sourced plugs into a coding agent as an MCP server and exposes three tools. read returns a file from a package's source with line numbers, grep runs a regex across the package tree, and glob locates files by pattern. Each call takes an ecosystem such as pypi or npm, a package_name, and an optional version that falls back to the latest release.
Setup is a single command: curl -sL sourced.dev/install | sh. The script authorises you through GitHub, issues an API key, and writes the server config into whichever agents you pick. Restart the agents afterwards — they won't pick up the new config until you do.
Coverage spans all 800,000+ Python packages and 3,000,000+ npm packages, with new releases indexed within 5 minutes of publication. Maven/Gradle, RubyGems and Crates.io are listed as planned, so Rust, Ruby and Java dependencies are out of reach for now. MIT licensed.
What it helps with
- check how a library handles edge cases its docs skip
- trace which line in a package throws a given error
- confirm what a function really does rather than what the README claims
- inspect an unfamiliar dependency without cloning the repo
- locate files in a package by pattern when the layout is unknown
Example prompts for the agent
- Show me the source of the
parsefunction in the PyPI packagerequests - Grep
expressfor every placenextis called - Glob the
lodashpackage for*.d.tsfiles
How to install Sourced
Platform CLI: remote server
claude mcp add --transport http sourced https://mcp.sourced.dev/mcpPlatform CLI: remote server
codex mcp add sourced --url https://mcp.sourced.dev/mcpConfig file
{
"mcpServers": {
"sourced": {
"url": "https://mcp.sourced.dev/mcp"
}
}
}Config file
{
"servers": {
"sourced": {
"type": "http",
"url": "https://mcp.sourced.dev/mcp"
}
}
}Platform CLI: remote server
gemini mcp add -t http sourced https://mcp.sourced.dev/mcpStep by step, with commands for each platform: How to add an MCP server to Claude Code, Codex, Cursor, VS Code, Gemini CLI and more
Questions about Sourced
How do I install Sourced in Claude Code?
Run claude mcp add --transport http sourced https://mcp.sourced.dev/mcp, then restart the agent. There is also a one-line installer, curl -sL sourced.dev/install | sh, which handles GitHub auth, creates a key and configures the agents you select.
What does Sourced do?
It is an MCP server that searches the source code of PyPI and npm packages. Your agent gets read, grep and glob tools and works with a dependency's source as if it sat on your local disk.
Which ecosystems does Sourced support?
PyPI and npm. Maven/Gradle, RubyGems and Crates.io are listed as planned.