Back to Home
L0stInFades icon

Cocode-Precise

Verified Safe

by L0stInFades

Overview

An MCP server for precise code symbol retrieval, returning exact source code for functions, classes, and methods by name, and offering semantic search capabilities.

Installation

Run Command
python -m src.server

Environment Variables

  • COCOINDEX_DATABASE_URL
  • OPENAI_API_KEY
  • JINA_API_KEY
  • MISTRAL_API_KEY

Security Notes

The server employs robust security practices, including parameterized SQL queries to prevent injection, path validation (resolving absolute paths, checking for symlinks, verifying directory existence, and ensuring files are within the repository) to prevent directory traversal attacks, and strict environment variable usage for API keys instead of hardcoding secrets. Input length limits (e.g., symbol_name, file size) are also enforced to prevent resource exhaustion. No 'eval' or malicious patterns were identified in the provided source code. The HTTP clients for external APIs use timeouts to prevent hangs.

Similar Servers

Stats

Interest Score0
Security Score9
Cost ClassHigh
Avg Tokens1500
Stars0
Forks0
Last Update2026-01-19

Tags

MCP ServerCode RetrievalSymbol SearchCode IndexingAST Parsing