The present invention relates to conducting polymer nanowires and their use in a brain-machine interface which is secure, robust and minimally invasive. In accordance with a first aspect of the present invention, a vascular-based brain-machine interface comprising conducting polymer nanowires is disclosed.