What is contextsmith?
contextsmith is a MCP server by RahulSankhla312 that the best code context per token for coding agents: ranks a repository's functions with a code graph, BM25, local embeddings and git history, then packs them into a hard token budget. It is listed under Developer tools and has no public popularity data yet.
| Type | Mcp server |
|---|---|
| Author | RahulSankhla312 |
| Repository | RahulSankhla312/contextsmith |
| Popularity | no public popularity data yet |
| Category | Developer tools |
| Security | Low risk (80/100) |
| Rank | #4,303 of 5,098 MCP servers; #759 in Developer tools |
| License | MIT |
| Last commit | 2026-10-25 |
| Runs | Locally |
| Language | Python |
| Platforms | macOS, Windows, Linux |
Is contextsmith safe to install?
contextsmith scores 80/100 on the MCPMods security check: Low risk. Things to review: executes code or shell commands. It passed 3 of 6 checks.
MCP server results come from listing signals: who publishes it, where your data goes and what it can do. The code itself is not scanned yet.
| Check | Result |
|---|---|
| Community-built server | Note |
| Runs on your machine only | Pass |
| Needs an API key or account login | Note |
| Read-only by description | Pass |
| Executes code or shell commands | Review |
| Source on GitHub | Pass |
How do I install contextsmith?
- Find the launch command. The README says how the server starts (npx, uvx, docker or a remote URL) and which API keys it needs.
https://github.com/RahulSankhla312/contextsmith
- Add it to Claude Code. Replace the part after -- with the command from the README. Remote servers use --transport http with a URL.
claude mcp add contextsmith -- <command from README> claude mcp add --transport http contextsmith <server-url>
- Check it connected. This lists your MCP servers and their status.
claude mcp list
Or ask Claude to set it up
Paste this into Claude Code and it installs contextsmith for you:
Add the "contextsmith" MCP server from https://github.com/RahulSankhla312/contextsmith to Claude Code. Read its README for the launch command and any API keys I need, run claude mcp add, then check that it connects.