{"id":27226118,"url":"https://github.com/terhechte/cursor-rust-tools","last_synced_at":"2026-05-13T20:33:51.621Z","repository":{"id":286850909,"uuid":"962457853","full_name":"terhechte/cursor-rust-tools","owner":"terhechte","description":"A MCP server to allow the LLM in Cursor to access Rust Analyzer, Crate Docs and Cargo Commands.","archived":false,"fork":false,"pushed_at":"2025-05-12T19:53:39.000Z","size":1481,"stargazers_count":76,"open_issues_count":2,"forks_count":11,"subscribers_count":3,"default_branch":"main","last_synced_at":"2025-10-13T15:04:48.615Z","etag":null,"topics":["cursor","developer-tools","llm","lsp","mcp","mcp-server","rust"],"latest_commit_sha":null,"homepage":"","language":"Rust","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":null,"status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/terhechte.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":null,"code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null,"zenodo":null,"notice":null,"maintainers":null,"copyright":null,"agents":null,"dco":null,"cla":null}},"created_at":"2025-04-08T07:28:11.000Z","updated_at":"2025-09-23T21:42:37.000Z","dependencies_parsed_at":"2025-05-12T20:42:06.855Z","dependency_job_id":null,"html_url":"https://github.com/terhechte/cursor-rust-tools","commit_stats":null,"previous_names":["terhechte/cursor-rust-tools"],"tags_count":1,"template":false,"template_full_name":null,"purl":"pkg:github/terhechte/cursor-rust-tools","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/terhechte%2Fcursor-rust-tools","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/terhechte%2Fcursor-rust-tools/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/terhechte%2Fcursor-rust-tools/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/terhechte%2Fcursor-rust-tools/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/terhechte","download_url":"https://codeload.github.com/terhechte/cursor-rust-tools/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/terhechte%2Fcursor-rust-tools/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":32999424,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-05-13T13:14:54.681Z","status":"ssl_error","status_checked_at":"2026-05-13T13:14:51.610Z","response_time":115,"last_error":"SSL_read: unexpected eof while reading","robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":false,"can_crawl_api":true,"host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["cursor","developer-tools","llm","lsp","mcp","mcp-server","rust"],"created_at":"2025-04-10T11:47:11.678Z","updated_at":"2026-05-13T20:33:51.602Z","avatar_url":"https://github.com/terhechte.png","language":"Rust","funding_links":[],"categories":["APIs and HTTP Requests"],"sub_categories":[],"readme":"\u003cimg src=\"media/icon.png\" width=\"150\" height=\"149\" /\u003e\n\n\n# Cursor Rust Tools\n\nA [MCP](https://www.anthropic.com/news/model-context-protocol) server to allow the LLM in Cursor to \naccess Rust Analyzer, Crate Docs and Cargo Commands.\n\nIncludes an UI for configuration.\n\n![media/example.png](media/example.png)\n\n## What it does\n\nCurrently, various AI agents don't offer the AI the ability to access Rust type information from the LSP.\nThis is a hurdle because instead of seeing the type, the LLM has to reason about the potential type.\n\nIn addition, the only information about the dependencies (say `tokio`) are what they were trained on which is\nout of date and potentially for a different version. This can lead to all kinds of issues.\n\n`Cursor Rust Tools` makes these available over the Model Context Protocol (`MCP`).\n\n- Get the documentation for a `crate` or for a specific symbol in the `crate` (e.g. `tokio` or `tokio::spawn`)\n- Get the hover information (type, description) for a specific symbol in a file\n- Get a list of all the references for a specific symbol in a file\n- Get the implementation of a symbol in a file (retrieves the whole file that contains the implementation)\n- Find a type just by name in a file the project and return the hover information\n- Get the output of `cargo test`\n- Get the output of `cargo check`\n\n![media/screenshot.png](media/screenshot.png)\n\n## How it works\n\nFor the LSP functionality `src/lsp` it spins up a new Rust Analyzer that indexes your codebase just like the on running in your editor. We can't query the one running in the editor because Rust Analyzer is bound to be used by a single consumer (e.g. the `open document` action requires a `close document` in the right order, etc)\n\nFor documentation, it will run `cargo docs` and then parse the html documentation into markdown locally.\nThis information is stored in the project root in the `.docs-cache` folder.\n\n## Installation\n\n```sh\ncargo install --git https://github.com/terhechte/cursor-rust-tools\n```\n\n### Run With UI\n\n``` sh\ncursor-rust-tools\n```\n\nThis will bring up a UI in which you can add projects, install the `mcp.json` and see the activity.\n\n### Run Without UI\n\nAlternatively, once you have a `~/.cursor-rust-tools` set up with projects, you can also just run it via\n\n``` sh\ncursor-rust-tools --no-ui\n```\n\n## Configuration\n\nIn stead of using the UI to create a configuration, you can also set up `~/.cursor-rust-tools` yourself:\n\n``` toml\n[[projects]]\nroot = \"/Users/terhechte/Developer/Rust/example1\"\nignore_crates = []\n\n[[projects]]\nroot = \"/Users/terhechte/Developer/Rust/example2\"\nignore_crates = []\n```\n\n`ignore_crates` is a list of crate dependency names that you don't want to be indexed for documentation. For example because they're too big.\n\n## Configuring Cursor\n\nOne the app is running, you can configure Cursor to use it. This requires multiple steps.\n\n1. Add a `project-dir/.cursor/mcp.json` to your project. The `Cursor Rust Tools` UI has a button to do that for you. Running it without UI will also show you the `mcp.json` contents in the terminal.\n2. As soon as you save that file, Cursor will detect that a new MCP server has been added and ask you to enable it. (in a dialog in the bottom right).\n3. You can check the Cursor settings (under `MCP`) to see where it is working correctly\n4. To test, make sure you have `Agent Mode` selected in the current `Chat`. And then you can ask it to utilize one of the new tools, for example the `cargo_check` tool.\n5. [You might want to add cursor rules to tell the LLM to prefer using these tools whenever possible. I'm still experimenting with this.](https://docs.cursor.com/context/rules-for-ai)\n\n![media/cursor.png](media/cursor.png)\n\n**The contents of all the `mcp.json` is the same. Cursor Rust Tools figures out the correct project via\nthe filepath**\n\n## Open Todos\n\n- [ ] Create a [Zed](https://zed.dev) extension to allow using this\n- [ ] Proper shutdown without errors\n- [ ] Removing a project is a bit frail right now (in the UI)\n- [ ] Expose more LSP commands\n- [ ] Allow the LLM to perform [Grit operations](https://docs.grit.io/patterns#Miscellaneous)\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fterhechte%2Fcursor-rust-tools","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fterhechte%2Fcursor-rust-tools","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fterhechte%2Fcursor-rust-tools/lists"}