MCP Server
Connect directly to the Pending AI platform from any AI Agent
Model Context Protocol
Pending AI offers a Model Context Protocol (MCP) server for accessing the different tool options. An MCP server gives existing LLM chats a way to call services enabled for a user and streamline different workflows. There are many possible workflow integrations, for example:
As Pending AI continues to deliver new possibilities, when in doubt you can always ask "What am I able to do using Pending AI?" for more information.
Supported Tools
The Pending AI MCP server currently supports the following 22 tools in Early Access. Descriptions are the ones the server gives to your agent.
PAI Retro
list_retrosynthesis_engines
List retrosynthesis engines. Use this tool to show available machine learning architectures and search strategies that can be used when submitting retrosynthesis jobs. Engine choice can impact the quality and diversity of retrosynthetic routes found.
list_retrosynthesis_libraries
List retrosynthesis libraries. Use this tool to show available building block libraries that can be used when submitting retrosynthesis jobs. Libraries specify collections of molecules that are available starting materials for a retrosynthetic search.
list_retrosynthesis_jobs
List retrosynthesis jobs. Use this tool to get short summaries of existing jobs, or to find a job ID based on SMILES and creation timestamps. Pagination is supported via offset-based page and limit parameters.
create_retrosynthesis_job
Create a retrosynthesis job. Use this tool to submit a molecule for retrosynthesis screening and provide optional parameters to customise the search behavior. The molecule should be provided in SMILES format. A job ID is returned that can be used to poll the job status and retrieve results once it has completed.
retrieve_retrosynthesis_job
Retrieve a retrosynthesis job. Use this tool to fetch the details of a previously created retrosynthesis job by its ID. Each job contains the molecule SMILES, status, and added timestamps for simple summary information.
retrieve_retrosynthesis_job_status
Retrieve the status of a retrosynthesis job. Expect a value that changes over time from submitted (waiting to be processed) to processing (actively being processed) to completed or failed (finished processing). Use this tool for polling the status of a job before results become available.
retrieve_retrosynthesis_job_result
Retrieve the results of a previously submitted retrosynthesis job by its ID. The list of retrosynthetic routes that were computed contain the synthetic steps to make the molecule with relevant building blocks.
delete_retrosynthesis_job
Delete a retrosynthesis job and generated results. The job will no longer be accessible. The operation is irreversible and should be used with caution. You cannot delete a job that is still processing.
PAI Generator
list_molecule_generator_models
List generative models for sampling molecules. Use this tool to retrieve models and their metadata that can be used to see if a model is online and ready for sampling. The slower status check can be skipped when only the model metadata is needed.
create_molecule_generator_sample
Sample molecules from a generative model. Molecules are represented in SMILES format and contain drug-like properties unique to the model used. Use this tool to generate novel structures that can be further filtered and evaluated. Conditional filtering should be applied after sampling to select relevant molecules.
PAI Synth
create_tree_search
Run a synchronous retrosynthetic tree search for a target molecule, provided in SMILES format. The search runs for up to max_seconds and the response contains every validated route found together with vendor pricing and lead-time annotations for the building blocks used.
create_synth_batch
Create a batch of retrosynthesis plans. Use this tool to submit many target molecules for retrosynthetic tree search at once, all sharing the same search parameters. This returns almost immediately with plans_created false while a background worker creates and dispatches each plan.
list_synth_batches
List synth batches. Use this tool to get summaries of existing batches, including how many plans each contains and whether they've all been created yet. Pagination is cursor-based.
retrieve_synth_batch
Retrieve a synth batch by its ID, including its total plan count and whether all its plans have been created and dispatched yet.
list_synth_batch_plans
List the plans belonging to a synth batch, to see the status and results of each plan. A batch can have up to 100,000 plans, so this is always paginated (cursor-based).
retrieve_synth_batch_plan
Retrieve a single plan belonging to a synth batch. Its result is populated once the plan's status is completed: the tree search routes found, vendor pricing for the building blocks used, and reagent annotations.
delete_synth_batch
Delete a synth batch and archive its plans. The batch stops appearing in listings immediately, and its plans are archived in the background afterward. The operation is irreversible.
retrieve_synth_plan
Retrieve a synth plan directly by its ID, without needing to know which batch it belongs to. Its result is populated once the plan's status is completed.
list_synth_engines
List retrosynthesis engines available for a synth plan's tree search, along with each engine's current queue length.
list_synth_libraries
List building-block libraries available for a synth plan's tree search.
Structures
depict_molecule
Render a 2D structure image of a molecule or reaction from its SMILES string, returning a public image URL and a ready-made markdown image tag. A reaction SMILES (containing >) is drawn as a reaction.
get_molecular_formula
Get the molecular formula of a molecule from its SMILES string, in Hill order (e.g. C9H8O4 for aspirin) with implicit hydrogens counted. A charged species includes its net charge, and a multi-component SMILES such as a salt gives one combined formula.
Authentication
The MCP server is an OAuth 2.0 authorization server for MCP clients, and supports Dynamic Client Registration (DCR). When you connect from an MCP client, such as the connectors below, the client registers itself with the server and you're redirected to sign in with your Pending AI account. No client ID or callback URL needs to be set up with us first.
The server advertises itself as the authorization server and proxies the sign-in to Pending AI's login page, so clients complete the flow against
https://mcp.pending.ai, not against the login provider directly.A client can use any redirect URI it registers through DCR. Loopback redirect URIs (
http://localhost:<port>/...) can use any port.Tool calls run as the user who signed in, and count against their team's plan, as API requests do. See Accounts, teams and billing.
Last updated
Was this helpful?

