smartapi-mcp
Verified Safeby biothings
Overview
Creates Model Context Protocol (MCP) servers for APIs registered in the SmartAPI registry, with a focus on bioinformatics and life sciences APIs.
Installation
uvx smartapi-mcp --api_set biothings_coreEnvironment Variables
- SMARTAPI_ID
- SMARTAPI_IDS
- SMARTAPI_EXCLUDE_IDS
- SMARTAPI_Q
- SMARTAPI_API_SET
- SERVER_NAME
- LOG_LEVEL
- TRANSPORT
- HOST
- PORT
- AUTH_TYPE
- AUTH_TOKEN
- AUTH_USERNAME
- AUTH_PASSWORD
- AUTH_API_KEY
- AUTH_COGNITO_CLIENT_ID
- AUTH_COGNITO_USERNAME
- AUTH_COGNITO_PASSWORD
Security Notes
The server relies on fetching OpenAPI specifications from the SmartAPI registry (smart-api.info) and making requests to base URLs defined within these specifications. A compromise of the SmartAPI registry or a registered API could potentially direct the MCP server to interact with malicious endpoints. Authentication credentials (tokens, API keys, etc.) are handled securely via environment variables or command-line arguments, which is good practice. The `publish.py` script uses `subprocess.run` which can execute arbitrary commands, but this is for development/publishing and not directly part of the server's runtime.
Similar Servers
mcpo
Exposes Model Context Protocol (MCP) tools as OpenAPI-compatible HTTP servers.
mcp-servers
A curated collection of Model Context Protocol (MCP) server configurations to integrate various developer tools and services with AI agents.
tmcp
A server implementation for the Model Context Protocol (MCP) to enable LLMs to access external context and tools.
knowledgebase-mcp
A standardized Model Context Protocol (MCP) server that aggregates and provides AI systems with access to diverse biomedical knowledge bases and analysis tools.