T
tscircuit3mo ago
C4

tscircuit MCP

https://github.com/charlielockyer-rice/tscircuit-mcp Built a basic MCP for accessing the tscircuit registry with Claude directly. Should be helpful for more future AI integrations. I have it set up now where I can use Claude Desktop to directly search the registry and return component code. Claude Code did lots of the heavy lifting - if anyone has any thoughts or comments, please let me know!
GitHub
GitHub - charlielockyer-rice/tscircuit-mcp: An MCP for tscircuit.
An MCP for tscircuit. Contribute to charlielockyer-rice/tscircuit-mcp development by creating an account on GitHub.
4 Replies
Rishabh
Rishabh3mo ago
Nice!! This is a great initiative. Haven't tried it yet, but would check this out
Seve
Seve3mo ago
this is sweet!
C4
C4OP3mo ago
Thinking about more ways to make this useful. Question on data structure - is there currently a well-defined mechanism for tracking attributes of a component, like operating voltage, current limits, etc. (stuff you'd see on a datasheet)? I ask bc this could be useful for queries like "find me a temperature sensor that works with my existing architecture" where the MCP may return lots of options, but making an informed choice requires more info. I could set it up to return basically all the component data and have the LLM try to parse it for info, but not sure how well that will scale. For example: https://tscircuit.com/imrishabh18/air-quality-sensor#schematic The schematic notes that this is a 3.3v component, but that's the only place I can find that info in the part description. That's fine for a part like this, but in more complex examples (like microcontrollers with both 3V3 and a 5V VBUS), it might be more difficult to make informed decisions on which part to choose. Not sure if it already exists, but if we could tie data from part datasheets directly to part data in the registry, that would be a big step forward once the package registry expands to include many more parts.
undefined - tscircuit
A tscircuit component created by imrishabh18
Seve
Seve3mo ago
there aren't that many components in the registry yet, you might want to use https://jlcsearch.tscircuit.com which also has an API and return components converted to easyeda using the easyeda module (which we develop here: https://github.com/tscircuit/easyeda-converter). That would allow people to instantly get full components for any part on jlc

Did you find this page helpful?