
Jina AI
STDIOMCP server for Jina AI neural search with semantic, image, and cross-modal search capabilities.
MCP server for Jina AI neural search with semantic, image, and cross-modal search capabilities.
A Model Context Protocol (MCP) server that provides seamless integration with Jina AI's neural search capabilities. This server enables semantic search, image search, and cross-modal search functionalities through a simple interface.
git clone <repository-url> cd jina-ai-mcp
npm install
.env
file with your Jina AI API key:JINA_API_KEY=your_api_key_here
npm run build
Add the following configuration to your MCP settings file:
{ "mcpServers": { "jina-ai": { "command": "node", "args": [ "/path/to/jina-ai-mcp/build/index.js" ], "env": { "JINA_API_KEY": "your_api_key_here" } } } }
Perform semantic/neural search on text documents.
use_mcp_tool({ server_name: "jina-ai", tool_name: "semantic_search", arguments: { query: "search query text", collection: "your-collection-name", limit: 10 // optional, defaults to 10 } })
Search for similar images using an image URL.
use_mcp_tool({ server_name: "jina-ai", tool_name: "image_search", arguments: { imageUrl: "https://example.com/image.jpg", collection: "your-collection-name", limit: 10 // optional, defaults to 10 } })
Perform text-to-image or image-to-text search.
use_mcp_tool({ server_name: "jina-ai", tool_name: "cross_modal_search", arguments: { query: "a beautiful sunset", // or image URL for image2text mode: "text2image", // or "image2text" collection: "your-collection-name", limit: 10 // optional, defaults to 10 } })
All search tools return results in the following format:
{ content: [ { type: "text", text: JSON.stringify({ results: [ { id: string, score: number, data: Record<string, any> } ] }, null, 2) } ] }
The server handles various error cases:
All errors are properly formatted and returned with appropriate error codes and messages.
Contributions are welcome! Please feel free to submit a Pull Request.
This project is licensed under the MIT License - see the LICENSE file for details.